From: Eric Anholt Date: Fri, 5 Aug 2011 23:35:24 +0000 (-0700) Subject: i965/vs: Allocate storage for "auto" variables just like temps. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78fac1892a3a7a90eb7baf78903d70649028d27a;p=mesa.git i965/vs: Allocate storage for "auto" variables just like temps. Fixes segfault in glsl-vs-cross-2. --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index e3779ab0444..3e62c9ebba8 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -634,6 +634,7 @@ vec4_visitor::visit(ir_variable *ir) } break; + case ir_var_auto: case ir_var_temporary: reg = new(mem_ctx) dst_reg(this, ir->type); break; @@ -647,6 +648,9 @@ vec4_visitor::visit(ir_variable *ir) setup_uniform_values(ir->location, ir->type); } break; + + default: + assert(!"not reached"); } reg->type = brw_type_for_base_type(ir->type);