static void vbuf_flush( struct draw_stage *stage, unsigned flags ) { struct vbuf_stage *vbuf = vbuf_stage( stage ); vbuf_flush_vertices( vbuf ); }
static INLINE void check_space( struct vbuf_stage *vbuf, unsigned nr ) { if (vbuf->nr_vertices + nr > vbuf->max_vertices || vbuf->nr_indices + nr > vbuf->max_indices) { vbuf_flush_vertices( vbuf ); vbuf_alloc_vertices( vbuf ); } }
static void vbuf_flush( struct draw_stage *stage, unsigned flags ) { struct vbuf_stage *vbuf = vbuf_stage( stage ); vbuf_flush_vertices( vbuf ); stage->point = vbuf_first_point; stage->line = vbuf_first_line; stage->tri = vbuf_first_tri; }
static void vbuf_first_point( struct draw_stage *stage, struct prim_header *prim ) { struct vbuf_stage *vbuf = vbuf_stage( stage ); vbuf_flush_vertices(vbuf); vbuf_start_prim(vbuf, PIPE_PRIM_POINTS); stage->point = vbuf_point; stage->point( stage, prim ); }
static void vbuf_first_line( struct draw_stage *stage, struct prim_header *prim ) { struct vbuf_stage *vbuf = vbuf_stage( stage ); vbuf_flush_vertices( vbuf ); vbuf_start_prim(vbuf, PIPE_PRIM_LINES); stage->line = vbuf_line; stage->line( stage, prim ); }
static void vbuf_first_tri( struct draw_stage *stage, struct prim_header *prim ) { struct vbuf_stage *vbuf = vbuf_stage( stage ); vbuf_flush_vertices( vbuf ); vbuf_start_prim(vbuf, PIPE_PRIM_TRIANGLES); stage->tri = vbuf_tri; stage->tri( stage, prim ); }