Lines Matching defs:draw

35 #include "draw.h"
102 * to filter out arrays unwanted for the currently executed draw operation.
104 * enabled arrays when a fixed function array draw is executed.
374 * the draw-time error for transform feedback buffer overflow conditions
392 * pre-validate draw calls in GLES3 (where draw calls only succeed if there is
473 * verify that we really can draw something.
654 * (thus allowing transform feedback to work with indirect draw commands).
976 * non-indexed draw calls (they are undefined), but classic drivers
984 /* Single draw or a fallback for user indices. */
1302 struct pipe_draw_start_count_bias draw;
1321 draw.start = start;
1322 draw.count = count;
1324 ctx->Driver.DrawGallium(ctx, &info, 0, &draw, 1);
1628 struct pipe_draw_start_count_bias *draw;
1630 ALLOC_PRIMS(draw, primcount, "glMultiDrawElements");
1648 draw[i].start = first[i];
1649 draw[i].count = count[i];
1652 ctx->Driver.DrawGallium(ctx, &info, 0, draw, primcount);
1657 FREE_PRIMS(draw, primcount);
1748 struct pipe_draw_start_count_bias draw;
1773 draw.start = 0;
1783 draw.start = start >> index_size_shift;
1785 draw.index_bias = basevertex;
1789 draw.count = count;
1793 * application is issuing multiple DrawRangeElements() to draw
1797 * re-upload the vertex data on each draw call.
1800 * upload at zero, as it will mean every draw call uploads an
1822 ctx->Driver.DrawGallium(ctx, &info, 0, &draw, 1);
1861 /* The application requested we draw using a range of indices that's
2173 * in draw[i].start. The driver will multiply it later by index_size
2180 struct pipe_draw_start_count_bias *draw;
2182 ALLOC_PRIMS(draw, primcount, "glMultiDrawElements");
2186 draw[i].start =
2188 draw[i].count = count[i];
2189 draw[i].index_bias = basevertex ? basevertex[i] : 0;
2193 draw[i].start = (uintptr_t)indices[i] >> index_size_shift;
2194 draw[i].count =
2196 draw[i].index_bias = basevertex ? basevertex[i] : 0;
2200 ctx->Driver.DrawGallium(ctx, &info, 0, draw, primcount);
2201 FREE_PRIMS(draw, primcount);
2203 /* draw[i].start would overflow. Draw one at a time. */
2208 struct pipe_draw_start_count_bias draw;
2216 draw.start = 0;
2217 draw.index_bias = basevertex ? basevertex[i] : 0;
2218 draw.count = count[i];
2220 ctx->Driver.DrawGallium(ctx, &info, i, &draw, 1);
2281 * \param mode the type of GL primitive to draw
2285 * \param numInstances number of instances to draw
2379 /* If drawcount_buffer is set, drawcount is the maximum draw count.*/
2400 /* If drawcount_buffer is set, drawcount is the maximum draw count.*/
2580 struct pipe_draw_start_count_bias draw;
2581 draw.start = cmd->first;
2582 draw.count = cmd->count;
2584 ctx->Driver.DrawGallium(ctx, &info, i, &draw, 1);
2674 struct pipe_draw_start_count_bias draw;
2675 draw.start = cmd->firstIndex;
2676 draw.count = cmd->count;
2677 draw.index_bias = cmd->baseVertex;
2679 ctx->Driver.DrawGallium(ctx, &info, i, &draw, 1);