i965: Use glsl_type::column_type instead of open-coding it
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 22 Oct 2011 01:22:42 +0000 (18:22 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 28 Oct 2011 20:28:55 +0000 (13:28 -0700)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index 02ecdaf3c910f79bd3c9106174f8812f7f690fcb..1312c0dd0dc257d570b83543f430522b117eecd3 100644 (file)
@@ -502,9 +502,7 @@ vec4_visitor::setup_uniform_values(int loc, const glsl_type *type)
    float *values = &this->vp->Base.Parameters->ParameterValues[loc][0].f;
 
    if (type->is_matrix()) {
-      const glsl_type *column = glsl_type::get_instance(GLSL_TYPE_FLOAT,
-                                                       type->vector_elements,
-                                                       1);
+      const glsl_type *column = type->column_type();
 
       for (unsigned int i = 0; i < type->matrix_columns; i++) {
         offset += setup_uniform_values(loc + offset, column);