pan/mdg: Use the correct swizzle for condition moves

Fixes: 70072a20e0 ("pan/midgard: Refactor swizzles")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13173>
(cherry picked from commit ad60fffd49)
This commit is contained in:
Icecream95 2021-07-23 12:14:32 +12:00 committed by Dylan Baker
parent 76ffda7c85
commit e46efe260d
2 changed files with 2 additions and 2 deletions

View file

@ -517,7 +517,7 @@
"description": "pan/mdg: Use the correct swizzle for condition moves",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "70072a20e0086ad2d3714216a2b8fb4a97776385"
},

View file

@ -978,7 +978,7 @@ mir_schedule_condition(compiler_context *ctx,
midgard_instruction *cond = mir_schedule_comparison(
ctx, instructions, predicate, worklist, count, last->src[condition_index],
vector, last->swizzle[2], last);
vector, last->swizzle[condition_index], last);
/* We have exclusive reign over this (possibly move) conditional
* instruction. We can rewrite into a pipeline conditional register */