[FFmpeg-cvslog] avutil/vulkan_glslang: Fix build failure
Zhao Zhili
git at videolan.org
Tue Dec 17 12:28:54 EET 2024
ffmpeg | branch: master | Zhao Zhili <zhilizhao at tencent.com> | Tue Dec 17 14:55:15 2024 +0800| [7b0bd6c4a7bcb53eacf082e472ff32a81b14edba] | committer: Lynne
avutil/vulkan_glslang: Fix build failure
compile_only isn't available until 13.1.0. Let default initialization set
it to zero, so the code works with version before and after 13.1.0.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7b0bd6c4a7bcb53eacf082e472ff32a81b14edba
---
libavutil/vulkan_glslang.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/vulkan_glslang.c b/libavutil/vulkan_glslang.c
index 9e1b8f4d8d..d116b35ec5 100644
--- a/libavutil/vulkan_glslang.c
+++ b/libavutil/vulkan_glslang.c
@@ -192,7 +192,7 @@ static int glslc_shader_compile(FFVulkanContext *s, FFVkSPIRVCompiler *ctx,
.optimize_size = 0,
.disassemble = 0,
.validate = 1,
- .compile_only = 0,
+ /* .compile_only = 0, */
};
#endif
More information about the ffmpeg-cvslog
mailing list