~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/auxiliary/draw/draw_pipe.c

  • 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:
36
36
#include "util/u_math.h"
37
37
 
38
38
 
39
 
boolean
 
39
bool
40
40
draw_pipeline_init(struct draw_context *draw)
41
41
{
42
42
   /* create pipeline stages */
64
64
       !draw->pipeline.cull ||
65
65
       !draw->pipeline.user_cull ||
66
66
       !draw->pipeline.validate)
67
 
      return FALSE;
 
67
      return false;
68
68
 
69
69
   /* these defaults are oriented toward the needs of softpipe */
70
70
   draw->pipeline.wide_point_threshold = 1000000.0f; /* infinity */
71
71
   draw->pipeline.wide_line_threshold = 1.0f;
72
 
   draw->pipeline.wide_point_sprites = FALSE;
73
 
   draw->pipeline.line_stipple = TRUE;
74
 
   draw->pipeline.point_sprite = TRUE;
 
72
   draw->pipeline.wide_point_sprites = false;
 
73
   draw->pipeline.line_stipple = true;
 
74
   draw->pipeline.point_sprite = true;
75
75
 
76
 
   return TRUE;
 
76
   return true;
77
77
}
78
78
 
79
79
 
136
136
 */
137
137
static void
138
138
do_line(struct draw_context *draw,
139
 
        ushort flags,
 
139
        uint16_t flags,
140
140
        const char *v0,
141
141
        const char *v1)
142
142
{
157
157
 */
158
158
static void
159
159
do_triangle(struct draw_context *draw,
160
 
            ushort flags,
 
160
            uint16_t flags,
161
161
            char *v0,
162
162
            char *v1,
163
163
            char *v2)
204
204
#define GET_ELT(idx) (MIN2(elts[idx], max_index))
205
205
 
206
206
#define FUNC pipe_run_elts
207
 
#define FUNC_VARS                               \
 
207
#define FUNC_VARS                              \
208
208
   struct draw_context *draw,                  \
209
 
   enum pipe_prim_type prim,                   \
 
209
   enum mesa_prim prim,                        \
210
210
   unsigned prim_flags,                        \
211
211
   struct vertex_header *vertices,             \
212
212
   unsigned stride,                            \
213
 
   const ushort *elts,                         \
 
213
   const uint16_t *elts,                       \
214
214
   unsigned count,                             \
215
215
   unsigned max_index
216
216
 
304
304
#define FUNC pipe_run_linear
305
305
#define FUNC_VARS                     \
306
306
   struct draw_context *draw,         \
307
 
   enum pipe_prim_type prim,          \
 
307
   enum mesa_prim prim,          \
308
308
   unsigned prim_flags,               \
309
309
   struct vertex_header *vertices,    \
310
310
   unsigned stride,                   \