aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/vulkan.h
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2024-12-18 14:58:33 +0900
committerLynne <dev@lynne.ee>2024-12-23 04:25:09 +0900
commit157cd820adbbfcfd1870a6ce12d072dc0f623e9b (patch)
treead8ce1f1676a448fc2ff0defcaac8cf8e503f989 /libavutil/vulkan.h
parent7239be07bea6cce5a9e09d5dc7ebb1a14e34121f (diff)
downloadffmpeg-157cd820adbbfcfd1870a6ce12d072dc0f623e9b.tar.gz
vulkan: remove pointless mutex locks
This code was simply incorrect through and through. It did not protect what actually has to be protected in a multi-threaded setup. Perhaps it was used to silence threading errors? Either way, remove it, and document the correct way to use execution pools in a threaded environment.
Diffstat (limited to 'libavutil/vulkan.h')
-rw-r--r--libavutil/vulkan.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/vulkan.h b/libavutil/vulkan.h
index ef39f76675..0a166da9eb 100644
--- a/libavutil/vulkan.h
+++ b/libavutil/vulkan.h
@@ -400,6 +400,8 @@ int ff_vk_qf_init(FFVulkanContext *s, FFVkQueueFamilyCtx *qf,
/**
* Allocates/frees an execution pool.
+ * If used in a multi-threaded context, there must be at least as many contexts
+ * as there are threads.
* ff_vk_exec_pool_init_desc() MUST be called if ff_vk_exec_descriptor_set_add()
* has been called.
*/