Lines Matching refs:Array
46 * Check that element 'j' of the array has reasonable data.
54 const struct gl_array_attributes *array = &vao->VertexAttrib[attrib];
55 if (array->Enabled) {
57 &vao->BufferBinding[array->BufferBindingIndex];
59 const void *data = array->Ptr;
67 data = ADD_POINTERS(_mesa_vertex_attrib_address(array, binding),
70 switch (array->Type) {
75 for (k = 0; k < array->Size; k++) {
77 printf("Bad array data:\n");
79 printf(" Array %u at %p\n", attrib, (void *) array);
81 array->Type, array->Size, binding->Stride);
83 array->Ptr, bo->Name);
98 * Unmap the buffer object referenced by given array, if mapped.
104 const struct gl_array_attributes *array = &vao->VertexAttrib[attrib];
105 if (array->Enabled) {
107 &vao->BufferBinding[array->BufferBindingIndex];
117 * Examine the array's data for NaNs, etc.
125 struct gl_vertex_array_object *vao = ctx->Array.VAO;
156 /* check element j of each enabled array */
173 * Check array data, looking for NaNs, etc.
196 if (!ctx->Array.VAO->VertexAttrib[VERT_ATTRIB_POS].Enabled)
221 * array [0]).
223 return (!ctx->Array.VAO->VertexAttrib[VERT_ATTRIB_POS].Enabled &&
224 !ctx->Array.VAO->VertexAttrib[VERT_ATTRIB_GENERIC0].Enabled);
243 const struct gl_vertex_array_object *vao = ctx->Array.VAO;
250 const struct gl_array_attributes *array = &vao->VertexAttrib[i];
251 if (!array->Enabled)
255 &vao->BufferBinding[array->BufferBindingIndex];
261 array->Size, binding->Stride, array->Enabled,
262 array->Ptr, bufObj->Name);
269 _mesa_vertex_attrib_address(array, binding);
292 * to point at a zero-stride current value "array".
299 const struct gl_array_attributes *array = ctx->Array.VAO->VertexAttrib;
300 struct gl_vertex_array *vertexAttrib = ctx->Array.VAO->_VertexAttrib;
301 const struct gl_vertex_array **inputs = &exec->array.inputs[0];
313 if (array[VERT_ATTRIB_FF(i)].Enabled)
345 * attribute array aliases and overrides the legacy position array.
354 if (array[VERT_ATTRIB_GENERIC0].Enabled)
356 else if (array[VERT_ATTRIB_POS].Enabled)
364 if (array[VERT_ATTRIB_FF(i)].Enabled)
373 if (array[VERT_ATTRIB_GENERIC(i)].Enabled)
391 assert(!array[VERT_ATTRIB_FF(i)].Enabled);
398 if (array[VERT_ATTRIB_GENERIC(i)].Enabled)
418 * Examine the enabled vertex arrays to set the exec->array.inputs[] values.
432 if (exec->array.recalculate_inputs) {
434 exec->array.recalculate_inputs = GL_FALSE;
778 ctx->Array.VAO->IndexBufferObj->Size,
780 ctx->Array.VAO->IndexBufferObj,
787 for (i = 0; i < ctx->Array.VAO->IndexBufferObj->Size; i++) {
799 for (i = 0; i < ctx->Array.VAO->IndexBufferObj->Size / 2; i++) {
811 for (i = 0; i < ctx->Array.VAO->IndexBufferObj->Size / 4; i++) {
823 ctx->Driver.UnmapBuffer(ctx, ctx->Array.VAO->IndexBufferObj, MAP_INTERNAL);
837 if (!_mesa_is_bufferobj(ctx->Array.VAO->IndexBufferObj) && indices == NULL)
877 ib.obj = ctx->Array.VAO->IndexBufferObj;
1009 ctx->Array.VAO->IndexBufferObj->Name, basevertex);
1254 * This does the actual rendering after we've checked array indexes, etc.
1319 if (!_mesa_is_bufferobj(ctx->Array.VAO->IndexBufferObj))
1325 ib.obj = ctx->Array.VAO->IndexBufferObj;
1358 ib.obj = ctx->Array.VAO->IndexBufferObj;
1459 !_mesa_all_varyings_in_vbos(ctx->Array.VAO))) {
1616 ib.obj = ctx->Array.VAO->IndexBufferObj;
1648 ib.obj = ctx->Array.VAO->IndexBufferObj;
1727 /* If <stride> is zero, the array elements are treated as tightly packed. */
1762 /* If <stride> is zero, the array elements are treated as tightly packed. */
1832 ib.obj = ctx->Array.VAO->IndexBufferObj;
1859 /* If <stride> is zero, the array elements are treated as tightly packed. */
1897 /* If <stride> is zero, the array elements are treated as tightly packed. */