diff options
author | Gert Wollny <[email protected]> | 2020-04-15 16:36:10 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-28 08:06:33 +0000 |
commit | 38038b369f92aa692188d88e7d14a8c5de209acc (patch) | |
tree | 9f94c6bada4e92221cc03e56a5a0f4099ad52e1d /src/gallium/drivers | |
parent | 93f5f9e584b3d39fc120d91b1e6276bc18e917d3 (diff) |
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4714>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/r600/sfn/sfn_shader_base.h | 12 |
1 files 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); |