[FFmpeg-devel] [PATCH] avutil/vulkan_glslang: Fix build failure
Zhao Zhili
quinkblack at foxmail.com
Mon Dec 16 13:55:23 EET 2024
From: Zhao Zhili <zhilizhao at tencent.com>
compile_only was added since glslang 13.1.0.
---
libavutil/vulkan_glslang.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavutil/vulkan_glslang.c b/libavutil/vulkan_glslang.c
index 9e1b8f4d8d..9e7a33223b 100644
--- a/libavutil/vulkan_glslang.c
+++ b/libavutil/vulkan_glslang.c
@@ -192,7 +192,9 @@ static int glslc_shader_compile(FFVulkanContext *s, FFVkSPIRVCompiler *ctx,
.optimize_size = 0,
.disassemble = 0,
.validate = 1,
+#if ((GLSLANG_VERSION_MAJOR) >= 14)
.compile_only = 0,
+#endif
};
#endif
--
2.46.0
More information about the ffmpeg-devel
mailing list