summaryrefslogtreecommitdiff
path: root/libavutil/hwcontext_vulkan.h
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2020-05-11 23:27:01 +0100
committerLynne <dev@lynne.ee>2020-05-11 23:48:26 +0100
commit70d396c8afa4275dbd54e79805ab2c34124c1b65 (patch)
tree603c2ea94aeba885ce268f969b444c466ab4933e /libavutil/hwcontext_vulkan.h
parent2932905255995cd615fe01126e233e26112b9e5e (diff)
Revert "hwcontext_vulkan: only use one semaphore per image"
This reverts commit 97b526c192add6f252b327245fd9223546867352. It broke the API, and assumed no other APIs used multiple semaphores. This also disallowed certain optimizations to happen. Dealing with APIs that give or expect single semaphores is easier when we use per-image semaphores.
Diffstat (limited to 'libavutil/hwcontext_vulkan.h')
-rw-r--r--libavutil/hwcontext_vulkan.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/hwcontext_vulkan.h b/libavutil/hwcontext_vulkan.h
index 9a42790e41..c3fc14af70 100644
--- a/libavutil/hwcontext_vulkan.h
+++ b/libavutil/hwcontext_vulkan.h
@@ -156,10 +156,10 @@ typedef struct AVVkFrame {
VkImageLayout layout[AV_NUM_DATA_POINTERS];
/**
- * Per-frame semaphore. Must not be freed manually. Must be waited on
+ * Per-image semaphores. Must not be freed manually. Must be waited on
* and signalled at every queue submission.
*/
- VkSemaphore sem;
+ VkSemaphore sem[AV_NUM_DATA_POINTERS];
/**
* Internal data.