r600/sfn: fix nop channel assignment.
authorDave Airlie <airlied@redhat.com>
Tue, 19 May 2020 23:07:21 +0000 (09:07 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 20 May 2020 19:51:07 +0000 (19:51 +0000)
this fixes a bunch of asserting tests on cayman

Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5113>

src/gallium/drivers/r600/sfn/sfn_ir_to_assembly.cpp

index 77e84e33b216bba74c266e3e31d1412dc15e5c71..e378d0480af4905723064b0483df551954552118 100644 (file)
@@ -261,6 +261,7 @@ bool AssemblyFromShaderLegacyImpl::emit_alu(const AluInstruction& ai, ECFAluOpCo
       sfn_log << SfnLog::assembly << "  Have " << m_nliterals_in_group << " inject a last op (nop)\n";
       alu.op = ALU_OP0_NOP;
       alu.last = 1;
+      alu.dst.chan = 3;
       int retval = r600_bytecode_add_alu(m_bc, &alu);
       if (retval)
          return false;