projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82aa929
)
i965/vs: Allocate storage for "auto" variables just like temps.
author
Eric Anholt
<eric@anholt.net>
Fri, 5 Aug 2011 23:35:24 +0000
(16:35 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 16 Aug 2011 20:04:41 +0000
(13:04 -0700)
Fixes segfault in glsl-vs-cross-2.
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index e3779ab04442458f9feaf8a8f9ec9ec15632b6b8..3e62c9ebba812bb29a90d69c0d572cb8b24a5441 100644
(file)
--- 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);