diff options
author | Lynne <dev@lynne.ee> | 2024-09-22 07:24:59 +0200 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2024-09-23 13:40:38 +0200 |
commit | 8a7af4aa497f20c3f3d1632fd43436780fb3f4f8 (patch) | |
tree | 74a158b36182b2bfce3c294bba83fa17f6137e7c /libavutil/hwcontext_vulkan.c | |
parent | 3d75ba749589c3b6f6b737a1cb9381e8a4b54088 (diff) | |
download | ffmpeg-8a7af4aa497f20c3f3d1632fd43436780fb3f4f8.tar.gz |
vulkan: add support for regular descriptor pools
This permits:
- The use of Vulkan filtering on many more devices
- Better debugging due to lack of descriptor buffer support in layers
Much of the changes here are due to a requirement that updates to
descriptors must happen between the command buffer being waited on,
and the pipeline not being bound.
We routinely did it the other way around, by updating only after
we bind the pipeline.
Diffstat (limited to 'libavutil/hwcontext_vulkan.c')
-rw-r--r-- | libavutil/hwcontext_vulkan.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 5e56a215e8..7e7d9cb70b 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -578,6 +578,12 @@ static int check_extensions(AVHWDeviceContext *ctx, int dev, AVDictionary *opts, for (int i = 0; i < optional_exts_num; i++) { tstr = optional_exts[i].name; found = 0; + + if (dev && debug_mode && + !strcmp(tstr, VK_EXT_DESCRIPTOR_BUFFER_EXTENSION_NAME)) { + continue; + } + for (int j = 0; j < sup_ext_count; j++) { if (!strcmp(tstr, sup_ext[j].extensionName)) { found = 1; |