From: Ian Romanick Date: Mon, 5 Apr 2010 17:30:15 +0000 (-0700) Subject: Set correct type for ir_dereference of a matrix or a vector X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2deb19dc30eb12bff228149221a005d1971343e;p=mesa.git Set correct type for ir_dereference of a matrix or a vector --- diff --git a/ir.cpp b/ir.cpp index c900a285bc7..88308ce1790 100644 --- a/ir.cpp +++ b/ir.cpp @@ -186,7 +186,9 @@ ir_dereference::ir_dereference(ir_instruction *var, if (vt->is_array()) { type = vt->element_type(); - } else if (vt->is_matrix() || vt->is_vector()) { + } else if (vt->is_matrix()) { + type = vt->column_type(); + } else if (vt->is_vector()) { type = vt->get_base_type(); } }