From deccf0224648f868fae9a6aba1883b571cad1af6 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Sun, 5 Jul 2020 16:46:03 +0200 Subject: [PATCH] r600/sfn: Pipe through requesting a register at a given channel Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/sfn/sfn_emitinstruction.cpp | 4 ++-- src/gallium/drivers/r600/sfn/sfn_emitinstruction.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.30.2