~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/auxiliary/draw/draw_tess.h

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include "draw_context.h"
30
30
#include "draw_private.h"
31
31
 
 
32
#include "tgsi/tgsi_scan.h"
 
33
 
32
34
struct draw_context;
33
35
#ifdef DRAW_LLVM_AVAILABLE
34
36
 
67
69
#ifdef DRAW_LLVM_AVAILABLE
68
70
   struct draw_tcs_inputs *tcs_input;
69
71
   struct draw_tcs_outputs *tcs_output;
70
 
   struct draw_tcs_jit_context *jit_context;
 
72
   struct lp_jit_resources *jit_resources;
71
73
   struct draw_tcs_llvm_variant *current_variant;
72
74
#endif
73
75
};
77
79
   struct pipe_shader_state state;
78
80
   struct tgsi_shader_info info;
79
81
 
80
 
   enum pipe_prim_type prim_mode;
 
82
   enum mesa_prim prim_mode;
81
83
   unsigned spacing;
82
84
   unsigned vertex_order_cw;
83
85
   unsigned point_mode;
94
96
 
95
97
#ifdef DRAW_LLVM_AVAILABLE
96
98
   struct draw_tes_inputs *tes_input;
97
 
   struct draw_tes_jit_context *jit_context;
 
99
   struct lp_jit_resources *jit_resources;
98
100
   struct draw_tes_llvm_variant *current_variant;
99
101
#endif
100
102
};
101
103
 
102
 
enum pipe_prim_type get_tes_output_prim(struct draw_tess_eval_shader *shader);
 
104
enum mesa_prim get_tes_output_prim(struct draw_tess_eval_shader *shader);
103
105
 
104
106
int draw_tess_ctrl_shader_run(struct draw_tess_ctrl_shader *shader,
105
 
                              const void *constants[PIPE_MAX_CONSTANT_BUFFERS],
106
 
                              const unsigned constants_size[PIPE_MAX_CONSTANT_BUFFERS],
107
107
                              const struct draw_vertex_info *input_verts,
108
108
                              const struct draw_prim_info *input_prim,
109
109
                              const struct tgsi_shader_info *input_info,
111
111
                              struct draw_prim_info *output_prims );
112
112
 
113
113
int draw_tess_eval_shader_run(struct draw_tess_eval_shader *shader,
114
 
                              const void *constants[PIPE_MAX_CONSTANT_BUFFERS],
115
 
                              const unsigned constants_size[PIPE_MAX_CONSTANT_BUFFERS],
116
114
                              unsigned num_input_vertices_per_patch,
117
115
                              const struct draw_vertex_info *input_verts,
118
116
                              const struct draw_prim_info *input_prim,
119
117
                              const struct tgsi_shader_info *input_info,
120
118
                              struct draw_vertex_info *output_verts,
121
119
                              struct draw_prim_info *output_prims,
122
 
                              ushort **elts_out);
 
120
                              uint16_t **elts_out);
123
121
 
124
122
#ifdef DRAW_LLVM_AVAILABLE
125
123
void draw_tcs_set_current_variant(struct draw_tess_ctrl_shader *shader,