From: Gert Wollny Date: Sun, 5 Jul 2020 14:46:03 +0000 (+0200) Subject: r600/sfn: Pipe through requesting a register at a given channel X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=deccf0224648f868fae9a6aba1883b571cad1af6;p=mesa.git r600/sfn: Pipe through requesting a register at a given channel Signed-off-by: Gert Wollny Part-of: --- diff --git a/src/gallium/drivers/r600/sfn/sfn_emitinstruction.cpp b/src/gallium/drivers/r600/sfn/sfn_emitinstruction.cpp index a5ace9a164d..40a99156f7c 100644 --- a/src/gallium/drivers/r600/sfn/sfn_emitinstruction.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_emitinstruction.cpp @@ -138,9 +138,9 @@ EmitInstruction::get_literal_register(const nir_src& src) const 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 a4470cb9f23..9e1958f431f 100644 --- a/src/gallium/drivers/r600/sfn/sfn_emitinstruction.h +++ b/src/gallium/drivers/r600/sfn/sfn_emitinstruction.h @@ -67,7 +67,7 @@ protected: int allocate_temp_register(); - PValue get_temp_register(); + PValue get_temp_register(int channel = -1); GPRVector get_temp_vec4(); // forwards from ShaderFromNirProcessor