aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2024-07-24 00:39:31 +0200
committerLynne <dev@lynne.ee>2024-08-11 05:13:11 +0200
commit957d34784ad98cb342cd8b23f114b17094f92f5c (patch)
tree7485b954ec1036d54525b1690484ce2b4f24cf98
parent9e606b33a8e25fa8df383bcf3229e0203f79fae3 (diff)
downloadffmpeg-957d34784ad98cb342cd8b23f114b17094f92f5c.tar.gz
hwcontext_vulkan: constify validation layer features table
The struct data seem to get corrupted otherwise. Possibly a validation layer or libvulkan issue.
-rw-r--r--libavutil/hwcontext_vulkan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index a022eda93b..bd32ecef9c 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -777,7 +777,7 @@ static int create_instance(AVHWDeviceContext *ctx, AVDictionary *opts)
goto fail;
if (debug_mode) {
- VkValidationFeatureEnableEXT feat_list[] = {
+ static const VkValidationFeatureEnableEXT feat_list[] = {
VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_EXT,
VK_VALIDATION_FEATURE_ENABLE_GPU_ASSISTED_RESERVE_BINDING_SLOT_EXT,
VK_VALIDATION_FEATURE_ENABLE_SYNCHRONIZATION_VALIDATION_EXT,