r600/sfn: Move some shader base methods to the public interface
authorGert Wollny <gert.wollny@collabora.com>
Wed, 15 Apr 2020 14:36:10 +0000 (16:36 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Apr 2020 08:06:33 +0000 (08:06 +0000)
This will be needed for handling the VS stage export better.

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

src/gallium/drivers/r600/sfn/sfn_shader_base.h

index 45d7895d5e7ea806a7d093807c9e3cb4c251d67a..c747cc6db9a56aa7fe6615b1b8a93b645ee9a284 100644 (file)
@@ -76,15 +76,17 @@ public:
    void remap_registers();
 
    const nir_variable *get_deref_location(const nir_src& src) const;
-protected:
 
-   void set_var_address(nir_deref_instr *instr);
-   void set_input(unsigned pos, PValue var);
+   r600_shader& sh_info() {return m_sh_info;}
+   void add_param_output_reg(int loc, const GPRVector *gpr);
    void set_output(unsigned pos, PValue var);
-
+   const GPRVector *output_register(unsigned location) const;
    void evaluate_spi_sid(r600_shader_io &io);
 
-   r600_shader& sh_info() {return m_sh_info;}
+protected:
+
+   void set_var_address(nir_deref_instr *instr);
+   void set_input(unsigned pos, PValue var);
 
    bool scan_instruction(nir_instr *instr);