From ae097580ac49fbfaf184c89c68cb42b755f62939 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 22 Jun 2015 11:42:15 -0700 Subject: i965: Initialize backend_shader::mem_ctx in its constructor. We were initializing it in each subclasses' constructors for some reason. Reviewed-by: Jordan Justen --- src/mesa/drivers/dri/i965/brw_shader.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/drivers/dri/i965/brw_shader.cpp') 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) { -- cgit v1.2.3