• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #define FUNC_VARS                               \
2    struct draw_assembler *asmblr,               \
3    const struct draw_prim_info *input_prims,    \
4    const struct draw_vertex_info *input_verts,  \
5    unsigned start,                              \
6    unsigned count
7 
8 #define FUNC_ENTER                                                \
9    /* declare more local vars */                                  \
10    const unsigned prim = input_prims->prim;                       \
11    const unsigned prim_flags = input_prims->flags;                \
12    const boolean quads_flatshade_last = FALSE;                    \
13    const boolean last_vertex_last = !asmblr->draw->rasterizer->flatshade_first;  \
14    switch (prim) {                                                  \
15    case PIPE_PRIM_QUADS:                                            \
16    case PIPE_PRIM_QUAD_STRIP:                                       \
17    case PIPE_PRIM_POLYGON:                                          \
18       debug_assert(!"unexpected primitive type in prim assembler"); \
19       return;                                                       \
20    default:                                                         \
21       break;                                                        \
22    }
23 
24 
25 #define POINT(i0)                             prim_point(asmblr, i0)
26 #define LINE(flags, i0, i1)                   prim_line(asmblr, i0, i1)
27 #define TRIANGLE(flags, i0, i1, i2)           prim_tri(asmblr, i0, i1, i2)
28 
29 #include "draw_decompose_tmp.h"
30