summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-08-05 16:35:24 -0700
committerEric Anholt <[email protected]>2011-08-16 13:04:41 -0700
commit78fac1892a3a7a90eb7baf78903d70649028d27a (patch)
tree5267d1a3e6f34831969d4b6b99d2a93de95c2631 /src/mesa
parent82aa9299fbfe92d2526fa9f7ffd2a1ebc7827ee9 (diff)
i965/vs: Allocate storage for "auto" variables just like temps.
Fixes segfault in glsl-vs-cross-2.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp4
1 files changed, 4 insertions, 0 deletions
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);