mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 22:20:27 +01:00
glsl: Fix copy'n'wasted ir_noop_swizzle conditions.
It considered .xyyy a noop for vec4 instead of .xyzw, and similar for vec3.
(cherry picked from commit 3ffab36768)
This commit is contained in:
parent
0391eaf088
commit
aebd78f607
1 changed files with 2 additions and 2 deletions
|
|
@ -61,9 +61,9 @@ ir_noop_swizzle_visitor::handle_rvalue(ir_rvalue **rvalue)
|
|||
return;
|
||||
if (elems >= 2 && swiz->mask.y != 1)
|
||||
return;
|
||||
if (elems >= 3 && swiz->mask.z != 1)
|
||||
if (elems >= 3 && swiz->mask.z != 2)
|
||||
return;
|
||||
if (elems >= 4 && swiz->mask.w != 1)
|
||||
if (elems >= 4 && swiz->mask.w != 3)
|
||||
return;
|
||||
|
||||
this->progress = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue