From: Gert Wollny Date: Wed, 15 Apr 2020 14:36:10 +0000 (+0200) Subject: r600/sfn: Move some shader base methods to the public interface X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=38038b369f92aa692188d88e7d14a8c5de209acc;p=mesa.git r600/sfn: Move some shader base methods to the public interface This will be needed for handling the VS stage export better. Signed-off-by: Gert Wollny Part-of: --- diff --git a/src/gallium/drivers/r600/sfn/sfn_shader_base.h b/src/gallium/drivers/r600/sfn/sfn_shader_base.h index 45d7895d5e7..c747cc6db9a 100644 --- a/src/gallium/drivers/r600/sfn/sfn_shader_base.h +++ b/src/gallium/drivers/r600/sfn/sfn_shader_base.h @@ -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);