i965: Add an INTEL_DEBUG=cs option.
authorPaul Berry <stereotype441@gmail.com>
Sat, 11 Jan 2014 05:39:25 +0000 (21:39 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Sat, 2 May 2015 07:34:28 +0000 (00:34 -0700)
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@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_debug.c
src/mesa/drivers/dri/i965/intel_debug.h

index 19be464a8fe0d2257bb9958c7f940e315e5d54e4..53f575ab78f5f141cace3a0ed21a5207f427a5f9 100644 (file)
@@ -70,17 +70,18 @@ static const struct dri_debug_control debug_control[] = {
    { "no8",         DEBUG_NO8 },
    { "vec4vs",      DEBUG_VEC4VS },
    { "spill",       DEBUG_SPILL },
+   { "cs",          DEBUG_CS },
    { NULL,    0 }
 };
 
 uint64_t
 intel_debug_flag_for_shader_stage(gl_shader_stage stage)
 {
-   int flags[] = {
+   uint64_t flags[] = {
       [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];
index e0e9cb7c6c7d1eea20b1eacaf113cde7400e03a9..f754be20b1d7ec714520da50f10ada4b4cc4f3ed 100644 (file)
@@ -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"