From: Alyssa Rosenzweig Date: Wed, 16 Oct 2019 17:01:41 +0000 (-0400) Subject: pan/midgard: Handle nontrivial masks in texture RA X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=825f11e739808788b800eac332a2adfa1b551372;p=mesa.git pan/midgard: Handle nontrivial masks in texture RA The texture instruction has a mask we need to take into account. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/panfrost/midgard/midgard_ra.c b/src/panfrost/midgard/midgard_ra.c index 51687defccb..f8355a89720 100644 --- a/src/panfrost/midgard/midgard_ra.c +++ b/src/panfrost/midgard/midgard_ra.c @@ -823,7 +823,7 @@ install_registers_instr( ins->texture.in_reg_upper = 0; ins->texture.in_reg_select = coord.reg - 28; ins->texture.in_reg_swizzle = - compose_swizzle(ins->texture.in_reg_swizzle, 0xF, coord, dest); + pan_compose_swizzle(ins->texture.in_reg_swizzle, coord.swizzle); /* Next, install the destination */ ins->texture.out_full = 1;