aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-16 07:41:29 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-19 08:32:17 -0700
commit20dd482668982f954a926da142d866a78aa79535 (patch)
tree2e1fa39f499029b17e0e38ea7125cf675dd353bd /src
parent2788721cc4f911850bf92ccd02f82bed9d4dd360 (diff)
pan/midgard: Clamp cubemap swizzle to XYXX
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/panfrost/midgard/midgard_compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c
index 55406e6f458..f01740f5feb 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -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;
}