1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-29 05:57:37 +02:00

vulkan: add profiling debug setting

This simply keeps all shader optimizations, but allows debug
data to be generated.
This commit is contained in:
Lynne
2024-10-04 04:24:20 +02:00
parent 832947be02
commit a304cbeb8d
4 changed files with 26 additions and 11 deletions

View File

@@ -1479,7 +1479,8 @@ int ff_vk_shader_init(FFVulkanContext *s, FFVulkanShader *shd, const char *name,
GLSLC(0, #define IS_WITHIN(v1, v2) ((v1.x < v2.x) && (v1.y < v2.y)) );
GLSLC(0, );
GLSLC(0, #extension GL_EXT_scalar_block_layout : require );
if (s->extensions & FF_VK_EXT_RELAXED_EXTENDED_INSTR)
if ((s->extensions & FF_VK_EXT_DEBUG_UTILS) &&
(s->extensions & FF_VK_EXT_RELAXED_EXTENDED_INSTR))
GLSLC(0, #extension GL_EXT_debug_printf : require );
if (stage == VK_SHADER_STAGE_TASK_BIT_EXT ||