[Mesa-dev] [PATCH 09/11] i965: make shader_debug_log_mesa callable

Mark Janes mark.a.janes at intel.com
Fri Dec 7 00:35:50 UTC 2018


Debug output of IR/assemblies is likely to exceed the 4k limit in
KHR_debug.

shader_debug_log_mesa splits large messages, providing the full
content through KHR_debug.  Expose the function, so it can be called
from the shader cache and the linker.
---
 src/mesa/drivers/dri/i965/intel_screen.c | 2 +-
 src/mesa/drivers/dri/i965/intel_screen.h | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
index ed0eaa783db..84f472814bc 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.c
+++ b/src/mesa/drivers/dri/i965/intel_screen.c
@@ -2388,7 +2388,7 @@ intel_device_get_revision(int fd)
    return revision;
 }
 
-static void
+void
 shader_debug_log_mesa(void *data, GLuint *msg_id, const char *buf)
 {
    struct brw_context *brw = (struct brw_context *)data;
diff --git a/src/mesa/drivers/dri/i965/intel_screen.h b/src/mesa/drivers/dri/i965/intel_screen.h
index 8d56fcd9e7a..8c1101d6b08 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.h
+++ b/src/mesa/drivers/dri/i965/intel_screen.h
@@ -178,6 +178,9 @@ can_do_exec_capture(const struct intel_screen *screen)
    return screen->kernel_features & KERNEL_ALLOWS_EXEC_CAPTURE;
 }
 
+void
+shader_debug_log_mesa(void *data, GLuint *msg_id, const char *buf);
+
 #ifdef __cplusplus
 }
 #endif
-- 
2.19.2



More information about the mesa-dev mailing list