#define GET_ELT(idx) (MIN2(elts[idx], max_index))
#define FUNC pipe_run_elts
-#define FUNC_VARS \
+#define FUNC_VARS \
struct draw_context *draw, \
- enum mesa_prim prim, \
+ enum mesa_prim prim, \
unsigned prim_flags, \
struct vertex_header *vertices, \
unsigned stride, \
- const uint16_t *elts, \
+ const uint16_t *elts, \
unsigned count, \
unsigned max_index
static void
lp_clear_color_texture_helper(struct pipe_transfer *dst_trans,
- uint8_t *dst_map,
- enum pipe_format format,
- const union pipe_color_union *color,
- unsigned width, unsigned height,
+ uint8_t *dst_map,
+ enum pipe_format format,
+ const union pipe_color_union *color,
+ unsigned width, unsigned height,
unsigned depth)
{
union util_color uc;
}
uint8_t *dst_map = llvmpipe_transfer_map_ms(pipe,
- texture,
- 0,
- (need_rmw ? PIPE_MAP_READ_WRITE :
- PIPE_MAP_WRITE),
- sample, box, &dst_trans);
+ texture,
+ 0,
+ (need_rmw ? PIPE_MAP_READ_WRITE :
+ PIPE_MAP_WRITE),
+ sample, box, &dst_trans);
assert(dst_map);
if (!dst_map)
return;
}
static void r300_render_unmap_vertices(struct vbuf_render* render,
- uint16_t min,
- uint16_t max)
+ uint16_t min,
+ uint16_t max)
{
struct r300_render* r300render = r300_render(render);
struct r300_context* r300 = r300render->r300;