From 38038b369f92aa692188d88e7d14a8c5de209acc Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 15 Apr 2020 16:36:10 +0200 Subject: [PATCH] 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: --- src/gallium/drivers/r600/sfn/sfn_shader_base.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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); -- 2.30.2