draw: Avoid mixed declarations and code.
[mesa.git] / src / gallium / auxiliary / draw / draw_pt_vcache_tmp.h
1 #define FUNC_VARS \
2 struct draw_pt_front_end *frontend, \
3 pt_elt_func get_elt, \
4 const void *elts, \
5 int elt_bias, \
6 unsigned count
7
8 #define LOCAL_VARS \
9 struct vcache_frontend *vcache = (struct vcache_frontend *) frontend; \
10 struct draw_context *draw = vcache->draw; \
11 const unsigned prim = vcache->input_prim; \
12 const boolean last_vertex_last = !(draw->rasterizer->flatshade && \
13 draw->rasterizer->flatshade_first);
14
15 #define GET_ELT(idx) (get_elt(elts, idx) + elt_bias)
16
17 #define FUNC_EXIT do { vcache_flush(vcache); } while (0)
18
19 #include "draw_decompose_tmp.h"