r600/sfn: Pipe through requesting a register at a given channel
authorGert Wollny <gert.wollny@collabora.com>
Sun, 5 Jul 2020 14:46:03 +0000 (16:46 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Jul 2020 09:32:51 +0000 (09:32 +0000)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5963>

src/gallium/drivers/r600/sfn/sfn_emitinstruction.cpp
src/gallium/drivers/r600/sfn/sfn_emitinstruction.h

index a5ace9a164d8b849117738486395d35cb76411c3..40a99156f7c68722dd8aeb4db3e2b4c8a915ef58 100644 (file)
@@ -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()
index a4470cb9f23519afea1634ecfa755009a6e0d9bb..9e1958f431f6b85b90ddfbeb0bbd6b4505d7bc55 100644 (file)
@@ -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