Home | History | Annotate | Download | only in vbo

Lines Matching refs:Array

73    check_buffers_are_unmapped(exec->array.inputs);
93 const GLboolean restart = ctx->Array.PrimitiveRestart;
94 const GLuint restartIndex = ctx->Array.RestartIndex;
220 * Check that element 'j' of the array has reasonable data.
225 check_array_data(struct gl_context *ctx, struct gl_client_array *array,
228 if (array->Enabled) {
229 const void *data = array->Ptr;
230 if (_mesa_is_bufferobj(array->BufferObj)) {
231 if (!array->BufferObj->Pointer) {
233 array->BufferObj->Pointer =
234 ctx->Driver.MapBufferRange(ctx, 0, array->BufferObj->Size,
235 GL_MAP_READ_BIT, array->BufferObj);
237 data = ADD_POINTERS(data, array->BufferObj->Pointer);
239 switch (array->Type) {
242 GLfloat *f = (GLfloat *) ((GLubyte *) data + array->StrideB * j);
244 for (k = 0; k < array->Size; k++) {
247 printf("Bad array data:\n");
249 printf(" Array %u at %p\n", attrib, (void* ) array);
251 array->Type, array->Size, array->Stride);
253 array->Ptr, array->BufferObj->Name);
268 * Unmap the buffer object referenced by given array, if mapped.
271 unmap_array_buffer(struct gl_context *ctx, struct gl_client_array *array)
273 if (array->Enabled &&
274 _mesa_is_bufferobj(array->BufferObj) &&
275 _mesa_bufferobj_mapped(array->BufferObj)) {
276 ctx->Driver.UnmapBuffer(ctx, array->BufferObj);
282 * Examine the array's data for NaNs, etc.
289 struct gl_array_object *arrayObj = ctx->Array.ArrayObj;
293 if (_mesa_is_bufferobj(ctx->Array.ArrayObj->ElementArrayBufferObj)) {
295 ctx->Array.ArrayObj->ElementArrayBufferObj->Size,
297 ctx->Array.ArrayObj->ElementArrayBufferObj);
319 /* check element j of each enabled array */
326 ctx->Driver.UnmapBuffer(ctx, ctx->Array.ArrayObj->ElementArrayBufferObj);
336 * Check array data, looking for NaNs, etc.
354 struct gl_array_object *arrayObj = ctx->Array.ArrayObj;
361 struct gl_buffer_object *bufObj = exec->array.inputs[i]->BufferObj;
363 GLint stride = exec->array.inputs[i]->Stride;
367 exec->array.inputs[i]->Size,
369 /*exec->array.inputs[i]->Enabled,*/
371 exec->array.inputs[i]->Ptr,
377 int offset = (int) (GLintptr) exec->array.inputs[i]->Ptr;
400 * to point at a zero-stride current value "array".
407 struct gl_client_array *vertexAttrib = ctx->Array.ArrayObj->VertexAttrib;
408 const struct gl_client_array **inputs = &exec->array.inputs[0];
471 * attribute array aliases and overrides the legacy position array.
514 * Examine the enabled vertex arrays to set the exec->array.inputs[] values.
528 if (exec->array.recalculate_inputs) {
540 exec->array.recalculate_inputs = GL_FALSE;
565 ctx->Array.PrimitiveRestart) {
601 if (ctx->Array.PrimitiveRestart && ctx->Array.RestartIndex < count) {
604 if (ctx->Array.RestartIndex == start) {
612 else if (ctx->Array.RestartIndex == start + count - 1) {
623 prim[0].count = ctx->Array.RestartIndex - start;
626 prim[1].start = ctx->Array.RestartIndex + 1;
634 check_buffers_are_unmapped(exec->array.inputs);
644 check_buffers_are_unmapped(exec->array.inputs);
748 ctx->Array.ArrayObj->ElementArrayBufferObj->Size,
750 ctx->Array.ArrayObj->ElementArrayBufferObj);
756 for (i = 0; i < ctx->Array.ArrayObj->ElementArrayBufferObj->Size; i++) {
768 for (i = 0; i < ctx->Array.ArrayObj->ElementArrayBufferObj->Size / 2; i++) {
780 for (i = 0; i < ctx->Array.ArrayObj->ElementArrayBufferObj->Size / 4; i++) {
792 ctx->Driver.UnmapBuffer(ctx, ctx->Array.ArrayObj->ElementArrayBufferObj);
820 ib.obj = ctx->Array.ArrayObj->ElementArrayBufferObj;
866 check_buffers_are_unmapped(exec->array.inputs);
901 start + basevertex >= ctx->Array.ArrayObj->_MaxElement) {
915 ctx->Array.ArrayObj->_MaxElement - 1);
941 ctx->Array.ArrayObj->ElementArrayBufferObj->Name,
946 end + basevertex >= ctx->Array.ArrayObj->_MaxElement)
1128 * This does the actual rendering after we've checked array indexes, etc.
1184 if (!_mesa_is_bufferobj(ctx->Array.ArrayObj->ElementArrayBufferObj))
1190 ib.obj = ctx->Array.ArrayObj->ElementArrayBufferObj;
1210 check_buffers_are_unmapped(exec->array.inputs);
1218 ib.obj = ctx->Array.ArrayObj->ElementArrayBufferObj;
1236 check_buffers_are_unmapped(exec->array.inputs);
1314 check_buffers_are_unmapped(exec->array.inputs);
1393 * Plug in the immediate-mode vertex array drawing commands into the