hwcontext_vulkan: stricter semaphore number requirements

Always require one semaphore per sw_format plane. This is what
the implementation uses and relies upon throughout. This was
a leftover from an earlier revision that was never needed.
This commit is contained in:
Lynne 2021-12-10 16:29:03 +01:00
parent 83fe28221e
commit 0747768728
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
1 changed files with 4 additions and 6 deletions

View File

@ -241,12 +241,10 @@ typedef struct AVVkFrame {
VkImageLayout layout[AV_NUM_DATA_POINTERS]; VkImageLayout layout[AV_NUM_DATA_POINTERS];
/** /**
* Synchronization timeline semaphores. Must not be freed manually. * Synchronization timeline semaphores, one for each sw_format plane.
* Must be waited on at every submission using the value in sem_value, * Must not be freed manually. Must be waited on at every submission using
* and must be signalled at every submission, using an incremented value. * the value in sem_value, and must be signalled at every submission,
* * using an incremented value.
* Could be less than the amount of images: either one per VkDeviceMemory
* or one for the entire frame. All others will be set to VK_NULL_HANDLE.
*/ */
VkSemaphore sem[AV_NUM_DATA_POINTERS]; VkSemaphore sem[AV_NUM_DATA_POINTERS];