Home
last modified time | relevance | path

Searched refs:ArrayObj (Results 1 – 17 of 17) sorted by relevance

/external/mesa3d/src/mesa/main/
Dapi_validate.c117 if (ctx->Array.ArrayObj->_Enabled == 0x0 || !ctx->VertexProgram._Current) in check_valid_to_render()
126 if (!ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_POS].Enabled) in check_valid_to_render()
149 return (ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_POS].Enabled || in check_valid_to_render()
150 ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_GENERIC0].Enabled); in check_valid_to_render()
189 ib.obj = ctx->Array.ArrayObj->ElementArrayBufferObj; in check_index_bounds()
194 max + basevertex >= ctx->Array.ArrayObj->_MaxElement) { in check_index_bounds()
197 max, ctx->Array.ArrayObj->_MaxElement); in check_index_bounds()
342 if (_mesa_is_bufferobj(ctx->Array.ArrayObj->ElementArrayBufferObj)) { in _mesa_validate_DrawElements()
345 if (index_bytes(type, count) > ctx->Array.ArrayObj->ElementArrayBufferObj->Size) { in _mesa_validate_DrawElements()
399 if (_mesa_is_bufferobj(ctx->Array.ArrayObj->ElementArrayBufferObj)) { in _mesa_validate_MultiDrawElements()
[all …]
Dgetstring.c217 *params = (GLvoid *) ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_POS].Ptr; in _mesa_GetPointerv()
222 *params = (GLvoid *) ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_NORMAL].Ptr; in _mesa_GetPointerv()
227 *params = (GLvoid *) ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_COLOR0].Ptr; in _mesa_GetPointerv()
232 *params = (GLvoid *) ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_COLOR1].Ptr; in _mesa_GetPointerv()
237 *params = (GLvoid *) ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_FOG].Ptr; in _mesa_GetPointerv()
242 *params = (GLvoid *) ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_COLOR_INDEX].Ptr; in _mesa_GetPointerv()
247 *params = (GLvoid *) ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_TEX(clientUnit)].Ptr; in _mesa_GetPointerv()
252 *params = (GLvoid *) ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_EDGEFLAG].Ptr; in _mesa_GetPointerv()
268 *params = (GLvoid *) ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_POINT_SIZE].Ptr; in _mesa_GetPointerv()
Dvarray.c147 && (ctx->Array.ArrayObj == ctx->Array.DefaultArrayObj)) { in update_array()
248 if (ptr != NULL && ctx->Array.ArrayObj->ARBsemantics && in update_array()
256 array = &ctx->Array.ArrayObj->VertexAttrib[attrib]; in update_array()
271 ctx->Array.ArrayObj->NewArrays |= VERT_BIT(attrib); in update_array()
544 arrayObj = ctx->Array.ArrayObj; in _mesa_EnableVertexAttribArrayARB()
571 arrayObj = ctx->Array.ArrayObj; in _mesa_DisableVertexAttribArrayARB()
601 ASSERT(VERT_ATTRIB_GENERIC(index) < Elements(ctx->Array.ArrayObj->VertexAttrib)); in get_vertex_array_attrib()
603 array = &ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_GENERIC(index)]; in get_vertex_array_attrib()
662 ASSERT(VERT_ATTRIB_GENERIC(index) < Elements(ctx->Array.ArrayObj->VertexAttrib)); in get_current_attrib()
790 ASSERT(VERT_ATTRIB_GENERIC(index) < Elements(ctx->Array.ArrayObj->VertexAttrib)); in _mesa_GetVertexAttribPointervARB()
[all …]
Dattrib.c1398 copy_array_object(ctx, dest->ArrayObj, src->ArrayObj); in copy_array_attrib()
1414 dest->ArrayObj->Name = src->ArrayObj->Name; in save_array_attrib()
1421 _mesa_reference_buffer_object(ctx, &dest->ArrayObj->ElementArrayBufferObj, in save_array_attrib()
1422 src->ArrayObj->ElementArrayBufferObj); in save_array_attrib()
1445 const bool arb_vao = (src->ArrayObj->Name != 0 in restore_array_attrib()
1446 && src->ArrayObj->ARBsemantics); in restore_array_attrib()
1448 if (arb_vao && !_mesa_IsVertexArrayAPPLE(src->ArrayObj->Name)) in restore_array_attrib()
1451 _mesa_BindVertexArrayAPPLE(src->ArrayObj->Name); in restore_array_attrib()
1467 || src->ArrayObj->ElementArrayBufferObj->Name == 0 in restore_array_attrib()
1468 || _mesa_IsBufferARB(src->ArrayObj->ElementArrayBufferObj->Name)) in restore_array_attrib()
[all …]
Denable.c57 struct gl_array_object *arrayObj = ctx->Array.ArrayObj; in client_state()
1459 return (ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_POS].Enabled != 0); in _mesa_IsEnabled()
1463 return (ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_NORMAL].Enabled != 0); in _mesa_IsEnabled()
1467 return (ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_COLOR0].Enabled != 0); in _mesa_IsEnabled()
1471 return (ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_COLOR_INDEX].Enabled != 0); in _mesa_IsEnabled()
1475 return (ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_TEX(ctx->Array.ActiveTexture)] in _mesa_IsEnabled()
1480 return (ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_EDGEFLAG].Enabled != 0); in _mesa_IsEnabled()
1485 return (ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_FOG].Enabled != 0); in _mesa_IsEnabled()
1490 return (ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_COLOR1].Enabled != 0); in _mesa_IsEnabled()
1495 return (ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_POINT_SIZE].Enabled != 0); in _mesa_IsEnabled()
[all …]
Darrayobj.c343 struct gl_array_object * const oldObj = ctx->Array.ArrayObj; in bind_vertex_array()
393 _mesa_reference_array_object(ctx, &ctx->Array.ArrayObj, newObj); in bind_vertex_array()
459 if ( obj == ctx->Array.ArrayObj ) { in _mesa_DeleteVertexArraysAPPLE()
Dnvprogram.c368 array = &ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_GENERIC(index)]; in _mesa_GetVertexAttribdvNV()
412 array = &ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_GENERIC(index)]; in _mesa_GetVertexAttribfvNV()
456 array = &ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_GENERIC(index)]; in _mesa_GetVertexAttribivNV()
511 *pointer = (GLvoid *) ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_GENERIC(index)].Ptr; in _mesa_GetVertexAttribPointervNV()
Dstate.c561 _mesa_update_array_object_max_element(ctx, ctx->Array.ArrayObj); in _mesa_update_state_locked()
578 ctx->Array.ArrayObj->NewArrays = 0x0; in _mesa_update_state_locked()
Dbufferobj.c81 return &ctx->Array.ArrayObj->ElementArrayBufferObj; in get_buffer_target()
311 ASSERT(ctx->Array.ArrayObj->ElementArrayBufferObj != bufObj); in _mesa_reference_buffer_object_()
312 ASSERT(ctx->Array.ArrayObj->Vertex.BufferObj != bufObj); in _mesa_reference_buffer_object_()
862 struct gl_array_object *arrayObj = ctx->Array.ArrayObj; in _mesa_DeleteBuffersARB()
Dget.c1583 array = &ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_TEX(ctx->Array.ActiveTexture)]; in find_custom_value()
1715 ((char *) ctx->Array.ArrayObj + d->offset); in find_custom_value()
1723 ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_TEX(ctx->Array.ActiveTexture)].BufferObj->Name; in find_custom_value()
1726 v->value_int = ctx->Array.ArrayObj->ElementArrayBufferObj->Name; in find_custom_value()
1775 v->value_int = ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_POINT_SIZE].BufferObj->Name; in find_custom_value()
2036 *p = ((char *) ctx->Array.ArrayObj + d->offset); in find_value()
Dcontext.c1123 _mesa_reference_array_object(ctx, &ctx->Array.ArrayObj, NULL); in _mesa_free_context_data()
Dapi_arrayelt.c1472 struct gl_array_object *arrayObj = ctx->Array.ArrayObj; in _ae_update_state()
Dffvertex_prog.c233 if (ctx->Array.ArrayObj->VertexAttrib[VERT_ATTRIB_POINT_SIZE].Enabled) in make_state_key()
Dmtypes.h1625 struct gl_array_object *ArrayObj; member
/external/mesa3d/src/mesa/drivers/common/
Dmeta.c165 struct gl_array_object *ArrayObj; member
223 GLuint ArrayObj; member
234 GLuint ArrayObj; member
249 GLuint ArrayObj; member
259 GLuint ArrayObj; member
271 GLuint ArrayObj; member
292 GLuint ArrayObj; member
310 GLuint ArrayObj; member
320 GLuint ArrayObj; member
742 _mesa_reference_array_object(ctx, &save->ArrayObj, in _mesa_meta_begin()
[all …]
/external/mesa3d/src/mesa/vbo/
Dvbo_exec_array.c289 struct gl_array_object *arrayObj = ctx->Array.ArrayObj; in check_draw_elements_data()
293 if (_mesa_is_bufferobj(ctx->Array.ArrayObj->ElementArrayBufferObj)) { in check_draw_elements_data()
295 ctx->Array.ArrayObj->ElementArrayBufferObj->Size, in check_draw_elements_data()
297 ctx->Array.ArrayObj->ElementArrayBufferObj); in check_draw_elements_data()
326 ctx->Driver.UnmapBuffer(ctx, ctx->Array.ArrayObj->ElementArrayBufferObj); in check_draw_elements_data()
354 struct gl_array_object *arrayObj = ctx->Array.ArrayObj; in print_draw_arrays()
407 struct gl_client_array *vertexAttrib = ctx->Array.ArrayObj->VertexAttrib; in recalculate_input_bindings()
748 ctx->Array.ArrayObj->ElementArrayBufferObj->Size,
750 ctx->Array.ArrayObj->ElementArrayBufferObj);
756 for (i = 0; i < ctx->Array.ArrayObj->ElementArrayBufferObj->Size; i++) {
[all …]
Dvbo_save_api.c1234 if (_mesa_is_bufferobj(ctx->Array.ArrayObj->ElementArrayBufferObj)) in _save_OBE_DrawElements()
1236 ADD_POINTERS(ctx->Array.ArrayObj->ElementArrayBufferObj->Pointer, indices); in _save_OBE_DrawElements()