[Mesa-dev] [PATCH 3/6] i965/disasm: New debug flag for shader disassembly changes

Toni Lönnberg toni.lonnberg at intel.com
Mon Feb 20 13:27:15 UTC 2017


From: "Lonnberg, Toni" <toni.lonnberg at intel.com>

Pre-work for shader disassembly label support.

Setting the "disasm" flag in the INTEL_DEBUG flags will enable label support
for the shader disassembly and change the formatting of immediate values to
use hexadecimals for all types.
---
 src/mesa/drivers/dri/i965/intel_debug.c | 1 +
 src/mesa/drivers/dri/i965/intel_debug.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/intel_debug.c b/src/mesa/drivers/dri/i965/intel_debug.c
index 33e8402..3d0bb62 100644
--- a/src/mesa/drivers/dri/i965/intel_debug.c
+++ b/src/mesa/drivers/dri/i965/intel_debug.c
@@ -81,6 +81,7 @@ static const struct debug_control debug_control[] = {
    { "l3",          DEBUG_L3 },
    { "do32",        DEBUG_DO32 },
    { "norbc",       DEBUG_NO_RBC },
+   { "disasm",      DEBUG_DISASM },
    { NULL,    0 }
 };
 
diff --git a/src/mesa/drivers/dri/i965/intel_debug.h b/src/mesa/drivers/dri/i965/intel_debug.h
index afca36e..191b9e4 100644
--- a/src/mesa/drivers/dri/i965/intel_debug.h
+++ b/src/mesa/drivers/dri/i965/intel_debug.h
@@ -73,6 +73,7 @@ extern uint64_t INTEL_DEBUG;
 #define DEBUG_L3                  (1ull << 37)
 #define DEBUG_DO32                (1ull << 38)
 #define DEBUG_NO_RBC              (1ull << 39)
+#define DEBUG_DISASM              (1ull << 40)
 
 #ifdef HAVE_ANDROID_PLATFORM
 #define LOG_TAG "INTEL-MESA"
-- 
2.7.4



More information about the mesa-dev mailing list