{ "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];
#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"