mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 10:38:30 +02:00
i965/vs: Fix ir_swizzle handling.
I decided to refactor it a bit in adapting ir_to_mesa.cpp code, and mangled it. Fixes glsl-vs-cross-2.
This commit is contained in:
parent
78fac1892a
commit
bb468fc1ed
1 changed files with 1 additions and 1 deletions
|
|
@ -1109,7 +1109,7 @@ vec4_visitor::visit(ir_swizzle *ir)
|
|||
src = this->result;
|
||||
assert(src.file != BAD_FILE);
|
||||
|
||||
if (i < ir->type->vector_elements) {
|
||||
for (i = 0; i < ir->type->vector_elements; i++) {
|
||||
switch (i) {
|
||||
case 0:
|
||||
swizzle[i] = BRW_GET_SWZ(src.swizzle, ir->mask.x);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue