[FFmpeg-cvslog] vulkan: add a #define when printf debugging is enabled

Lynne git at videolan.org
Wed Oct 9 02:08:18 EEST 2024


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Tue Oct  8 14:04:31 2024 +0200| [b8d1b4358b13fb034ca41203af1c8ccc1a27284a] | committer: Lynne

vulkan: add a #define when printf debugging is enabled

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b8d1b4358b13fb034ca41203af1c8ccc1a27284a
---

 libavutil/vulkan.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c
index 2cfec5d00a..7ad938b047 100644
--- a/libavutil/vulkan.c
+++ b/libavutil/vulkan.c
@@ -1482,8 +1482,10 @@ int ff_vk_shader_init(FFVulkanContext *s, FFVulkanShader *shd, const char *name,
     GLSLC(0, #extension GL_EXT_shader_explicit_arithmetic_types : require     );
     GLSLC(0, #extension GL_EXT_control_flow_attributes : require              );
     if ((s->extensions & FF_VK_EXT_DEBUG_UTILS) &&
-        (s->extensions & FF_VK_EXT_RELAXED_EXTENDED_INSTR))
+        (s->extensions & FF_VK_EXT_RELAXED_EXTENDED_INSTR)) {
         GLSLC(0, #extension GL_EXT_debug_printf : require                     );
+        GLSLC(0, #define DEBUG                                                );
+    }
 
     if (stage == VK_SHADER_STAGE_TASK_BIT_EXT ||
         stage == VK_SHADER_STAGE_MESH_BIT_EXT)



More information about the ffmpeg-cvslog mailing list