From eba2b182c8df20ce339997a72a96f82c3955b5b6 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sat, 3 Dec 2022 21:19:22 -0500 Subject: [PATCH] agx: Fix packing of extension for block image stores Probably impossible to hit in practice but let's get it right. Found when forcing RA to use the upper half of the reg file. 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 062aaf4..6f1d321 100644 --- a/src/asahi/compiler/agx_pack.c +++ b/src/asahi/compiler/agx_pack.c @@ -706,7 +706,7 @@ agx_pack_instr(struct util_dynarray *emission, struct util_dynarray *fixups, agx (T & BITFIELD_MASK(6)) | (Tt << 2) | (unk2 << 9) | - ((R >> 6) << 28); + ((R >> 6) << 24); uint32_t word2 = (F >> 1) | -- 2.7.4