diff options
author | Lynne <dev@lynne.ee> | 2021-11-07 08:16:11 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2021-11-12 05:23:36 +0100 |
commit | 6bf9a6539e3db94ee88dd2a8e4816fadf10a4970 (patch) | |
tree | d56025f67ab520d3b9d92ef0a8bc7df5f912a579 /libavfilter/vulkan.h | |
parent | dfc61800a26747dc91bf00b0d841fc88a5d7473d (diff) | |
download | ffmpeg-6bf9a6539e3db94ee88dd2a8e4816fadf10a4970.tar.gz |
vulkan: add support for encode and decode queues and refactor queue code
This simplifies and makes queue family picking simpler and more robust.
The requirements on the device context are relaxed. They made no sense
in the first place.
The video encode/decode extension is still in beta, at least on paper,
but I really doubt they'd change needing a separate queue family.
Diffstat (limited to 'libavfilter/vulkan.h')
-rw-r--r-- | libavfilter/vulkan.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/libavfilter/vulkan.h b/libavfilter/vulkan.h index dbe181e898..fa77995075 100644 --- a/libavfilter/vulkan.h +++ b/libavfilter/vulkan.h @@ -49,17 +49,6 @@ goto fail; \ } while (0) -/* Gets the queues count for a single queue family */ -#define GET_QUEUE_COUNT(hwctx, graph, comp, tx) ( \ - graph ? hwctx->nb_graphics_queues : \ - comp ? (hwctx->nb_comp_queues ? \ - hwctx->nb_comp_queues : hwctx->nb_graphics_queues) : \ - tx ? (hwctx->nb_tx_queues ? hwctx->nb_tx_queues : \ - (hwctx->nb_comp_queues ? \ - hwctx->nb_comp_queues : hwctx->nb_graphics_queues)) : \ - 0 \ -) - /* Useful for attaching immutable samplers to arrays */ #define DUP_SAMPLER_ARRAY4(x) (VkSampler []){ x, x, x, x, } |