From 4891e51bf37731cd1b9dcdf95be70a47c46fb572 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 4 Jul 2021 23:25:36 -0400 Subject: [PATCH] agx: Fix lod_mode shift Was zero before so didn't notice the bug. Fixes: 9f555388342 ("agx: Pack texture ops") Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asahi/compiler/agx_pack.c b/src/asahi/compiler/agx_pack.c index 12acdf3..11484dd 100644 --- a/src/asahi/compiler/agx_pack.c +++ b/src/asahi/compiler/agx_pack.c @@ -561,7 +561,7 @@ agx_pack_instr(struct util_dynarray *emission, struct util_dynarray *fixups, agx (((uint64_t) I->dim) << 40) | (((uint64_t) q3) << 43) | (((uint64_t) I->mask) << 48) | - (((uint64_t) I->lod_mode) << 48) | + (((uint64_t) I->lod_mode) << 52) | (((uint64_t) (S & BITFIELD_MASK(6))) << 32) | (((uint64_t) St) << 62) | (((uint64_t) q5) << 63); -- 2.7.4