~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/drivers/llvmpipe/lp_setup_context.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:
77
77
   struct pipe_context *pipe;
78
78
   struct vertex_info *vertex_info;
79
79
   uint view_index;
80
 
   enum pipe_prim_type prim;
 
80
   enum mesa_prim prim;
81
81
   uint vertex_size;
82
82
   uint nr_vertices;
83
83
   uint sprite_coord_enable, sprite_coord_origin;
102
102
   unsigned flatshade_first:1;
103
103
   unsigned ccw_is_frontface:1;
104
104
   unsigned scissor_test:1;
105
 
   unsigned point_tri_clip:1;
 
105
   unsigned point_line_tri_clip:1;
106
106
   unsigned point_size_per_vertex:1;
107
107
   unsigned legacy_points:1;
108
108
   unsigned rasterizer_discard:1;
186
186
                    const float (*v1)[4],
187
187
                    const float (*v2)[4]);
188
188
 
189
 
   boolean
 
189
   bool
190
190
   (*rect)(struct lp_setup_context *,
191
191
           const float (*v0)[4],
192
192
           const float (*v1)[4],
198
198
 
199
199
 
200
200
static inline void
201
 
scissor_planes_needed(boolean scis_planes[4], const struct u_rect *bbox,
 
201
scissor_planes_needed(bool scis_planes[4], const struct u_rect *bbox,
202
202
                      const struct u_rect *scissor)
203
203
{
204
204
   /* left */
215
215
void
216
216
lp_setup_add_scissor_planes(const struct u_rect *scissor,
217
217
                            struct lp_rast_plane *plane_s,
218
 
                            boolean s_planes[4], bool multisample);
 
218
                            bool s_planes[4], bool multisample);
219
219
 
220
220
void
221
221
lp_setup_choose_triangle(struct lp_setup_context *setup);
232
232
void
233
233
lp_setup_init_vbuf(struct lp_setup_context *setup);
234
234
 
235
 
boolean
 
235
bool
236
236
lp_setup_update_state(struct lp_setup_context *setup,
237
 
                      boolean update_scene);
 
237
                      bool update_scene);
238
238
 
239
239
void
240
240
lp_setup_destroy(struct lp_setup_context *setup);
241
241
 
242
 
boolean
 
242
bool
243
243
lp_setup_flush_and_restart(struct lp_setup_context *setup);
244
244
 
245
 
boolean
 
245
bool
246
246
lp_setup_whole_tile(struct lp_setup_context *setup,
247
247
                    const struct lp_rast_shader_inputs *inputs,
248
 
                    int tx, int ty, boolean opaque);
 
248
                    int tx, int ty, bool opaque);
249
249
 
250
 
boolean
 
250
bool
251
251
lp_setup_is_blit(const struct lp_setup_context *setup,
252
252
                 const struct lp_rast_shader_inputs *inputs);
253
253
 
267
267
           const float (*v0)[4],
268
268
           const float (*v1)[4],
269
269
           const float (*v2)[4],
270
 
           boolean frontfacing);
 
270
           bool frontfacing);
271
271
 
272
272
void
273
273
lp_setup_triangle_ccw(struct lp_setup_context *setup,
274
274
                      const float (*v0)[4],
275
275
                      const float (*v1)[4],
276
276
                      const float (*v2)[4],
277
 
                      boolean front);
 
277
                      bool front);
278
278
 
279
279
struct lp_rast_triangle *
280
280
lp_setup_alloc_triangle(struct lp_scene *scene,
281
281
                        unsigned num_inputs,
282
 
                        unsigned nr_planes,
283
 
                        unsigned *tri_size);
 
282
                        unsigned nr_planes);
284
283
 
285
284
struct lp_rast_rectangle *
286
285
lp_setup_alloc_rectangle(struct lp_scene *scene,
287
286
                         unsigned nr_inputs);
288
287
 
289
 
boolean
 
288
bool
290
289
lp_setup_analyse_triangles(struct lp_setup_context *setup,
291
290
                           const void *vb,
292
291
                           int stride,
293
292
                           int nr);
294
293
 
295
 
boolean
 
294
bool
296
295
lp_setup_bin_triangle(struct lp_setup_context *setup,
297
296
                      struct lp_rast_triangle *tri,
298
 
                      boolean use_32bits,
299
 
                      boolean opaque,
 
297
                      bool use_32bits,
 
298
                      bool opaque,
300
299
                      const struct u_rect *bbox,
301
300
                      int nr_planes,
302
301
                      unsigned scissor_index);
303
302
 
304
 
boolean
 
303
bool
305
304
lp_setup_bin_rectangle(struct lp_setup_context *setup,
306
305
                       struct lp_rast_rectangle *rect,
307
 
                       boolean opaque);
 
306
                       bool opaque);
308
307
 
309
 
static inline boolean
 
308
static inline bool
310
309
lp_setup_zero_sample_mask(struct lp_setup_context *setup)
311
310
{
312
311
   uint32_t sample_mask = setup->fs.current.jit_context.sample_mask;