summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-07-26 19:41:23 -0700
committerEric Anholt <eric@anholt.net>2010-07-26 19:41:23 -0700
commitc91809e1e4a4fa8884e6588159368ea32431ee0e (patch)
treed92f2ab16a6a34b325ea64ad17561600d0f98cfd /src
parent5b6890a388d554f06880e88d61c73dcd62c5f141 (diff)
ir_to_mesa: Actually allocate the right size for constant matrix temps.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 20228e0428..6eceddfb81 100644
--- 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++) {