From 20dd482668982f954a926da142d866a78aa79535 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 16 Aug 2019 07:41:29 -0700 Subject: [PATCH] pan/midgard: Clamp cubemap swizzle to XYXX Signed-off-by: Alyssa Rosenzweig --- src/panfrost/midgard/midgard_compile.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2