Created
October 7, 2023 00:12
-
-
Save kode54/f440c353e15f9f753e10184f392922dd to your computer and use it in GitHub Desktop.
Mesa Vulkan always emit debug info patch (May be vaguely useful sometimes)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/vulkan/runtime/vk_log.c b/src/vulkan/runtime/vk_log.c | |
index dfd4a2e5172..0335c1446e2 100644 | |
--- a/src/vulkan/runtime/vk_log.c | |
+++ b/src/vulkan/runtime/vk_log.c | |
@@ -111,7 +111,7 @@ __vk_log_impl(VkDebugUtilsMessageSeverityFlagBitsEXT severity, | |
} | |
} | |
-#ifndef DEBUG | |
+#if 0 | |
if (unlikely(!instance) || | |
(likely(list_is_empty(&instance->debug_utils.callbacks)) && | |
likely(list_is_empty(&instance->debug_report.callbacks)))) | |
@@ -127,7 +127,7 @@ __vk_log_impl(VkDebugUtilsMessageSeverityFlagBitsEXT severity, | |
char *message_idname = ralloc_asprintf(NULL, "%s:%d", file, line); | |
-#if DEBUG | |
+#if 1 | |
switch (severity) { | |
case VK_DEBUG_UTILS_MESSAGE_SEVERITY_VERBOSE_BIT_EXT: | |
mesa_logd("%s: %s", message_idname, message); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment