From: Alyssa Rosenzweig Date: Fri, 26 Jul 2019 15:15:50 +0000 (-0700) Subject: pan/midgard: Fix backwards blend color load X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13f61f24eac67071d92aed1f89b81a420156753e;p=mesa.git pan/midgard: Fix backwards blend color load The source and destination were incorrectly flipped in the move, but some details of our internal regalloc made this function anyway. Now that we're changing the regalloc, we need to fix this to avoid regressing blend shaders. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index f07fd1b5f9e..3b17d8d0f4a 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -1322,7 +1322,7 @@ emit_intrinsic(compiler_context *ctx, nir_intrinsic_instr *instr) /* For blend shaders, load the input color, which is * preloaded to r0 */ - midgard_instruction move = v_mov(reg, blank_alu_src, SSA_FIXED_REGISTER(0)); + midgard_instruction move = v_mov(SSA_FIXED_REGISTER(0), blank_alu_src, reg); emit_mir_instruction(ctx, move); } else if (ctx->stage == MESA_SHADER_VERTEX) { midgard_instruction ins = m_ld_attr_32(reg, offset);