diff options
author | Lynne <dev@lynne.ee> | 2021-11-16 10:28:27 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2021-11-16 10:32:37 +0100 |
commit | 8af7bcb6c3282d3911f9d5553e7f86da0fc3d160 (patch) | |
tree | 1847ed26808a4ebede7be3983ec323fc036b9306 /libavfilter/vulkan.h | |
parent | 8f9888a8d4f5254aba8ab75a352539b3a46a36cb (diff) | |
download | ffmpeg-8af7bcb6c3282d3911f9d5553e7f86da0fc3d160.tar.gz |
lavfi/vulkan: add mutliqueue emulation code
This helps with testing multiple queues when the hardware only
has a single queue.
Diffstat (limited to 'libavfilter/vulkan.h')
-rw-r--r-- | libavfilter/vulkan.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavfilter/vulkan.h b/libavfilter/vulkan.h index df8abf9e30..df0e830af8 100644 --- a/libavfilter/vulkan.h +++ b/libavfilter/vulkan.h @@ -87,6 +87,7 @@ typedef struct FFVkQueueFamilyCtx { int queue_family; int nb_queues; int cur_queue; + int actual_queues; } FFVkQueueFamilyCtx; typedef struct FFVulkanPipeline { @@ -235,11 +236,11 @@ int ff_vk_mt_is_np_rgb(enum AVPixelFormat pix_fmt); const char *ff_vk_shader_rep_fmt(enum AVPixelFormat pixfmt); /** - * Initialize a queue family. - * A queue limit of 0 means no limit. + * Initialize a queue family with a specific number of queues. + * If nb_queues == 0, use however many queues the queue family has. */ void ff_vk_qf_init(AVFilterContext *avctx, FFVkQueueFamilyCtx *qf, - VkQueueFlagBits dev_family, int queue_limit); + VkQueueFlagBits dev_family, int nb_queues); /** * Rotate through the queues in a queue family. |