Mesa (main): pan/mdg: Use the correct swizzle for condition moves
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Oct 4 15:09:07 UTC 2021
Module: Mesa
Branch: main
Commit: ad60fffd49db1c1a1089e8dd697a48c3537504cf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ad60fffd49db1c1a1089e8dd697a48c3537504cf
Author: Icecream95 <ixn at disroot.org>
Date: Fri Jul 23 12:14:32 2021 +1200
pan/mdg: Use the correct swizzle for condition moves
Fixes: 70072a20e00 ("pan/midgard: Refactor swizzles")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13173>
---
src/panfrost/midgard/midgard_schedule.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/panfrost/midgard/midgard_schedule.c b/src/panfrost/midgard/midgard_schedule.c
index a371f6eef05..1b91d128207 100644
--- a/src/panfrost/midgard/midgard_schedule.c
+++ b/src/panfrost/midgard/midgard_schedule.c
@@ -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 */
More information about the mesa-commit
mailing list