History

vulkan: add a #define when printf debugging is enabled

Lynne committed 2 years ago

Commit b8d1b431 parent 204558c1 file · +3 −1Browse files

Unified · Split

libavutil/vulkan.c+3−1
@@ -1482,8 +1482,10 @@ int ff_vk_shader_init(FFVulkanContext *s, FFVulkanShader *shd, const char *name, · 1481 unmodified lines
1482 GLSLC(0, #extension GL_EXT_shader_explicit_arithmetic_types : require );1482 GLSLC(0, #extension GL_EXT_shader_explicit_arithmetic_types : require );
1483 GLSLC(0, #extension GL_EXT_control_flow_attributes : require );1483 GLSLC(0, #extension GL_EXT_control_flow_attributes : require );
1484 if ((s->extensions & FF_VK_EXT_DEBUG_UTILS) &&1484 if ((s->extensions & FF_VK_EXT_DEBUG_UTILS) &&
1485 (s->extensions & FF_VK_EXT_RELAXED_EXTENDED_INSTR))1485 (s->extensions & FF_VK_EXT_RELAXED_EXTENDED_INSTR)) {
1486 GLSLC(0, #extension GL_EXT_debug_printf : require );1486 GLSLC(0, #extension GL_EXT_debug_printf : require );
1487 GLSLC(0, #define DEBUG );
1488 }
1487 1489
1488 if (stage == VK_SHADER_STAGE_TASK_BIT_EXT ||1490 if (stage == VK_SHADER_STAGE_TASK_BIT_EXT ||
1489 stage == VK_SHADER_STAGE_MESH_BIT_EXT)1491 stage == VK_SHADER_STAGE_MESH_BIT_EXT)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t