From: Alyssa Rosenzweig Date: Mon, 11 May 2020 19:02:10 +0000 (-0400) Subject: pan/mdg: Ignore dest.type when offseting load swizzle X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21405f6fcfc428af3f2aa9d1bc1c3b10b25a71fa;p=mesa.git pan/mdg: Ignore dest.type when offseting load swizzle It's always as-if 32-bit. Signed-off-by: Alyssa Rosenzweig Part-of: --- 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); }