From 9a1af7b31824ca573b2609434cf8299bfc9bc5e2 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Mon, 27 Oct 2014 19:40:47 -0700 Subject: i965: Set shader name for generator from call site MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fs_generator no longer knows what stage it's generating code for, so we have to set the debug name of the shader from the call site. Signed-off-by: Kristian Høgsberg Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mesa/drivers/dri/i965/brw_fs.h') diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index 5b33ad27fe1..ce9f3b8a662 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.h +++ b/src/mesa/drivers/dri/i965/brw_fs.h @@ -693,10 +693,10 @@ public: struct brw_stage_prog_data *prog_data, struct gl_shader_program *shader_prog, struct gl_program *fp, - bool runtime_check_aads_emit, - bool debug_flag); + bool runtime_check_aads_emit); ~fs_generator(); + void enable_debug(const char *shader_name); int generate_code(const cfg_t *cfg, int dispatch_width); const unsigned *get_assembly(unsigned int *assembly_size); @@ -804,7 +804,8 @@ private: exec_list discard_halt_patches; bool runtime_check_aads_emit; - const bool debug_flag; + bool debug_flag; + const char *shader_name; void *mem_ctx; }; -- cgit v1.2.3