Skip to content

Instantly share code, notes, and snippets.

@kode54
Created October 7, 2023 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kode54/f440c353e15f9f753e10184f392922dd to your computer and use it in GitHub Desktop.
Save kode54/f440c353e15f9f753e10184f392922dd to your computer and use it in GitHub Desktop.
Mesa Vulkan always emit debug info patch (May be vaguely useful sometimes)
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