pan/midgard: Handle nontrivial masks in texture RA
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 16 Oct 2019 17:01:41 +0000 (13:01 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sun, 20 Oct 2019 12:02:31 +0000 (12:02 +0000)
The texture instruction has a mask we need to take into account.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard_ra.c

index 51687defccbb92bb3fa66aebb7a95ac825e5fc41..f8355a89720ea36b6f7771c4a707d3460f9f6fc6 100644 (file)
@@ -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;