[Mesa-dev] [PATCH v2 05/20] i965: Add an INTEL_DEBUG=cs option.

Jordan Justen jordan.l.justen at intel.com
Fri Apr 24 16:32:57 PDT 2015


From: Paul Berry <stereotype441 at gmail.com>

At the moment it's not wired up to anything.  Later patches will hook
it up to the compute shader back-end.

Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Kristian Høgsberg <krh at bitplanet.net>
---
 src/mesa/drivers/dri/i965/intel_debug.c | 3 ++-
 src/mesa/drivers/dri/i965/intel_debug.h | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/intel_debug.c b/src/mesa/drivers/dri/i965/intel_debug.c
index 19be464..9c8023c 100644
--- a/src/mesa/drivers/dri/i965/intel_debug.c
+++ b/src/mesa/drivers/dri/i965/intel_debug.c
@@ -70,6 +70,7 @@ static const struct dri_debug_control debug_control[] = {
    { "no8",         DEBUG_NO8 },
    { "vec4vs",      DEBUG_VEC4VS },
    { "spill",       DEBUG_SPILL },
+   { "cs",          DEBUG_CS },
    { NULL,    0 }
 };
 
@@ -80,7 +81,7 @@ intel_debug_flag_for_shader_stage(gl_shader_stage stage)
       [MESA_SHADER_VERTEX] = DEBUG_VS,
       [MESA_SHADER_GEOMETRY] = DEBUG_GS,
       [MESA_SHADER_FRAGMENT] = DEBUG_WM,
-      [MESA_SHADER_COMPUTE] = 0, /* no debug flag yet */
+      [MESA_SHADER_COMPUTE] = DEBUG_CS,
    };
    STATIC_ASSERT(MESA_SHADER_STAGES == 4);
    return flags[stage];
diff --git a/src/mesa/drivers/dri/i965/intel_debug.h b/src/mesa/drivers/dri/i965/intel_debug.h
index e0e9cb7..f754be2 100644
--- a/src/mesa/drivers/dri/i965/intel_debug.h
+++ b/src/mesa/drivers/dri/i965/intel_debug.h
@@ -65,6 +65,7 @@ extern uint64_t INTEL_DEBUG;
 #define DEBUG_NO8                 (1ull << 29)
 #define DEBUG_VEC4VS              (1ull << 30)
 #define DEBUG_SPILL               (1ull << 31)
+#define DEBUG_CS                  (1ull << 32)
 
 #ifdef HAVE_ANDROID_PLATFORM
 #define LOG_TAG "INTEL-MESA"
-- 
2.1.4



More information about the mesa-dev mailing list