From 21405f6fcfc428af3f2aa9d1bc1c3b10b25a71fa Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 11 May 2020 15:02:10 -0400 Subject: [PATCH] pan/mdg: Ignore dest.type when offseting load swizzle It's always as-if 32-bit. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/midgard/midgard_ra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/midgard/midgard_ra.c b/src/panfrost/midgard/midgard_ra.c index ecc9d727e2b..d3fbabc77be 100644 --- a/src/panfrost/midgard/midgard_ra.c +++ b/src/panfrost/midgard/midgard_ra.c @@ -686,7 +686,7 @@ install_registers_instr( struct phys_reg dst = index_to_reg(ctx, l, ins->dest, dest_size); ins->load_store.reg = dst.reg; - offset_swizzle(ins->swizzle[0], 0, 4, dst.size, dst.offset); + offset_swizzle(ins->swizzle[0], 0, 4, 4, dst.offset); mir_set_bytemask(ins, mir_bytemask(ins) << dst.offset); } -- 2.30.2