• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef TCSSHADERFROMNIR_H
2 #define TCSSHADERFROMNIR_H
3 
4 #include "sfn_shader_base.h"
5 
6 namespace r600 {
7 
8 class TcsShaderFromNir : public ShaderFromNirProcessor
9 {
10 public:
11    TcsShaderFromNir(r600_pipe_shader *sh, r600_pipe_shader_selector& sel, const r600_shader_key& key, enum chip_class chip_class);
12    bool scan_sysvalue_access(nir_instr *instr) override;
13 
14 private:
15    bool do_allocate_reserved_registers() override;
16    bool emit_intrinsic_instruction_override(nir_intrinsic_instr* instr) override;
17    bool store_tess_factor(nir_intrinsic_instr* instr);
18 
do_finalize()19    void do_finalize() override {}
20 
21    int m_reserved_registers;
22    PValue m_patch_id;
23    PValue m_rel_patch_id;
24    PValue m_invocation_id;
25    PValue m_primitive_id;
26    PValue m_tess_factor_base;
27 
28 
29 };
30 
31 }
32 
33 #endif // TCSSHADERFROMNIR_H
34