diff options
author | Matt Turner <[email protected]> | 2015-06-22 11:42:15 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-06-23 12:24:42 -0700 |
commit | ae097580ac49fbfaf184c89c68cb42b755f62939 (patch) | |
tree | bc3bddfc1834e31fc9c5108eb5bc7728248e31ad /src/mesa/drivers/dri/i965/brw_shader.cpp | |
parent | d8eeb4917ca39a0698731f64933c85a7c44e9247 (diff) |
i965: Initialize backend_shader::mem_ctx in its constructor.
We were initializing it in each subclasses' constructors for some
reason.
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_shader.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_shader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index 545ec2679ae..7a26939cbe9 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -757,6 +757,7 @@ brw_abs_immediate(enum brw_reg_type type, struct brw_reg *reg) } backend_shader::backend_shader(struct brw_context *brw, + void *mem_ctx, struct gl_shader_program *shader_prog, struct gl_program *prog, struct brw_stage_prog_data *stage_prog_data, @@ -769,6 +770,7 @@ backend_shader::backend_shader(struct brw_context *brw, shader_prog(shader_prog), prog(prog), stage_prog_data(stage_prog_data), + mem_ctx(mem_ctx), cfg(NULL), stage(stage) { |