Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2020-05-13 18:20:15 +0300
committerLynne <dev@lynne.ee>2020-05-23 21:07:29 +0300
commit01c7539f30a38d15fd767dd1a236b6fcced02db8 (patch)
tree5390126cf6da95a045e106810e763529d1efa72d /libavutil/hwcontext_vulkan.h
parent2e08b39444ab27477e6ea2a184ae7fe1b9786594 (diff)
hwcontext_vulkan: expose the amount of queues for each queue family
This, along with the next patch, are the last missing pieces to being interoperable with libplacebo.
Diffstat (limited to 'libavutil/hwcontext_vulkan.h')
-rw-r--r--libavutil/hwcontext_vulkan.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/libavutil/hwcontext_vulkan.h b/libavutil/hwcontext_vulkan.h
index c3fc14af70..9fbe8b9dcb 100644
--- a/libavutil/hwcontext_vulkan.h
+++ b/libavutil/hwcontext_vulkan.h
@@ -55,16 +55,26 @@ typedef struct AVVulkanDeviceContext {
* @note av_hwdevice_create() will set all 3 queue indices if unset
* If there is no dedicated queue for compute or transfer operations,
* they will be set to the graphics queue index which can handle both.
+ * nb_graphics_queues indicates how many queues were enabled for the
+ * graphics queue (must be at least 1)
*/
int queue_family_index;
+ int nb_graphics_queues;
/**
- * Queue family index for transfer ops only
+ * Queue family index to use for transfer operations, and the amount of queues
+ * enabled. In case there is no dedicated transfer queue, nb_tx_queues
+ * must be 0 and queue_family_tx_index must be the same as either the graphics
+ * queue or the compute queue, if available.
*/
int queue_family_tx_index;
+ int nb_tx_queues;
/**
- * Queue family index for compute ops
+ * Queue family index for compute ops, and the amount of queues enabled.
+ * In case there are no dedicated compute queues, nb_comp_queues must be
+ * 0 and its queue family index must be set to the graphics queue.
*/
int queue_family_comp_index;
+ int nb_comp_queues;
/**
* Enabled instance extensions. By default, VK_KHR_surface is enabled if found.
* If supplying your own device context, set this to an array of strings, with