Home
last modified time | relevance | path

Searched refs:VAO (Results 1 – 25 of 38) sorted by relevance

12

/external/mesa3d/src/mesa/state_tracker/
Dst_cb_rasterpos.c67 struct gl_vertex_array_object *VAO; member
108 _mesa_reference_vao(rstage->ctx, &rstage->VAO, NULL); in rastpos_destroy()
201 rs->VAO = _mesa_new_vao(ctx, ~((GLuint)0)); in new_draw_rastpos_stage()
202 _mesa_vertex_attrib_binding(ctx, rs->VAO, VERT_ATTRIB_POS, 0); in new_draw_rastpos_stage()
203 _mesa_update_array_format(ctx, rs->VAO, VERT_ATTRIB_POS, 4, GL_FLOAT, in new_draw_rastpos_stage()
205 _mesa_enable_vertex_array_attrib(ctx, rs->VAO, 0); in new_draw_rastpos_stage()
258 rs->VAO->VertexAttrib[VERT_ATTRIB_POS].Ptr = (GLubyte *) v; in st_RasterPos()
259 rs->VAO->NewArrays |= VERT_BIT_POS; in st_RasterPos()
260 _mesa_set_draw_vao(ctx, rs->VAO, VERT_BIT_POS); in st_RasterPos()
/external/mesa3d/src/mesa/main/
Ddraw.c130 struct gl_vertex_array_object *vao = ctx->Array.VAO; in check_draw_elements_data()
192 if (!(ctx->Array.VAO->Enabled & VERT_BIT_POS)) in skip_validated_draw()
219 return !(ctx->Array.VAO->Enabled & (VERT_BIT_POS|VERT_BIT_GENERIC0)); in skip_validated_draw()
238 struct gl_vertex_array_object *vao = ctx->Array.VAO; in print_draw_arrays()
570 _mesa_set_draw_vao(ctx, ctx->Array.VAO, enabled_filter(ctx)); in _mesa_DrawArrays()
606 _mesa_set_draw_vao(ctx, ctx->Array.VAO, enabled_filter(ctx)); in _mesa_DrawArraysInstancedARB()
645 _mesa_set_draw_vao(ctx, ctx->Array.VAO, enabled_filter(ctx)); in _mesa_DrawArraysInstancedBaseInstance()
705 _mesa_set_draw_vao(ctx, ctx->Array.VAO, enabled_filter(ctx)); in _mesa_exec_MultiDrawArrays()
753 ctx->Array.VAO->IndexBufferObj->Size,
755 ctx->Array.VAO->IndexBufferObj,
[all …]
Dvarray.c958 update_array(ctx, ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_VertexPointer_no_error()
978 ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_VertexPointer()
984 update_array(ctx, ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_VertexPointer()
1030 update_array(ctx, ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_NormalPointer_no_error()
1050 ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_NormalPointer()
1056 update_array(ctx, ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_NormalPointer()
1104 update_array(ctx, ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_ColorPointer_no_error()
1127 ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_ColorPointer()
1133 update_array(ctx, ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_ColorPointer()
1182 update_array(ctx, ctx->Array.VAO, ctx->Array.ArrayBufferObj, in _mesa_FogCoordPointer_no_error()
[all …]
Denable.c185 client_state( ctx, ctx->Array.VAO, cap, GL_TRUE ); in _mesa_EnableClientState()
224 client_state_i(ctx, ctx->Array.VAO, cap, index, GL_TRUE); in _mesa_EnableClientStateiEXT()
239 client_state( ctx, ctx->Array.VAO, cap, GL_FALSE ); in _mesa_DisableClientState()
276 client_state_i(ctx, ctx->Array.VAO, cap, index, GL_FALSE); in _mesa_DisableClientStateiEXT()
930 client_state( ctx, ctx->Array.VAO, cap, state ); in _mesa_set_enable()
938 client_state( ctx, ctx->Array.VAO, cap, state ); in _mesa_set_enable()
943 client_state( ctx, ctx->Array.VAO, cap, state ); in _mesa_set_enable()
1738 return !!(ctx->Array.VAO->Enabled & VERT_BIT_POS); in _mesa_IsEnabled()
1742 return !!(ctx->Array.VAO->Enabled & VERT_BIT_NORMAL); in _mesa_IsEnabled()
1746 return !!(ctx->Array.VAO->Enabled & VERT_BIT_COLOR0); in _mesa_IsEnabled()
[all …]
Dattrib.c1620 copy_array_object(ctx, dest->VAO, src->VAO); in copy_array_attrib()
1639 dest->VAO->Name = src->VAO->Name; in save_array_attrib()
1646 _mesa_reference_buffer_object(ctx, &dest->VAO->IndexBufferObj, in save_array_attrib()
1647 src->VAO->IndexBufferObj); in save_array_attrib()
1658 bool is_vao_name_zero = src->VAO->Name == 0; in restore_array_attrib()
1669 if (!is_vao_name_zero && !_mesa_IsVertexArray(src->VAO->Name)) in restore_array_attrib()
1672 _mesa_BindVertexArray(src->VAO->Name); in restore_array_attrib()
1687 if (is_vao_name_zero || !src->VAO->IndexBufferObj || in restore_array_attrib()
1688 _mesa_IsBuffer(src->VAO->IndexBufferObj->Name)) { in restore_array_attrib()
1690 src->VAO->IndexBufferObj ? in restore_array_attrib()
[all …]
Ddraw_validate.c261 !_mesa_all_buffers_are_unmapped(ctx->Array.VAO)) { in check_valid_to_render()
336 if (ctx->Array.VAO == ctx->Array.DefaultVAO) { in check_valid_to_render()
777 if (!ctx->Array.VAO->IndexBufferObj) { in _mesa_validate_MultiDrawElements()
1109 ctx->Array.VAO == ctx->Array.DefaultVAO) { in valid_draw_indirect()
1123 ctx->Array.VAO->Enabled & ~ctx->Array.VAO->VertexAttribBufferMask) { in valid_draw_indirect()
1207 if (!ctx->Array.VAO->IndexBufferObj) { in valid_draw_indirect_elements()
Dget.c768 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_POS); in find_custom_value()
771 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_NORMAL); in find_custom_value()
774 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_COLOR0); in find_custom_value()
777 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_TEX(ctx->Array.ActiveTexture)); in find_custom_value()
780 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_COLOR_INDEX); in find_custom_value()
783 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_EDGEFLAG); in find_custom_value()
786 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_COLOR1); in find_custom_value()
789 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_FOG); in find_custom_value()
792 v->value_bool = !!(ctx->Array.VAO->Enabled & VERT_BIT_POINT_SIZE); in find_custom_value()
797 array = &ctx->Array.VAO->VertexAttrib[VERT_ATTRIB_TEX(ctx->Array.ActiveTexture)]; in find_custom_value()
[all …]
Dglthread_varray.c577 top->VAO = *glthread->CurrentVAO; in _mesa_glthread_PushClientAttrib()
612 if (top->VAO.Name) { in _mesa_glthread_PopClientAttrib()
613 vao = lookup_vao(ctx, top->VAO.Name); in _mesa_glthread_PopClientAttrib()
628 assert(top->VAO.Name == vao->Name); in _mesa_glthread_PopClientAttrib()
629 *vao = top->VAO; /* Copy all fields. */ in _mesa_glthread_PopClientAttrib()
Dgetstring.c343 _get_vao_pointerv(pname, ctx->Array.VAO, params, callerstr); in _mesa_GetPointerv()
360 *params = (GLvoid *) ctx->Array.VAO->VertexAttrib[VERT_ATTRIB_TEX(index)].Ptr; in _mesa_GetPointerIndexedvEXT()
Darrayobj.c971 struct gl_vertex_array_object *const oldObj = ctx->Array.VAO; in bind_vertex_array()
1012 _mesa_reference_vao(ctx, &ctx->Array.VAO, newObj); in bind_vertex_array()
1057 if (obj == ctx->Array.VAO) in delete_vertex_arrays()
Dglthread.h112 struct glthread_vao VAO; member
/external/mesa3d/src/mesa/drivers/common/
Dmeta.h156 struct gl_vertex_array_object *VAO; member
242 GLuint VAO; member
266 GLuint VAO; member
277 GLuint VAO; member
287 GLuint VAO; member
300 GLuint VAO; member
310 GLuint VAO; member
334 GLuint VAO; member
347 GLuint VAO; member
523 GLuint *VAO, struct gl_buffer_object **buf_obj,
[all …]
Dmeta_generate_mipmap.c130 if (mipmap->VAO == 0) in _mesa_meta_glsl_generate_mipmap_cleanup()
132 _mesa_DeleteVertexArrays(1, &mipmap->VAO); in _mesa_meta_glsl_generate_mipmap_cleanup()
133 mipmap->VAO = 0; in _mesa_meta_glsl_generate_mipmap_cleanup()
191 _mesa_meta_setup_vertex_objects(ctx, &mipmap->VAO, &mipmap->buf_obj, true, in _mesa_meta_GenerateMipmap()
195 _mesa_meta_setup_ff_tnl_for_blit(ctx, &mipmap->VAO, &mipmap->buf_obj, 3); in _mesa_meta_GenerateMipmap()
Dmeta.c325 GLuint *VAO, struct gl_buffer_object **buf_obj, in _mesa_meta_setup_vertex_objects() argument
330 if (*VAO == 0) { in _mesa_meta_setup_vertex_objects()
335 _mesa_GenVertexArrays(1, VAO); in _mesa_meta_setup_vertex_objects()
336 _mesa_BindVertexArray(*VAO); in _mesa_meta_setup_vertex_objects()
338 array_obj = _mesa_lookup_vao(ctx, *VAO); in _mesa_meta_setup_vertex_objects()
409 _mesa_BindVertexArray(*VAO); in _mesa_meta_setup_vertex_objects()
734 _mesa_reference_vao(ctx, &save->VAO, in _mesa_meta_begin()
735 ctx->Array.VAO); in _mesa_meta_begin()
1123 _mesa_BindVertexArray(save->VAO->Name); in _mesa_meta_end()
1124 _mesa_reference_vao(ctx, &save->VAO, NULL); in _mesa_meta_end()
[all …]
Dmeta_blit.c74 _mesa_meta_setup_vertex_objects(ctx, &blit->VAO, &blit->buf_obj, true, in setup_glsl_blit_framebuffer()
188 &ctx->Meta->Blit.VAO, in blitframebuffer_texture()
507 if (blit->VAO) { in _mesa_meta_glsl_blit_cleanup()
508 _mesa_DeleteVertexArrays(1, &blit->VAO); in _mesa_meta_glsl_blit_cleanup()
509 blit->VAO = 0; in _mesa_meta_glsl_blit_cleanup()
/external/mesa3d/src/mesa/vbo/
Dvbo_save_draw.c95 copy_vao(ctx, node->VAO[VP_MODE_SHADER], ~VERT_BIT_POS & VERT_BIT_ALL, in playback_copy_to_current()
98 copy_vao(ctx, node->VAO[VP_MODE_FF], VERT_BIT_MAT_ALL, in playback_copy_to_current()
128 _mesa_set_draw_vao(ctx, node->VAO[mode], _vbo_get_vao_filter(mode)); in bind_vertex_list()
136 struct gl_buffer_object *bo = list->VAO[0]->BufferBinding[0].BufferObj; in loopback_vertex_list()
Dvbo_save.c48 save->VAO[vpm] = NULL; in vbo_save_init()
62 _mesa_reference_vao(ctx, &save->VAO[vpm], NULL); in vbo_save_destroy()
Dvbo_context.c186 vbo->VAO = _mesa_new_vao(ctx, ~((GLuint)0)); in _vbo_CreateContext()
189 _mesa_vertex_attrib_binding(ctx, vbo->VAO, i, 0); in _vbo_CreateContext()
208 _mesa_reference_vao(ctx, &vbo->VAO, NULL); in _vbo_DestroyContext()
Dvbo_save.h56 struct gl_vertex_array_object *VAO[VP_MODE_MAX]; member
80 return node->VAO[0]->BufferBinding[0].Stride; in _vbo_save_get_stride()
Dvbo_save_api.c497 if (save->VAO[0]) { in compile_vertex_list()
498 old_offset = save->VAO[0]->BufferBinding[0].Offset in compile_vertex_list()
499 + save->VAO[0]->VertexAttrib[VERT_ATTRIB_POS].RelativeOffset; in compile_vertex_list()
539 update_vao(ctx, vpm, &save->VAO[vpm], in compile_vertex_list()
543 node->VAO[vpm] = NULL; in compile_vertex_list()
544 _mesa_reference_vao(ctx, &node->VAO[vpm], save->VAO[vpm]); in compile_vertex_list()
630 _mesa_reference_vao(ctx, &save->VAO[vpm], NULL); in compile_vertex_list()
1311 struct gl_vertex_array_object *vao = ctx->Array.VAO; in _save_OBE_DrawArrays()
1408 struct gl_vertex_array_object *vao = ctx->Array.VAO; in _save_OBE_DrawElementsBaseVertex()
1706 _mesa_reference_vao(ctx, &node->VAO[vpm], NULL); in vbo_destroy_vertex_list()
[all …]
Dvbo_save_loopback.c157 const struct gl_vertex_array_object *vao = node->VAO[VP_MODE_FF]; in _vbo_loopback_vertex_list()
164 vao = node->VAO[VP_MODE_SHADER]; in _vbo_loopback_vertex_list()
Dvbo.h146 struct gl_vertex_array_object *VAO[VP_MODE_MAX]; member
/external/mesa3d/docs/relnotes/
D10.0.4.rst103 - mesa: Preserve the NewArrays state when copying a VAO
118 - meta: Consistenly use non-Apple VAO functions
D11.0.7.rst97 - meta: Use internal functions for buffer object and VAO access
103 - meta: Use internal functions for buffer object and VAO access in
/external/deqp/doc/testspecs/GLES31/
Dfunctional.vertex_attribute_binding.txt45 - Use with default VAO

12