Lines Matching refs:indices
64 const GLvoid **indices)
71 _mesa_glthread_upload(ctx, *indices, index_size * count,
74 *indices = (const GLvoid*)(intptr_t)upload_offset;
82 const GLsizei *count, const GLvoid *const *indices,
101 memcpy(upload_ptr + offset, indices[i], size);
575 const GLvoid *indices;
592 const GLvoid *indices = cmd->indices;
598 (mode, count, type, indices,
613 const GLvoid *indices;
624 const GLvoid *indices = cmd->indices;
631 type, indices, basevertex));
637 GLenum type, const GLvoid *indices, GLsizei instance_count,
649 cmd->indices = indices;
661 cmd->indices = indices;
681 const GLvoid *indices;
699 const GLvoid *indices = cmd->indices;
723 type, indices, basevertex));
726 (mode, count, type, indices,
744 GLenum type, const GLvoid *indices, GLsizei instance_count,
760 cmd->indices = indices;
775 draw_elements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices,
798 draw_elements_async(ctx, mode, count, type, indices, instance_count,
811 /* Sync if indices come from a buffer and vertices come from memory
814 * We would have to map the indices to compute the index bounds, and
825 ctx->GLThread._PrimitiveRestart, indices,
834 * indices. */
844 /* Upload indices. */
847 index_buffer = upload_indices(ctx, count, index_size, &indices);
850 draw_elements_async_user(ctx, mode, count, type, indices, instance_count,
863 (mode, count, type, indices, basevertex));
866 (mode, min_index, max_index, count, type, indices));
868 CALL_DrawElements(ctx->CurrentServerDispatch, (mode, count, type, indices));
873 type, indices, basevertex));
876 (mode, count, type, indices,
908 const GLvoid *const *indices = (const GLvoid *const *)variable_data;
930 (mode, count, type, indices, draw_count,
934 (mode, count, type, indices, draw_count));
951 const GLvoid *const *indices, GLsizei draw_count,
958 int indices_size = sizeof(indices[0]) * draw_count;
981 memcpy(variable_data, indices, indices_size);
998 const GLvoid *const *indices,
1016 if (multi_draw_elements_async(ctx, mode, count, type, indices,
1025 * Sync if indices come from a buffer and vertices come from memory
1026 * and index bounds are not valid. We would have to map the indices
1050 multi_draw_elements_async(ctx, mode, count, type, indices, draw_count,
1060 ctx->GLThread._PrimitiveRestart, indices[i],
1075 multi_draw_elements_async(ctx, mode, count, type, indices, draw_count,
1081 * indices. */
1085 /* Only compute total_count for the upload of indices. */
1091 multi_draw_elements_async(ctx, mode, count, type, indices, draw_count,
1103 multi_draw_elements_async(ctx, mode, count, type, indices, draw_count,
1116 /* Upload indices. */
1119 const GLvoid **out_indices = alloca(sizeof(indices[0]) * draw_count);
1122 draw_count, count, indices,
1124 indices = out_indices;
1128 multi_draw_elements_async(ctx, mode, count, type, indices, draw_count,
1138 (mode, count, type, indices, draw_count,
1142 (mode, count, type, indices, draw_count));
1169 const GLvoid *indices)
1171 draw_elements(mode, count, type, indices, 1, 0, 0, false, 0, 0, true);
1177 const GLvoid *indices)
1179 draw_elements(mode, count, type, indices, 1, 0, 0, true, start, end, true);
1184 const GLvoid *indices, GLsizei instance_count)
1186 draw_elements(mode, count, type, indices, instance_count, 0, 0, false, 0, 0, false);
1191 const GLvoid *indices, GLint basevertex)
1193 draw_elements(mode, count, type, indices, 1, basevertex, 0, false, 0, 0, true);
1199 const GLvoid *indices, GLint basevertex)
1201 draw_elements(mode, count, type, indices, 1, basevertex, 0, true, start, end, false);
1206 GLenum type, const GLvoid *indices,
1209 draw_elements(mode, count, type, indices, instance_count, basevertex, 0, false, 0, 0, false);
1214 GLenum type, const GLvoid *indices,
1217 draw_elements(mode, count, type, indices, instance_count, 0, baseinstance, false, 0, 0, false);
1222 GLenum type, const GLvoid *indices,
1226 draw_elements(mode, count, type, indices, instance_count, basevertex, baseinstance, false, 0, 0, false);
1231 GLenum type, const GLvoid *const *indices,
1234 _mesa_marshal_MultiDrawElementsBaseVertex(mode, count, type, indices,