Mesa (master): r600/sfn: Pipe through requesting a register at a given channel

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 20 09:42:30 UTC 2020


Module: Mesa
Branch: master
Commit: deccf0224648f868fae9a6aba1883b571cad1af6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=deccf0224648f868fae9a6aba1883b571cad1af6

Author: Gert Wollny <gert.wollny at collabora.com>
Date:   Sun Jul  5 16:46:03 2020 +0200

r600/sfn: Pipe through requesting a register at a given channel

Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5963>

---

 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



More information about the mesa-commit mailing list