Home
last modified time | relevance | path

Searched refs:VAO (Results 1 - 24 of 24) sorted by relevance

/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_cb_rasterpos.c69 struct gl_vertex_array_object *VAO; member
110 _mesa_reference_vao(rstage->ctx, &rstage->VAO, NULL); in rastpos_destroy()
205 rs->VAO = _mesa_new_vao(ctx, ~((GLuint)0)); in new_draw_rastpos_stage()
206 _mesa_vertex_attrib_binding(ctx, rs->VAO, VERT_ATTRIB_POS, 0); in new_draw_rastpos_stage()
207 _mesa_update_array_format(ctx, rs->VAO, VERT_ATTRIB_POS, 4, GL_FLOAT, in new_draw_rastpos_stage()
209 _mesa_enable_vertex_array_attrib(ctx, rs->VAO, 0); in new_draw_rastpos_stage()
263 rs->VAO->VertexAttrib[VERT_ATTRIB_POS].Ptr = (GLubyte *) v; in st_RasterPos()
264 rs->VAO->NewVertexBuffers = true; in st_RasterPos()
266 if (!rs->VAO->IsDynamic) in st_RasterPos()
267 rs->VAO in st_RasterPos()
[all...]
/third_party/mesa3d/src/mesa/main/
H A Dvarray.c989 update_array(ctx, ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_VertexPointer_no_error()
1009 ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_VertexPointer()
1015 update_array(ctx, ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_VertexPointer()
1061 update_array(ctx, ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_NormalPointer_no_error()
1081 ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_NormalPointer()
1087 update_array(ctx, ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_NormalPointer()
1135 update_array(ctx, ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_ColorPointer_no_error()
1158 ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_ColorPointer()
1164 update_array(ctx, ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_ColorPointer()
1213 update_array(ctx, ctx->Array.VAO, ct in _mesa_FogCoordPointer_no_error()
[all...]
H A Ddraw.c312 if (!ctx->Array.VAO->IndexBufferObj) { in _mesa_validate_MultiDrawElements()
621 ctx->Array.VAO == ctx->Array.DefaultVAO) in valid_draw_indirect()
633 ctx->Array.VAO->Enabled & ~ctx->Array.VAO->VertexAttribBufferMask) in valid_draw_indirect()
700 if (!ctx->Array.VAO->IndexBufferObj) in valid_draw_indirect_elements()
1166 struct gl_vertex_array_object *vao = ctx->Array.VAO; in check_draw_elements_data()
1221 struct gl_vertex_array_object *vao = ctx->Array.VAO; in print_draw_arrays()
1520 _mesa_set_draw_vao(ctx, ctx->Array.VAO, in _mesa_DrawArrays()
1551 _mesa_set_draw_vao(ctx, ctx->Array.VAO, in _mesa_DrawArraysInstancedARB()
1583 _mesa_set_draw_vao(ctx, ctx->Array.VAO, in _mesa_DrawArraysInstancedBaseInstance()
[all...]
H A Dattrib.c1249 copy_array_object(ctx, dest->VAO, src->VAO, copy_attrib_mask); in copy_array_attrib()
1265 dest->VAO->Name = src->VAO->Name; in save_array_attrib()
1266 dest->VAO->NonDefaultStateMask = src->VAO->NonDefaultStateMask; in save_array_attrib()
1268 copy_array_attrib(ctx, dest, src, false, src->VAO->NonDefaultStateMask); in save_array_attrib()
1273 _mesa_reference_buffer_object(ctx, &dest->VAO->IndexBufferObj, in save_array_attrib()
1274 src->VAO->IndexBufferObj); in save_array_attrib()
1285 bool is_vao_name_zero = src->VAO in restore_array_attrib()
[all...]
H A Denable.c83 * Helper to enable/disable VAO client-side state.
203 client_state( ctx, ctx->Array.VAO, cap, GL_TRUE ); in _mesa_EnableClientState()
242 client_state_i(ctx, ctx->Array.VAO, cap, index, GL_TRUE); in _mesa_EnableClientStateiEXT()
257 client_state( ctx, ctx->Array.VAO, cap, GL_FALSE ); in _mesa_DisableClientState()
294 client_state_i(ctx, ctx->Array.VAO, cap, index, GL_FALSE); in _mesa_DisableClientStateiEXT()
962 client_state( ctx, ctx->Array.VAO, cap, state ); in _mesa_set_enable()
970 client_state( ctx, ctx->Array.VAO, cap, state ); in _mesa_set_enable()
975 client_state( ctx, ctx->Array.VAO, cap, state ); in _mesa_set_enable()
1769 return !!(ctx->Array.VAO->Enabled & VERT_BIT_POS); in _mesa_IsEnabled()
1773 return !!(ctx->Array.VAO in _mesa_IsEnabled()
[all...]
H A Dget.c795 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_POS); in find_custom_value()
798 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_NORMAL); in find_custom_value()
801 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_COLOR0); in find_custom_value()
804 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_TEX(ctx->Array.ActiveTexture)); in find_custom_value()
807 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_COLOR_INDEX); in find_custom_value()
810 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_EDGEFLAG); in find_custom_value()
813 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_COLOR1); in find_custom_value()
816 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_FOG); in find_custom_value()
819 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_POINT_SIZE); in find_custom_value()
824 array = &ctx->Array.VAO in find_custom_value()
[all...]
H A Dglthread_varray.c166 /* If vaobj is NULL, use the currently-bound VAO. */
586 top->VAO = *glthread->CurrentVAO; in _mesa_glthread_PushClientAttrib()
619 /* Popping a delete VAO is an error. */ in _mesa_glthread_PopClientAttrib()
621 if (top->VAO.Name) { in _mesa_glthread_PopClientAttrib()
622 vao = lookup_vao(ctx, top->VAO.Name); in _mesa_glthread_PopClientAttrib()
637 assert(top->VAO.Name == vao->Name); in _mesa_glthread_PopClientAttrib()
638 *vao = top->VAO; /* Copy all fields. */ in _mesa_glthread_PopClientAttrib()
H A Dgetstring.c352 _get_vao_pointerv(pname, ctx->Array.VAO, params, callerstr); in _mesa_GetPointerv()
369 *params = (GLvoid *) ctx->Array.VAO->VertexAttrib[VERT_ATTRIB_TEX(index)].Ptr; in _mesa_GetPointerIndexedvEXT()
H A Darrayobj.c67 * the VAO attribute VERT_ATTRIB_POS, and grab vertex processing
68 * attribute VERT_ATTRIB_GENERIC0 from the VAO attribute
110 * VAO attribute VERT_ATTRIB_POS.
151 * VAO attribute VERT_ATTRIB_GENERIC0.
421 /* We work on the unmapped originaly VAO array entries. */ in compute_vbo_offset_range()
506 * The rationale is that once a VAO is finalized it should not
514 * thus no context state should bleed into the VAO.
533 * VERT_ATTRIB_{POS,GENERIC0} arrays and is tracked in the VAO. in _mesa_update_vao_derived_arrays()
551 /* Fast path when the VAO is updated too often. */ in _mesa_update_vao_derived_arrays()
555 /* More than 4 updates turn the VAO t in _mesa_update_vao_derived_arrays()
[all...]
H A Ddraw_validate.c228 if (ctx->Array.VAO == ctx->Array.DefaultVAO) in _mesa_update_valid_to_render_state()
H A Dglthread.h116 struct glthread_vao VAO; member
H A Dapi_arrayelt.c1438 const struct gl_vertex_array_object *vao = ctx->Array.VAO; in _mesa_array_element()
1494 vao = ctx->Array.VAO; in _mesa_ArrayElement()
H A Dmtypes.h1555 * the VAO to Array._DrawVAO.
1566 * the VAO to Array._DrawVAO.
1594 * the VAO to Array._DrawVAO.
1610 * the VAO to Array._DrawVAO.
1622 /** Name of the VAO as received from glGenVertexArray. */
1635 * Whether the VAO is changed by the application so often that some of
1651 * decide whether the VAO is static or dynamic.
1672 * been changed since the VAO creation. No bit is ever cleared to 0 by
1684 * the VAO to Array._DrawVAO.
1712 struct gl_vertex_array_object *VAO; member
3089 struct gl_vertex_array_object VAO; global() member
3100 struct gl_vertex_array_object *VAO; global() member
[all...]
H A Dcontext.c1132 _mesa_reference_vao(ctx, &ctx->Array.VAO, NULL); in _mesa_free_context_data()
H A Dbufferobj.c688 return &ctx->Array.VAO->IndexBufferObj; in get_buffer_target()
1427 bind_buffer_object(ctx, &ctx->Array.VAO->IndexBufferObj, 0, false); in _mesa_update_default_objects_buffer_objects()
1838 struct gl_vertex_array_object *vao = ctx->Array.VAO; in delete_buffers()
H A Ddlist.c743 _mesa_reference_vao(ctx, &node->cold->VAO[mode], NULL); in vbo_destroy_vertex_list()
769 struct gl_buffer_object *buffer = node->cold->VAO[0]->BufferBinding[0].BufferObj; in vbo_print_vertex_list()
/third_party/mesa3d/src/mesa/vbo/
H A Dvbo_context.c173 vbo->VAO = _mesa_new_vao(ctx, ~((GLuint)0)); in _vbo_CreateContext()
174 /* The exec VAO assumes to have all arributes bound to binding 0 */ in _vbo_CreateContext()
176 _mesa_vertex_attrib_binding(ctx, vbo->VAO, i, 0); in _vbo_CreateContext()
193 _mesa_reference_vao(ctx, &vbo->VAO, NULL); in _vbo_DestroyContext()
H A Dvbo_save.h80 struct gl_vertex_array_object *VAO[VP_MODE_MAX]; member
107 return node->cold->VAO[0]->BufferBinding[0].Stride; in _vbo_save_get_stride()
H A Dvbo_save.c48 save->VAO[vpm] = NULL; in vbo_save_init()
62 _mesa_reference_vao(ctx, &save->VAO[vpm], NULL); in vbo_save_destroy()
H A Dvbo_save_draw.c108 copy_vao(ctx, node->cold->VAO[VP_MODE_SHADER], ~VERT_BIT_POS & VERT_BIT_ALL, in playback_copy_to_current()
111 copy_vao(ctx, node->cold->VAO[VP_MODE_FF], VERT_BIT_MAT_ALL, in playback_copy_to_current()
133 * Set the appropriate VAO to draw.
140 _mesa_set_draw_vao(ctx, node->cold->VAO[mode], _vbo_get_vao_filter(mode)); in bind_vertex_list()
148 struct gl_buffer_object *bo = list->cold->VAO[0]->BufferBinding[0].BufferObj; in loopback_vertex_list()
H A Dvbo_save_loopback.c158 const struct gl_vertex_array_object *vao = node->cold->VAO[VP_MODE_FF]; in _vbo_loopback_vertex_list()
165 vao = node->cold->VAO[VP_MODE_SHADER]; in _vbo_loopback_vertex_list()
H A Dvbo_save_api.c92 * To allow draw call merging, display list must use the same VAO, including
373 * Note that the position/generic0 aliasing is done in the VAO. in update_vao()
391 /* Finalize and freeze the VAO */ in update_vao()
441 /* All the compared vertices are going to be drawn with the same VAO, in _compare_vertex_key()
769 const GLintptr old_offset = save->VAO[0] ? in compile_vertex_list()
770 save->VAO[0]->BufferBinding[0].Offset + save->VAO[0]->VertexAttrib[VERT_ATTRIB_POS].RelativeOffset : 0; in compile_vertex_list()
944 update_vao(ctx, vpm, &save->VAO[vpm], in compile_vertex_list()
948 node->cold->VAO[vpm] = NULL; in compile_vertex_list()
949 _mesa_reference_vao(ctx, &node->cold->VAO[vp in compile_vertex_list()
[all...]
H A Dvbo.h158 struct gl_vertex_array_object *VAO[VP_MODE_MAX]; member
H A Dvbo_exec_draw.c89 struct gl_vertex_array_object *vao = vbo->VAO; in vbo_exec_bind_arrays()
123 * Note that the position/generic0 aliasing is done in the VAO. in vbo_exec_bind_arrays()
320 /* Prepare and set the exec draws internal VAO for drawing. */ in vbo_exec_vtx_flush()

Completed in 71 milliseconds