pan/midgard: Clamp cubemap swizzle to XYXX
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 16 Aug 2019 14:41:29 +0000 (07:41 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 19 Aug 2019 15:32:17 +0000 (08:32 -0700)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard_compile.c

index 55406e6f4587d4edb29c1f902c91db6c27fe0c95..f01740f5feb13a76b207010e7ed5d40e94be44d0 100644 (file)
@@ -1800,6 +1800,7 @@ emit_texop_native(compiler_context *ctx, nir_tex_instr *instr,
                                 emit_mir_instruction(ctx, st);
 
                                 ins.ssa_args.src[0] = temp;
+                                ins.texture.in_reg_swizzle = SWIZZLE_XYXX;
                         } else {
                                 ins.ssa_args.src[0] = index;
                         }