From: Alyssa Rosenzweig Date: Tue, 11 Jun 2019 16:54:22 +0000 (-0700) Subject: panfrost/midgard: Set minimal swizzle on texture input X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4ea512844c2c06f1d59f5bae5a6e80b67804361d;p=mesa.git panfrost/midgard: Set minimal swizzle on texture input Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c index 1e1da1db060..4bddea40fdb 100644 --- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c +++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c @@ -83,6 +83,7 @@ midgard_block_add_successor(midgard_block *block, midgard_block *successor) #define EMIT(op, ...) emit_mir_instruction(ctx, v_##op(__VA_ARGS__)); #define SWIZZLE_XYZW SWIZZLE(COMPONENT_X, COMPONENT_Y, COMPONENT_Z, COMPONENT_W) +#define SWIZZLE_XYXX SWIZZLE(COMPONENT_X, COMPONENT_Y, COMPONENT_X, COMPONENT_X) #define SWIZZLE_XXXX SWIZZLE(COMPONENT_X, COMPONENT_X, COMPONENT_X, COMPONENT_X) #define SWIZZLE_WWWW SWIZZLE(COMPONENT_W, COMPONENT_W, COMPONENT_W, COMPONENT_W) @@ -1416,7 +1417,7 @@ emit_tex(compiler_context *ctx, nir_tex_instr *instr) /* TODO: half */ .in_reg_full = 1, - .in_reg_swizzle = SWIZZLE_XYZW, + .in_reg_swizzle = SWIZZLE_XYXX, .out_full = 1, /* Always 1 */