mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 06:10:13 +01:00
glsl: Make the tree rebalancer bail on matrix operands.
It doesn't handle things like (vector * matrix) correctly, and apparently Matt's intention was to bail. Fixes shader compilation in Natural Selection 2. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
99f8ea295f
commit
9697f8088f
1 changed files with 3 additions and 1 deletions
|
|
@ -217,7 +217,9 @@ is_reduction(ir_instruction *ir, void *data)
|
|||
* constant fold once split up. Handling matrices will need some more
|
||||
* work.
|
||||
*/
|
||||
if (expr->type->is_matrix()) {
|
||||
if (expr->type->is_matrix() ||
|
||||
expr->operands[0]->type->is_matrix() ||
|
||||
(expr->operands[1] && expr->operands[1]->type->is_matrix())) {
|
||||
ird->is_reduction = false;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue