summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-10-16 13:01:41 -0400
committerAlyssa Rosenzweig <[email protected]>2019-10-20 12:02:31 +0000
commit825f11e739808788b800eac332a2adfa1b551372 (patch)
treecced6d5b71b3dcec3e4515b1f72931d31a73ed92 /src
parentd1d3411ba55aaa177a2a0619284d5b3891b9b7cd (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/panfrost/midgard/midgard_ra.c2
1 files changed, 1 insertions, 1 deletions
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;