r600/sfn: Fix the parameter component type

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7142>
This commit is contained in:
Gert Wollny 2020-10-14 14:58:00 +02:00 committed by Marge Bot
parent 5f661977f8
commit 9f5e5fb912

View file

@ -713,7 +713,7 @@ bool FragmentShaderFromNir::load_interpolated_one_comp(GPRVector &dest,
auto ir = new AluInstruction(op, dest[chan], i & 1 ? ip.j : ip.i,
PValue(new InlineConstValue(ALU_SRC_PARAM_BASE + io.lds_pos(), 0)),
PValue(new InlineConstValue(ALU_SRC_PARAM_BASE + io.lds_pos(), i)),
i == 0 ? EmitInstruction::write : EmitInstruction::last);
dest.pin_to_channel(chan);
@ -728,7 +728,7 @@ bool FragmentShaderFromNir::load_interpolated_two_comp(GPRVector &dest, ShaderIn
{
AluInstruction *ir = nullptr;
for (unsigned i = 0; i < 4 ; ++i) {
ir = new AluInstruction(op, dest[i], i & 1 ? ip.j : ip.i, PValue(new InlineConstValue(ALU_SRC_PARAM_BASE + io.lds_pos(), 0)),
ir = new AluInstruction(op, dest[i], i & 1 ? ip.j : ip.i, PValue(new InlineConstValue(ALU_SRC_PARAM_BASE + io.lds_pos(), i)),
(writemask & (1 << i)) ? EmitInstruction::write : EmitInstruction::empty);
dest.pin_to_channel(i);
ir->set_bank_swizzle(alu_vec_210);
@ -745,7 +745,7 @@ bool FragmentShaderFromNir::load_interpolated_two_comp_for_one(GPRVector &dest,
AluInstruction *ir = nullptr;
for (int i = 0; i < 4 ; ++i) {
ir = new AluInstruction(op, dest[i], i & 1 ? ip.j : ip.i,
PValue(new InlineConstValue(ALU_SRC_PARAM_BASE + io.lds_pos(), 0)),
PValue(new InlineConstValue(ALU_SRC_PARAM_BASE + io.lds_pos(), i)),
i == comp ? EmitInstruction::write : EmitInstruction::empty);
ir->set_bank_swizzle(alu_vec_210);
dest.pin_to_channel(i);