commit | deccf0224648f868fae9a6aba1883b571cad1af6 | [log] [tgz] |
---|---|---|
author | Gert Wollny <gert.wollny@collabora.com> | Sun Jul 05 16:46:03 2020 +0200 |
committer | Marge Bot <eric+marge@anholt.net> | Mon Jul 20 09:32:51 2020 +0000 |
tree | 9e82bd852a118cc97d2f4113db902450ad3dd53b | |
parent | 55cc712991824c7aa1ac89905c153eebc781a592 [diff] |
r600/sfn: Pipe through requesting a register at a given channel Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5963>
diff --git a/src/gallium/drivers/r600/sfn/sfn_emitinstruction.cpp b/src/gallium/drivers/r600/sfn/sfn_emitinstruction.cpp index a5ace9a..40a9915 100644 --- a/src/gallium/drivers/r600/sfn/sfn_emitinstruction.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_emitinstruction.cpp
@@ -138,9 +138,9 @@ return nullptr; } -PValue EmitInstruction::get_temp_register() +PValue EmitInstruction::get_temp_register(int channel) { - return m_proc.get_temp_register(); + return m_proc.get_temp_register(channel); } GPRVector EmitInstruction::get_temp_vec4()
diff --git a/src/gallium/drivers/r600/sfn/sfn_emitinstruction.h b/src/gallium/drivers/r600/sfn/sfn_emitinstruction.h index a4470cb9..9e1958f 100644 --- a/src/gallium/drivers/r600/sfn/sfn_emitinstruction.h +++ b/src/gallium/drivers/r600/sfn/sfn_emitinstruction.h
@@ -67,7 +67,7 @@ int allocate_temp_register(); - PValue get_temp_register(); + PValue get_temp_register(int channel = -1); GPRVector get_temp_vec4(); // forwards from ShaderFromNirProcessor