summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_debug.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2015-02-18 17:31:29 -0800
committerKenneth Graunke <[email protected]>2015-02-19 15:15:45 -0800
commit7c891e8ddd41a77ccdc804ce938f2a1ed46e97e8 (patch)
tree684d510e5cb1381e849f2f0fbbaf1bd4af6f6658 /src/mesa/drivers/dri/i965/intel_debug.h
parent7555d1bafb089bc5130f86602a23725e184c490e (diff)
i965: Add a function to translate MESA_SHADER_* into DEBUG_* enums.
When compiling, we have a gl_shader_stage (MESA_SHADER_*) enum, and want to know whether debugging is enabled for that stage. This allows us to easily translate it into the corresponding debug flag. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Kristian Høgsberg <[email protected]> Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_debug.h')
-rw-r--r--src/mesa/drivers/dri/i965/intel_debug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_debug.h b/src/mesa/drivers/dri/i965/intel_debug.h
index 01b4dcfd3fe..ed879aba8d3 100644
--- a/src/mesa/drivers/dri/i965/intel_debug.h
+++ b/src/mesa/drivers/dri/i965/intel_debug.h
@@ -110,6 +110,8 @@ extern uint64_t INTEL_DEBUG;
} \
} while (0)
+extern uint64_t intel_debug_flag_for_shader_stage(gl_shader_stage stage);
+
struct brw_context;
extern void brw_process_intel_debug_variable(struct brw_context *brw);