aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h
blob: 861ce1adaa1f15711ec4a4541a31f4c75dae2b61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#define FUNC_VARS                      \
   struct draw_pt_front_end *frontend, \
   pt_elt_func get_elt,                \
   const void *elts,                   \
   int elt_bias,                       \
   unsigned count

#define LOCAL_VARS \
   struct vcache_frontend *vcache = (struct vcache_frontend *) frontend;   \
   struct draw_context *draw = vcache->draw;                               \
   const unsigned prim = vcache->input_prim;                               \
   const boolean last_vertex_last = !(draw->rasterizer->flatshade &&       \
                                      draw->rasterizer->flatshade_first)

#define GET_ELT(idx) (get_elt(elts, idx) + elt_bias)

#define FUNC_EXIT do { vcache_flush(vcache); } while (0)

#include "draw_decompose_tmp.h"