mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
r600/sfn: Fix handling of output register index
Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5085>
This commit is contained in:
parent
9db5536643
commit
ac2c3fb010
1 changed files with 4 additions and 4 deletions
|
|
@ -988,10 +988,10 @@ void ShaderFromNirProcessor::set_input(unsigned pos, PValue var)
|
|||
m_inputs[pos] = var;
|
||||
}
|
||||
|
||||
void ShaderFromNirProcessor::set_output(unsigned pos, PValue var)
|
||||
void ShaderFromNirProcessor::set_output(unsigned pos, int sel)
|
||||
{
|
||||
r600::sfn_log << SfnLog::io << "Set output[" << pos << "] =" << *var << "\n";
|
||||
m_outputs[pos] = var;
|
||||
r600::sfn_log << SfnLog::io << "Set output[" << pos << "] =" << sel << "\n";
|
||||
m_outputs[pos] = sel;
|
||||
}
|
||||
|
||||
void ShaderFromNirProcessor::append_block(int nesting_change)
|
||||
|
|
@ -1008,7 +1008,7 @@ void ShaderFromNirProcessor::finalize()
|
|||
m_sh_info.input[i.first].gpr = i.second->sel();
|
||||
|
||||
for (auto& i : m_outputs)
|
||||
m_sh_info.output[i.first].gpr = i.second->sel();
|
||||
m_sh_info.output[i.first].gpr = i.second;
|
||||
|
||||
m_output.push_back(m_export_output);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue