Home
last modified time | relevance | path

Searched refs:vao (Results 1 – 25 of 121) sorted by relevance

12345

/external/mesa3d/src/mesa/main/
Dglthread_varray.c38 _mesa_glthread_reset_vao(struct glthread_vao *vao) in _mesa_glthread_reset_vao() argument
49 vao->CurrentElementBufferName = 0; in _mesa_glthread_reset_vao()
50 vao->UserEnabled = 0; in _mesa_glthread_reset_vao()
51 vao->Enabled = 0; in _mesa_glthread_reset_vao()
52 vao->BufferEnabled = 0; in _mesa_glthread_reset_vao()
53 vao->UserPointerMask = 0; in _mesa_glthread_reset_vao()
54 vao->NonZeroDivisorMask = 0; in _mesa_glthread_reset_vao()
56 for (unsigned i = 0; i < ARRAY_SIZE(vao->Attrib); i++) { in _mesa_glthread_reset_vao()
61 vao->Attrib[i].ElementSize = elem_size; in _mesa_glthread_reset_vao()
62 vao->Attrib[i].RelativeOffset = 0; in _mesa_glthread_reset_vao()
[all …]
Darrayobj.h69 struct gl_vertex_array_object *vao);
74 struct gl_vertex_array_object *vao) in _mesa_reference_vao() argument
76 if (*ptr != vao) in _mesa_reference_vao()
77 _mesa_reference_vao_(ctx, ptr, vao); in _mesa_reference_vao()
88 struct gl_vertex_array_object *vao);
96 struct gl_vertex_array_object *vao);
101 _mesa_all_varyings_in_vbos(const struct gl_vertex_array_object *vao);
105 _mesa_all_buffers_are_unmapped(const struct gl_vertex_array_object *vao);
109 _mesa_vao_map_arrays(struct gl_context *ctx, struct gl_vertex_array_object *vao,
113 _mesa_vao_map(struct gl_context *ctx, struct gl_vertex_array_object *vao,
[all …]
Darrayobj.c213 struct gl_vertex_array_object *vao; in _mesa_lookup_vao() local
217 vao = ctx->Array.LastLookedUpVAO; in _mesa_lookup_vao()
219 vao = (struct gl_vertex_array_object *) in _mesa_lookup_vao()
222 _mesa_reference_vao(ctx, &ctx->Array.LastLookedUpVAO, vao); in _mesa_lookup_vao()
225 return vao; in _mesa_lookup_vao()
262 struct gl_vertex_array_object *vao; in _mesa_lookup_vao_err() local
266 vao = ctx->Array.LastLookedUpVAO; in _mesa_lookup_vao_err()
268 vao = (struct gl_vertex_array_object *) in _mesa_lookup_vao_err()
277 if (!vao || (!is_ext_dsa && !vao->EverBound)) { in _mesa_lookup_vao_err()
291 if (vao && is_ext_dsa && !vao->EverBound) in _mesa_lookup_vao_err()
[all …]
Dvarray.c137 struct gl_vertex_array_object *vao) in update_attribute_map_mode() argument
146 const GLbitfield enabled = vao->Enabled; in update_attribute_map_mode()
148 vao->_AttributeMapMode = ATTRIBUTE_MAP_MODE_GENERIC0; in update_attribute_map_mode()
150 vao->_AttributeMapMode = ATTRIBUTE_MAP_MODE_POSITION; in update_attribute_map_mode()
152 vao->_AttributeMapMode = ATTRIBUTE_MAP_MODE_IDENTITY; in update_attribute_map_mode()
162 struct gl_vertex_array_object *vao, in _mesa_vertex_attrib_binding() argument
166 struct gl_array_attributes *array = &vao->VertexAttrib[attribIndex]; in _mesa_vertex_attrib_binding()
167 assert(!vao->SharedAndImmutable); in _mesa_vertex_attrib_binding()
172 if (vao->BufferBinding[bindingIndex].BufferObj) in _mesa_vertex_attrib_binding()
173 vao->VertexAttribBufferMask |= array_bit; in _mesa_vertex_attrib_binding()
[all …]
Dglthread_marshal.h84 struct glthread_vao *vao = glthread->CurrentVAO; in _mesa_glthread_has_non_vbo_vertices_or_indices() local
87 (vao->CurrentElementBufferName == 0 || in _mesa_glthread_has_non_vbo_vertices_or_indices()
88 (vao->UserPointerMask & vao->BufferEnabled)); in _mesa_glthread_has_non_vbo_vertices_or_indices()
95 const struct glthread_vao *vao = glthread->CurrentVAO; in _mesa_glthread_has_non_vbo_vertices() local
98 (vao->UserPointerMask & vao->BufferEnabled); in _mesa_glthread_has_non_vbo_vertices()
105 const struct glthread_vao *vao = glthread->CurrentVAO; in _mesa_glthread_has_non_vbo_vertices_or_indirect() local
109 (vao->UserPointerMask & vao->BufferEnabled)); in _mesa_glthread_has_non_vbo_vertices_or_indirect()
116 struct glthread_vao *vao = glthread->CurrentVAO; in _mesa_glthread_has_non_vbo_vertices_or_indices_or_indirect() local
120 vao->CurrentElementBufferName == 0 || in _mesa_glthread_has_non_vbo_vertices_or_indices_or_indirect()
121 (vao->UserPointerMask & vao->BufferEnabled)); in _mesa_glthread_has_non_vbo_vertices_or_indices_or_indirect()
Dglthread_draw.c115 struct glthread_vao *vao = ctx->GLThread.CurrentVAO; in upload_vertices() local
116 unsigned attrib_mask_iter = vao->Enabled; in upload_vertices()
119 assert((num_vertices || !(user_buffer_mask & ~vao->NonZeroDivisorMask)) && in upload_vertices()
120 (num_instances || !(user_buffer_mask & vao->NonZeroDivisorMask))); in upload_vertices()
122 if (unlikely(vao->BufferInterleaved & user_buffer_mask)) { in upload_vertices()
132 unsigned binding_index = vao->Attrib[i].BufferIndex; in upload_vertices()
137 unsigned stride = vao->Attrib[binding_index].Stride; in upload_vertices()
138 unsigned instance_div = vao->Attrib[binding_index].Divisor; in upload_vertices()
139 unsigned element_size = vao->Attrib[i].ElementSize; in upload_vertices()
140 unsigned offset = vao->Attrib[i].RelativeOffset; in upload_vertices()
[all …]
Dgetstring.c234 _get_vao_pointerv(GLenum pname, struct gl_vertex_array_object* vao, in _get_vao_pointerv() argument
250 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_POS].Ptr; in _get_vao_pointerv()
255 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_NORMAL].Ptr; in _get_vao_pointerv()
260 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_COLOR0].Ptr; in _get_vao_pointerv()
265 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_COLOR1].Ptr; in _get_vao_pointerv()
270 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_FOG].Ptr; in _get_vao_pointerv()
275 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_COLOR_INDEX].Ptr; in _get_vao_pointerv()
280 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_TEX(clientUnit)].Ptr; in _get_vao_pointerv()
285 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_EDGEFLAG].Ptr; in _get_vao_pointerv()
300 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_POINT_SIZE].Ptr; in _get_vao_pointerv()
Dapi_arrayelt.c1418 attrib_src(const struct gl_vertex_array_object *vao, in attrib_src() argument
1422 &vao->BufferBinding[array->BufferBindingIndex]; in attrib_src()
1437 const struct gl_vertex_array_object *vao = ctx->Array.VAO; in _mesa_array_element() local
1441 mask = (VERT_BIT_FF_ALL & ~VERT_BIT_POS) & vao->Enabled; in _mesa_array_element()
1444 const struct gl_array_attributes *array = &vao->VertexAttrib[attrib]; in _mesa_array_element()
1445 const void *src = attrib_src(vao, array, elt); in _mesa_array_element()
1450 mask = (VERT_BIT_GENERIC_ALL & ~VERT_BIT_GENERIC0) & vao->Enabled; in _mesa_array_element()
1453 const struct gl_array_attributes *array = &vao->VertexAttrib[attrib]; in _mesa_array_element()
1454 const void *src = attrib_src(vao, array, elt); in _mesa_array_element()
1459 if (vao->Enabled & VERT_BIT_GENERIC0) { in _mesa_array_element()
[all …]
Dstate.c623 _mesa_set_draw_vao(struct gl_context *ctx, struct gl_vertex_array_object *vao, in _mesa_set_draw_vao() argument
628 if (*ptr != vao) { in _mesa_set_draw_vao()
629 _mesa_reference_vao_(ctx, ptr, vao); in _mesa_set_draw_vao()
634 if (vao->NewArrays) { in _mesa_set_draw_vao()
635 _mesa_update_vao_derived_arrays(ctx, vao); in _mesa_set_draw_vao()
636 vao->NewArrays = 0; in _mesa_set_draw_vao()
642 const GLbitfield enabled = filter & _mesa_get_vao_vp_inputs(vao); in _mesa_set_draw_vao()
Denable.c62 vao_state(struct gl_context *ctx, struct gl_vertex_array_object* vao, in vao_state() argument
66 _mesa_enable_vertex_array_attrib(ctx, vao, attr); in vao_state()
68 _mesa_disable_vertex_array_attrib(ctx, vao, attr); in vao_state()
76 client_state(struct gl_context *ctx, struct gl_vertex_array_object* vao, in client_state() argument
81 vao_state(ctx, vao, VERT_ATTRIB_POS, state); in client_state()
84 vao_state(ctx, vao, VERT_ATTRIB_NORMAL, state); in client_state()
87 vao_state(ctx, vao, VERT_ATTRIB_COLOR0, state); in client_state()
90 vao_state(ctx, vao, VERT_ATTRIB_COLOR_INDEX, state); in client_state()
93 vao_state(ctx, vao, VERT_ATTRIB_TEX(ctx->Array.ActiveTexture), state); in client_state()
96 vao_state(ctx, vao, VERT_ATTRIB_EDGEFLAG, state); in client_state()
[all …]
Dvarray.h77 struct gl_vertex_array_object *vao,
85 struct gl_vertex_array_object *vao,
90 struct gl_vertex_array_object *vao, in _mesa_enable_vertex_array_attrib() argument
94 _mesa_enable_vertex_array_attribs(ctx, vao, VERT_BIT(attrib)); in _mesa_enable_vertex_array_attrib()
100 struct gl_vertex_array_object *vao,
105 struct gl_vertex_array_object *vao, in _mesa_disable_vertex_array_attrib() argument
109 _mesa_disable_vertex_array_attribs(ctx, vao, VERT_BIT(attrib)); in _mesa_disable_vertex_array_attrib()
115 struct gl_vertex_array_object *vao,
122 struct gl_vertex_array_object *vao,
Ddraw.c66 check_array_data(struct gl_context *ctx, struct gl_vertex_array_object *vao, in check_array_data() argument
69 const struct gl_array_attributes *array = &vao->VertexAttrib[attrib]; in check_array_data()
70 if (vao->Enabled & VERT_BIT(attrib)) { in check_array_data()
72 &vao->BufferBinding[array->BufferBindingIndex]; in check_array_data()
130 struct gl_vertex_array_object *vao = ctx->Array.VAO; in check_draw_elements_data() local
134 _mesa_vao_map(ctx, vao, GL_MAP_READ_BIT); in check_draw_elements_data()
136 if (vao->IndexBufferObj) in check_draw_elements_data()
138 ADD_POINTERS(vao->IndexBufferObj->Mappings[MAP_INTERNAL].Pointer, elements); in check_draw_elements_data()
160 check_array_data(ctx, vao, k, j); in check_draw_elements_data()
164 _mesa_vao_unmap(ctx, vao); in check_draw_elements_data()
[all …]
/external/mesa3d/src/mesa/vbo/
Dvbo_save_loopback.c138 const struct gl_vertex_array_object *vao) in append_attr() argument
141 la[*nr].offset = vao->VertexAttrib[i].RelativeOffset; in append_attr()
142 la[*nr].func = vert_attrfunc[vao->VertexAttrib[i].Format.Size - 1]; in append_attr()
157 const struct gl_vertex_array_object *vao = node->VAO[VP_MODE_FF]; in _vbo_loopback_vertex_list() local
158 GLbitfield mask = vao->Enabled & VERT_BIT_MAT_ALL; in _vbo_loopback_vertex_list()
161 append_attr(&nr, la, i, VBO_MATERIAL_SHIFT, vao); in _vbo_loopback_vertex_list()
164 vao = node->VAO[VP_MODE_SHADER]; in _vbo_loopback_vertex_list()
165 mask = vao->Enabled & ~(VERT_BIT_POS | VERT_BIT_GENERIC0); in _vbo_loopback_vertex_list()
168 append_attr(&nr, la, i, 0, vao); in _vbo_loopback_vertex_list()
172 if (vao->Enabled & VERT_BIT_GENERIC0) { in _vbo_loopback_vertex_list()
[all …]
Dvbo_exec_draw.c88 struct gl_vertex_array_object *vao = vbo->VAO; in vbo_exec_bind_arrays() local
107 _mesa_disable_vertex_array_attribs(ctx, vao, VERT_BIT_ALL & ~vao_enabled); in vbo_exec_bind_arrays()
108 assert((~vao_enabled & vao->Enabled) == 0); in vbo_exec_bind_arrays()
112 _mesa_bind_vertex_buffer(ctx, vao, 0, exec->vtx.bufferobj, buffer_offset, in vbo_exec_bind_arrays()
132 _vbo_set_attrib_format(ctx, vao, vao_attr, buffer_offset, in vbo_exec_bind_arrays()
136 assert(vao->VertexAttrib[vao_attr].BufferBindingIndex == 0); in vbo_exec_bind_arrays()
138 _mesa_enable_vertex_array_attribs(ctx, vao, vao_enabled); in vbo_exec_bind_arrays()
139 assert(vao_enabled == vao->Enabled); in vbo_exec_bind_arrays()
141 (vao_enabled & ~vao->VertexAttribBufferMask) == 0); in vbo_exec_bind_arrays()
143 _mesa_set_draw_vao(ctx, vao, _vbo_get_vao_filter(mode)); in vbo_exec_bind_arrays()
Dvbo_private.h222 struct gl_vertex_array_object *vao, in _vbo_set_attrib_format() argument
231 _mesa_update_array_format(ctx, vao, attr, size, type, GL_RGBA, in _vbo_set_attrib_format()
233 vao->NewArrays |= vao->Enabled & VERT_BIT(attr); in _vbo_set_attrib_format()
234 vao->VertexAttrib[attr].Ptr = ADD_POINTERS(buffer_offset, offset); in _vbo_set_attrib_format()
Dvbo_save_api.c362 const struct gl_vertex_array_object *vao, in compare_vao() argument
369 if (!vao) in compare_vao()
373 if (vao_enabled != vao->Enabled) in compare_vao()
377 if (vao->BufferBinding[0].BufferObj != bo) in compare_vao()
380 if (vao->BufferBinding[0].Stride != stride) in compare_vao()
382 assert(vao->BufferBinding[0].InstanceDivisor == 0); in compare_vao()
394 const struct gl_array_attributes *attrib = &vao->VertexAttrib[attr]; in compare_vao()
395 if (attrib->RelativeOffset + vao->BufferBinding[0].Offset != off) in compare_vao()
416 struct gl_vertex_array_object **vao, in update_vao() argument
430 if (compare_vao(mode, *vao, bo, buffer_offset, stride, in update_vao()
[all …]
Dvbo_save_draw.c45 copy_vao(struct gl_context *ctx, const struct gl_vertex_array_object *vao, in copy_vao() argument
50 mask &= vao->Enabled; in copy_vao()
53 const struct gl_array_attributes *attrib = &vao->VertexAttrib[i]; in copy_vao()
/external/deqp/modules/gles3/functional/
Des3fVertexArrayObjectTests.cpp127 VertexArrayState vao; member
244 m_vaoProgram = createProgram(m_spec.vao); in init()
254 …if (m_spec.useDrawElements && (m_spec.vao.elementArrayBuffer == 0 || m_spec.state.elementArrayBuff… in init()
608 GLuint vao = 0; in render() local
610 GLU_CHECK_CALL(glGenVertexArrays(1, &vao)); in render()
611 GLU_CHECK_CALL(glBindVertexArray(vao)); in render()
612 setState(m_spec.vao); in render()
617 GLU_CHECK_CALL(glBindVertexArray(vao)); in render()
619 makeDrawCall(m_spec.vao); in render()
621 setState(m_spec.vao); in render()
[all …]
Des3fLifetimeTests.cpp72 void draw (GLuint vao, GLfloat scale, bool tf, Surface* dst);
73 void setPos (GLuint buffer, GLuint vao);
126 void ScaleProgram::draw (GLuint vao, GLfloat scale, bool tf, Surface* dst) in draw() argument
129 de::Random rnd (vao); in draw()
136 gl.bindVertexArray(vao); in draw()
155 void ScaleProgram::setPos (GLuint buffer, GLuint vao) in setPos() argument
160 gl.bindVertexArray(vao); in setPos()
264 void BufferVAOAttacher::attach (GLuint buffer, GLuint vao) in attach() argument
266 m_program.setPos(buffer, vao); in attach()
268 << "// Set the `pos` attribute in VAO " << vao << " to buffer " << buffer in attach()
[all …]
/external/deqp/modules/gles31/functional/
Des31fVertexAttributeBindingStateQueryTests.cpp90 glu::VertexArray vao (m_context.getRenderContext()); in test() local
95 gl.glBindVertexArray(*vao); in test()
124 gl.glBindVertexArray(*vao); in test()
165 glu::VertexArray vao (m_context.getRenderContext()); in test() local
170 gl.glBindVertexArray(*vao); in test()
199 gl.glBindVertexArray(*vao); in test()
267 glu::VertexArray vao (m_context.getRenderContext()); in test() local
273 gl.glBindVertexArray(*vao); in test()
304 gl.glBindVertexArray(*vao); in test()
344 glu::VertexArray vao (m_context.getRenderContext()); in test() local
[all …]
Des31fNegativeVertexArrayApiTests.cpp163 GLuint vao = 0; in vertex_attrib_pointer() local
165 ctx.glGenVertexArrays(1, &vao); in vertex_attrib_pointer()
166 ctx.glBindVertexArray(vao); in vertex_attrib_pointer()
174 ctx.glDeleteVertexArrays(1, &vao); in vertex_attrib_pointer()
207 GLuint vao = 0; in vertex_attrib_i_pointer() local
209 ctx.glGenVertexArrays(1, &vao); in vertex_attrib_i_pointer()
210 ctx.glBindVertexArray(vao); in vertex_attrib_i_pointer()
218 ctx.glDeleteVertexArrays(1, &vao); in vertex_attrib_i_pointer()
227 GLuint vao = 0; in vertex_attrib_format() local
230 ctx.glGenVertexArrays(1, &vao); in vertex_attrib_format()
[all …]
/external/deqp/external/openglcts/modules/gl/
Dgl4cDirectStateAccessVertexArraysTests.cpp3533 glw::GLuint vao = 0; in iterate() local
3538 gl.genVertexArrays(1, &vao); in iterate()
3541 gl.bindVertexArray(vao); in iterate()
3551 gl.getVertexArrayiv(vao, GL_ELEMENT_ARRAY_BUFFER_BINDING, &result); in iterate()
3578 if (vao) in iterate()
3580 gl.deleteVertexArrays(1, &vao); in iterate()
4247 glw::GLuint vao = 0; in iterate() local
4256 gl.createVertexArrays(1, &vao); in iterate()
4275 gl.enableVertexArrayAttrib(max_attributes, vao); in iterate()
4281 gl.disableVertexArrayAttrib(max_attributes, vao); in iterate()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_array.c140 const struct gl_vertex_array_object *vao = ctx->Array._DrawVAO; in st_setup_arrays() local
152 if (vao->IsDynamic) { in st_setup_arrays()
156 _mesa_draw_array_attrib(vao, attr); in st_setup_arrays()
158 &vao->BufferBinding[attrib->BufferBindingIndex]; in st_setup_arrays()
188 = _mesa_draw_buffer_binding(vao, i); in st_setup_arrays()
217 = _mesa_draw_array_attrib(vao, attr); in st_setup_arrays()
/external/angle/src/tests/gl_tests/
DMultiviewDrawTest.cpp429 void initVAO(GLuint vao, GLuint vertexBuffer, GLuint indexBuffer) in initVAO() argument
431 glBindVertexArray(vao); in initVAO()
552 GLVertexArray vao; in TEST_P() local
555 initVAO(vao, vertexBuffer, indexBuffer); in TEST_P()
645 GLVertexArray vao; in TEST_P() local
648 initVAO(vao, vertexBuffer, indexBuffer); in TEST_P()
706 GLVertexArray vao; in TEST_P() local
709 initVAO(vao, vertexBuffer, indexBuffer); in TEST_P()
758 GLVertexArray vao; in TEST_P() local
761 initVAO(vao, vertexBuffer, indexBuffer); in TEST_P()
[all …]
/external/deqp/external/openglcts/modules/common/
DglcSeparableProgramsTransformFeedbackTests.cpp262 Utils::vertexArray vao(m_context); in iterate() local
263 vao.generate(); in iterate()
264 vao.bind(); in iterate()

12345