mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 16:50:10 +01:00
glsl2: Fix transpose of rows and cols
This error led to an assertion failure for some constructors of non-square matrices. It only occured in matrices where the number of columns was greater than the number of rows. It didn't even always occur on those. Fixes piglit glslparsertest case constructor-16.vert.
This commit is contained in:
parent
8f5f44c9c8
commit
bdc0e5285a
1 changed files with 2 additions and 2 deletions
|
|
@ -904,8 +904,8 @@ emit_inline_matrix_constructor(const glsl_type *type,
|
|||
instructions->push_tail(inst);
|
||||
}
|
||||
} else {
|
||||
const unsigned rows = type->matrix_columns;
|
||||
const unsigned cols = type->vector_elements;
|
||||
const unsigned cols = type->matrix_columns;
|
||||
const unsigned rows = type->vector_elements;
|
||||
unsigned col_idx = 0;
|
||||
unsigned row_idx = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue