[Mesa-dev] [PATCH 17/20] pan/midgard: Clamp cubemap swizzle to XYXX

Alyssa Rosenzweig alyssa.rosenzweig at collabora.com
Fri Aug 16 15:35:57 UTC 2019


Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
---
 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 73ba3173eb3..705c3b32778 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.23.0.rc1



More information about the mesa-dev mailing list