[FFmpeg-devel] [PATCH 1/2] hwcontext_vulkan: add a new mechanism to expose used queue families
Anton Khirnov
anton at khirnov.net
Tue Jul 9 09:57:33 EEST 2024
Quoting Lynne via ffmpeg-devel (2024-07-09 03:07:12)
> @@ -151,6 +162,17 @@ typedef struct AVVulkanDeviceContext {
> * Similar to lock_queue(), unlocks a queue. Must only be called after locking.
> */
> void (*unlock_queue)(struct AVHWDeviceContext *ctx, uint32_t queue_family, uint32_t index);
> +
> + /**
> + * Queue families used. Must be preferentially ordered. List may contain
> + * duplicates, as long as their capability flags do not match.
> + *
> + * For compatibility reasons, all the enabled queue families listed above
> + * (queue_family_(tx/comp/encode/decode)_index) must also be included in
> + * this list until they're removed after deprecation.
> + */
> + AVVulkanDeviceQueueFamily qf[16];
Why 16? And are we really really sure sizeof(AVVulkanDeviceQueueFamily)
should be a part of the ABI?
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list