diff options
author | Ian Romanick <[email protected]> | 2011-10-21 18:22:42 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2011-10-28 13:28:55 -0700 |
commit | 6da9b21f716d97fc9ef4797abb6368b0a5f92a14 (patch) | |
tree | 6cb0fcac7c8e48890cd7914e662da4ef498310a5 /src | |
parent | f5ba4d055ee27bfd741ad019e3b3d4b1a1ce9bd9 (diff) |
i965: Use glsl_type::column_type instead of open-coding it
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 02ecdaf3c91..1312c0dd0dc 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -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); |