r600/sfn: Fix IDX register ID

Fixes: 9a6b11a733
   r600/sfn: Fix indirect const buffer access

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6925>
This commit is contained in:
Gert Wollny 2020-09-29 16:45:19 +02:00 committed by Marge Bot
parent 7683e27561
commit 48edb98a7e

View file

@ -1119,7 +1119,7 @@ AssemblyFromShaderLegacyImpl::emit_index_reg(const Value& addr, unsigned idx)
m_bc->index_loaded[idx] = true;
sfn_log << SfnLog::assembly << "\n";
}
return idx == 1 ? bim_zero : bim_one;
return idx == 0 ? bim_zero : bim_one;
}
bool AssemblyFromShaderLegacyImpl::copy_dst(r600_bytecode_alu_dst& dst,