From 7c891e8ddd41a77ccdc804ce938f2a1ed46e97e8 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 18 Feb 2015 17:31:29 -0800 Subject: i965: Add a function to translate MESA_SHADER_* into DEBUG_* enums. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Jason Ekstrand Reviewed-by: Ian Romanick Reviewed-by: Kristian Høgsberg Reviewed-by: Anuj Phogat --- src/mesa/drivers/dri/i965/intel_debug.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/drivers/dri/i965/intel_debug.h') 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); -- cgit v1.2.3