diff options
author | Paul Berry <[email protected]> | 2014-01-10 21:39:25 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2015-05-02 00:34:28 -0700 |
commit | d94a9e7041a0816747d25ec99089d1bc161d46e0 (patch) | |
tree | cf9ebebc84ccdad725701d44e2c3d1793c6e52ed /src/mesa/drivers/dri/i965/intel_debug.c | |
parent | bf058dad6b97aaa2422c3ed462c4f27490719800 (diff) |
i965: Add an INTEL_DEBUG=cs option.
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 <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_debug.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_debug.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_debug.c b/src/mesa/drivers/dri/i965/intel_debug.c index 19be464a8fe..53f575ab78f 100644 --- a/src/mesa/drivers/dri/i965/intel_debug.c +++ b/src/mesa/drivers/dri/i965/intel_debug.c @@ -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]; |