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
14821482 GLSLC(0, #extension GL_EXT_shader_explicit_arithmetic_types : require );
14831483 GLSLC(0, #extension GL_EXT_control_flow_attributes : require );
14841484 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)) {
14861486 GLSLC(0, #extension GL_EXT_debug_printf : require );
1487+ GLSLC(0, #define DEBUG );
1488+ }
14871489
14881490 if (stage == VK_SHADER_STAGE_TASK_BIT_EXT ||
14891491 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