projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b6890a
)
ir_to_mesa: Actually allocate the right size for constant matrix temps.
author
Eric Anholt
<eric@anholt.net>
Tue, 27 Jul 2010 02:41:23 +0000
(19:41 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 27 Jul 2010 02:41:23 +0000
(19:41 -0700)
src/mesa/program/ir_to_mesa.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/program/ir_to_mesa.cpp
b/src/mesa/program/ir_to_mesa.cpp
index 20228e04280a8c77b71eb8ca639344faef48311a..6eceddfb8183b6126cd2e9a6ef50bb12130fdfe6 100644
(file)
--- a/
src/mesa/program/ir_to_mesa.cpp
+++ b/
src/mesa/program/ir_to_mesa.cpp
@@
-1412,7
+1412,7
@@
ir_to_mesa_visitor::visit(ir_constant *ir)
}
if (ir->type->is_matrix()) {
- ir_to_mesa_src_reg mat = get_temp(
glsl_type::vec4_
type);
+ ir_to_mesa_src_reg mat = get_temp(
ir->
type);
ir_to_mesa_dst_reg mat_column = ir_to_mesa_dst_reg_from_src(mat);
for (i = 0; i < ir->type->matrix_columns; i++) {