aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs.h
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2014-10-27 19:40:47 -0700
committerKristian Høgsberg <[email protected]>2014-12-10 12:28:51 -0800
commit9a1af7b31824ca573b2609434cf8299bfc9bc5e2 (patch)
tree404ff2b02c0f331c41e3b7573832da1a0ba74032 /src/mesa/drivers/dri/i965/brw_fs.h
parent7bb9d33b8d6ecc03670078c3f9623f188135abb7 (diff)
i965: Set shader name for generator from call site
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 <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.h7
1 files changed, 4 insertions, 3 deletions
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;
};