HomeSort by: relevance | last modified time | path
    Searched refs:vao (Results 1 - 25 of 47) sorted by relevancy

1 2

  /xsrc/external/mit/MesaLib/dist/src/mesa/main/
glthread_varray.c 38 _mesa_glthread_reset_vao(struct glthread_vao *vao)
49 vao->CurrentElementBufferName = 0;
50 vao->UserEnabled = 0;
51 vao->Enabled = 0;
52 vao->BufferEnabled = 0;
53 vao->UserPointerMask = 0;
54 vao->NonZeroDivisorMask = 0;
56 for (unsigned i = 0; i < ARRAY_SIZE(vao->Attrib); i++) {
61 vao->Attrib[i].ElementSize = elem_size;
62 vao->Attrib[i].RelativeOffset = 0
75 struct glthread_vao *vao; local
101 struct glthread_vao *vao = lookup_vao(ctx, id); local
122 struct glthread_vao *vao = lookup_vao(ctx, ids[i]); local
154 struct glthread_vao *vao; local
254 struct glthread_vao *vao = get_vao(ctx, vaobj); local
321 struct glthread_vao *vao = get_vao(ctx, vaobj); local
387 struct glthread_vao *vao; local
428 struct glthread_vao *vao = lookup_vao(ctx, vaobj); local
468 struct glthread_vao *vao = lookup_vao(ctx, vaobj); local
482 struct glthread_vao *vao; local
524 struct glthread_vao *vao = lookup_vao(ctx, vaobj); local
555 struct glthread_vao *vao = lookup_vao(ctx, vaobj); local
567 struct glthread_vao *vao = lookup_vao(ctx, vaobj); local
620 struct glthread_vao *vao = NULL; local
    [all...]
arrayobj.h 69 struct gl_vertex_array_object *vao);
74 struct gl_vertex_array_object *vao)
76 if (*ptr != vao)
77 _mesa_reference_vao_(ctx, ptr, vao);
88 struct gl_vertex_array_object *vao);
92 * Mark the vao as shared and immutable, do remaining updates.
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,
186 const struct gl_vertex_array_object *const vao = ctx->Array._DrawVAO; local
200 const struct gl_vertex_array_object *const vao = ctx->Array._DrawVAO; local
214 const struct gl_vertex_array_object *const vao = ctx->Array._DrawVAO; local
    [all...]
arrayobj.c 67 * 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.
214 struct gl_vertex_array_object *vao; local
218 vao = ctx->Array.LastLookedUpVAO;
220 vao = (struct gl_vertex_array_object *)
223 _mesa_reference_vao(ctx, &ctx->Array.LastLookedUpVAO, vao);
226 return vao;
263 struct gl_vertex_array_object *vao; local
1229 struct gl_vertex_array_object *vao; local
1293 struct gl_vertex_array_object *vao; local
    [all...]
varray.c 137 struct gl_vertex_array_object *vao)
146 const GLbitfield enabled = vao->Enabled;
148 vao->_AttributeMapMode = ATTRIBUTE_MAP_MODE_GENERIC0;
150 vao->_AttributeMapMode = ATTRIBUTE_MAP_MODE_POSITION;
152 vao->_AttributeMapMode = ATTRIBUTE_MAP_MODE_IDENTITY;
162 struct gl_vertex_array_object *vao,
166 struct gl_array_attributes *array = &vao->VertexAttrib[attribIndex];
167 assert(!vao->SharedAndImmutable);
172 if (vao->BufferBinding[bindingIndex].BufferObj)
173 vao->VertexAttribBufferMask |= array_bit
1011 struct gl_vertex_array_object* vao; local
1083 struct gl_vertex_array_object* vao; local
1163 struct gl_vertex_array_object* vao; local
1225 struct gl_vertex_array_object* vao; local
1289 struct gl_vertex_array_object* vao; local
1364 struct gl_vertex_array_object* vao; local
1443 struct gl_vertex_array_object* vao; local
1481 struct gl_vertex_array_object* vao; local
1555 struct gl_vertex_array_object* vao; local
1676 struct gl_vertex_array_object* vao; local
1717 struct gl_vertex_array_object* vao; local
1817 struct gl_vertex_array_object* vao; local
1936 struct gl_vertex_array_object *vao; local
1956 struct gl_vertex_array_object* vao = _mesa_lookup_vao_err(ctx, vaobj, local
1970 struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj); local
2028 struct gl_vertex_array_object *vao; local
2054 struct gl_vertex_array_object* vao = _mesa_lookup_vao_err(ctx, vaobj, local
2074 struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj); local
2357 struct gl_vertex_array_object *vao; local
2422 struct gl_vertex_array_object *vao; local
2806 struct gl_vertex_array_object * const vao = ctx->Array.VAO; local
2837 struct gl_vertex_array_object * const vao = ctx->Array.VAO; local
2874 struct gl_vertex_array_object * vao; local
3059 struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj); local
3070 struct gl_vertex_array_object *vao; local
3092 struct gl_vertex_array_object *vao; local
3280 struct gl_vertex_array_object *vao = ctx->Array.VAO; local
3315 struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj); local
3328 struct gl_vertex_array_object *vao; local
3447 struct gl_vertex_array_object *vao; local
3639 struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj); local
3650 struct gl_vertex_array_object *vao; local
3671 struct gl_vertex_array_object *vao; local
3749 struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj); local
3758 struct gl_vertex_array_object *vao; local
3780 struct gl_vertex_array_object *vao; local
3803 const struct gl_vertex_array_object *vao = ctx->Array.VAO; local
3861 struct gl_vertex_array_object *vao = &ctx->Array.DefaultVAOState; local
3920 struct gl_vertex_array_object *vao = (struct gl_vertex_array_object *) data; local
3940 struct gl_vertex_array_object* vao; local
4099 struct gl_vertex_array_object* vao; local
4135 struct gl_vertex_array_object* vao; local
4180 struct gl_vertex_array_object* vao; local
    [all...]
getstring.c 238 _get_vao_pointerv(GLenum pname, struct gl_vertex_array_object* vao,
254 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_POS].Ptr;
259 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_NORMAL].Ptr;
264 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_COLOR0].Ptr;
269 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_COLOR1].Ptr;
274 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_FOG].Ptr;
279 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_COLOR_INDEX].Ptr;
284 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_TEX(clientUnit)].Ptr;
289 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_EDGEFLAG].Ptr;
304 *params = (GLvoid *) vao->VertexAttrib[VERT_ATTRIB_POINT_SIZE].Ptr
    [all...]
glthread_marshal.h 94 struct glthread_vao *vao = glthread->CurrentVAO; local
97 (vao->CurrentElementBufferName == 0 ||
98 (vao->UserPointerMask & vao->BufferEnabled));
105 const struct glthread_vao *vao = glthread->CurrentVAO; local
108 (vao->UserPointerMask & vao->BufferEnabled);
115 const struct glthread_vao *vao = glthread->CurrentVAO; local
119 (vao->UserPointerMask & vao->BufferEnabled))
126 struct glthread_vao *vao = glthread->CurrentVAO; local
    [all...]
glthread_draw.c 115 struct glthread_vao *vao = ctx->GLThread.CurrentVAO; local
116 unsigned attrib_mask_iter = vao->Enabled;
119 assert((num_vertices || !(user_buffer_mask & ~vao->NonZeroDivisorMask)) &&
120 (num_instances || !(user_buffer_mask & vao->NonZeroDivisorMask)));
122 if (unlikely(vao->BufferInterleaved & user_buffer_mask)) {
132 unsigned binding_index = vao->Attrib[i].BufferIndex;
137 unsigned stride = vao->Attrib[binding_index].Stride;
138 unsigned instance_div = vao->Attrib[binding_index].Divisor;
139 unsigned element_size = vao->Attrib[i].ElementSize;
140 unsigned offset = vao->Attrib[i].RelativeOffset
383 struct glthread_vao *vao = ctx->GLThread.CurrentVAO; local
498 struct glthread_vao *vao = ctx->GLThread.CurrentVAO; local
775 struct glthread_vao *vao = ctx->GLThread.CurrentVAO; local
990 struct glthread_vao *vao = ctx->GLThread.CurrentVAO; local
    [all...]
api_arrayelt.c 1415 * vertex array object vao.
1418 attrib_src(const struct gl_vertex_array_object *vao,
1422 &vao->BufferBinding[array->BufferBindingIndex];
1437 const struct gl_vertex_array_object *vao = ctx->Array.VAO; local
1441 mask = (VERT_BIT_FF_ALL & ~VERT_BIT_POS) & vao->Enabled;
1444 const struct gl_array_attributes *array = &vao->VertexAttrib[attrib];
1445 const void *src = attrib_src(vao, array, elt);
1450 mask = (VERT_BIT_GENERIC_ALL & ~VERT_BIT_GENERIC0) & vao->Enabled;
1453 const struct gl_array_attributes *array = &vao->VertexAttrib[attrib]
1483 struct gl_vertex_array_object *vao; local
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/main/
arrayobj.h 64 struct gl_vertex_array_object *vao);
69 struct gl_vertex_array_object *vao)
71 if (*ptr != vao)
72 _mesa_reference_vao_(ctx, ptr, vao);
83 struct gl_vertex_array_object *vao);
87 * Mark the vao as shared and immutable, do remaining updates.
91 struct gl_vertex_array_object *vao);
96 _mesa_all_varyings_in_vbos(const struct gl_vertex_array_object *vao);
100 _mesa_all_buffers_are_unmapped(const struct gl_vertex_array_object *vao);
104 _mesa_vao_map_arrays(struct gl_context *ctx, struct gl_vertex_array_object *vao,
193 const struct gl_vertex_array_object *const vao = ctx->Array._DrawVAO; local
207 const struct gl_vertex_array_object *const vao = ctx->Array._DrawVAO; local
326 const struct gl_vertex_array_object *vao = ctx->Array._DrawVAO; local
343 const struct gl_vertex_array_object *vao = ctx->Array._DrawVAO; local
    [all...]
arrayobj.c 65 * the VAO attribute VERT_ATTRIB_POS, and grab vertex processing
66 * attribute VERT_ATTRIB_GENERIC0 from the VAO attribute
108 * VAO attribute VERT_ATTRIB_POS.
149 * VAO attribute VERT_ATTRIB_GENERIC0.
212 struct gl_vertex_array_object *vao; local
216 vao = ctx->Array.LastLookedUpVAO;
218 vao = (struct gl_vertex_array_object *)
221 _mesa_reference_vao(ctx, &ctx->Array.LastLookedUpVAO, vao);
224 return vao;
255 struct gl_vertex_array_object *vao; local
1264 struct gl_vertex_array_object *vao; local
1326 struct gl_vertex_array_object *vao; local
    [all...]
varray.c 136 struct gl_vertex_array_object *vao)
145 const GLbitfield enabled = vao->Enabled;
147 vao->_AttributeMapMode = ATTRIBUTE_MAP_MODE_GENERIC0;
149 vao->_AttributeMapMode = ATTRIBUTE_MAP_MODE_POSITION;
151 vao->_AttributeMapMode = ATTRIBUTE_MAP_MODE_IDENTITY;
161 struct gl_vertex_array_object *vao,
165 struct gl_array_attributes *array = &vao->VertexAttrib[attribIndex];
166 assert(!vao->SharedAndImmutable);
171 if (_mesa_is_bufferobj(vao->BufferBinding[bindingIndex].BufferObj))
172 vao->VertexAttribBufferMask |= array_bit
507 struct gl_vertex_array_object *vao = ctx->Array.VAO; local
597 struct gl_vertex_array_object *vao = ctx->Array.VAO; local
1136 struct gl_vertex_array_object *vao; local
1157 struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj); local
1212 struct gl_vertex_array_object *vao; local
1239 struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj); local
1520 struct gl_vertex_array_object *vao; local
1583 struct gl_vertex_array_object *vao; local
1942 struct gl_vertex_array_object * const vao = ctx->Array.VAO; local
1973 struct gl_vertex_array_object * const vao = ctx->Array.VAO; local
2144 struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj); local
2155 struct gl_vertex_array_object *vao; local
2348 struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj); local
2361 struct gl_vertex_array_object *vao; local
2480 struct gl_vertex_array_object *vao; local
2642 struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj); local
2653 struct gl_vertex_array_object *vao; local
2738 struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj); local
2747 struct gl_vertex_array_object *vao; local
2800 const struct gl_vertex_array_object *vao = ctx->Array.VAO; local
2846 struct gl_vertex_array_object *vao = (struct gl_vertex_array_object *) data; local
    [all...]
state.c 504 * The vao->_Enabled bitmask is transformed due to position/generic0
505 * as stored in vao->_AttributeMapMode. Then the filter bitmask is applied
511 _mesa_set_draw_vao(struct gl_context *ctx, struct gl_vertex_array_object *vao,
516 if (*ptr != vao) {
517 _mesa_reference_vao_(ctx, ptr, vao);
522 if (vao->NewArrays) {
523 _mesa_update_vao_derived_arrays(ctx, vao);
524 vao->NewArrays = 0;
530 const GLbitfield enabled = filter & _mesa_get_vao_vp_inputs(vao);
varray.h 64 struct gl_vertex_array_object *vao,
72 struct gl_vertex_array_object *vao,
77 struct gl_vertex_array_object *vao,
81 _mesa_enable_vertex_array_attribs(ctx, vao, VERT_BIT(attrib));
87 struct gl_vertex_array_object *vao,
92 struct gl_vertex_array_object *vao,
96 _mesa_disable_vertex_array_attribs(ctx, vao, VERT_BIT(attrib));
102 struct gl_vertex_array_object *vao,
109 struct gl_vertex_array_object *vao,
api_arrayelt.c 1408 * vertex array object vao.
1411 attrib_src(const struct gl_vertex_array_object *vao,
1415 &vao->BufferBinding[array->BufferBindingIndex];
1427 const struct gl_vertex_array_object *vao = ctx->Array.VAO; local
1431 mask = (VERT_BIT_FF_ALL & ~VERT_BIT_POS) & vao->Enabled;
1434 const struct gl_array_attributes *array = &vao->VertexAttrib[attrib];
1435 const void *src = attrib_src(vao, array, elt);
1440 mask = (VERT_BIT_GENERIC_ALL & ~VERT_BIT_GENERIC0) & vao->Enabled;
1443 const struct gl_array_attributes *array = &vao->VertexAttrib[attrib]
1473 struct gl_vertex_array_object *vao; local
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/mesa/vbo/
vbo_save_loopback.c 138 const struct gl_vertex_array_object *vao)
141 la[*nr].offset = vao->VertexAttrib[i].RelativeOffset;
142 la[*nr].func = vert_attrfunc[vao->VertexAttrib[i].Format.Size - 1];
158 const struct gl_vertex_array_object *vao = node->VAO[VP_MODE_FF]; local
159 GLbitfield mask = vao->Enabled & VERT_BIT_MAT_ALL;
162 append_attr(&nr, la, i, VBO_MATERIAL_SHIFT, vao);
165 vao = node->VAO[VP_MODE_SHADER];
166 mask = vao->Enabled & ~(VERT_BIT_POS | VERT_BIT_GENERIC0)
    [all...]
vbo_private.h 82 * as they appear in the vao.
226 * generically in the VAO.
247 struct gl_vertex_array_object *vao,
256 _mesa_update_array_format(ctx, vao, attr, size, type, GL_RGBA,
258 vao->NewArrays |= vao->Enabled & VERT_BIT(attr);
259 vao->VertexAttrib[attr].Ptr = ADD_POINTERS(buffer_offset, offset);
vbo_exec_draw.c 92 struct gl_vertex_array_object *vao = vbo->VAO; local
111 _mesa_disable_vertex_array_attribs(ctx, vao, VERT_BIT_ALL & ~vao_enabled);
112 assert((~vao_enabled & vao->Enabled) == 0);
116 _mesa_bind_vertex_buffer(ctx, vao, 0, exec->vtx.bufferobj, buffer_offset,
120 * Note that the position/generic0 aliasing is done in the VAO.
136 _vbo_set_attrib_format(ctx, vao, vao_attr, buffer_offset,
139 /* The vao is initially created with all bindings set to 0. */
140 assert(vao->VertexAttrib[vao_attr].BufferBindingIndex == 0);
142 _mesa_enable_vertex_array_attribs(ctx, vao, vao_enabled)
    [all...]
vbo_save_api.c 92 * To allow draw call merging, display list must use the same VAO, including
291 /* Compare the present vao if it has the same setup. */
294 const struct gl_vertex_array_object *vao,
301 if (!vao)
305 if (vao_enabled != vao->Enabled)
309 if (vao->BufferBinding[0].BufferObj != bo)
312 if (vao->BufferBinding[0].Stride != stride)
314 assert(vao->BufferBinding[0].InstanceDivisor == 0);
326 const struct gl_array_attributes *attrib = &vao->VertexAttrib[attr];
327 if (attrib->RelativeOffset + vao->BufferBinding[0].Offset != off
957 struct gl_vertex_array_object *vao = node->VAO[VP_MODE_SHADER]; local
1647 struct gl_vertex_array_object *vao = ctx->Array.VAO; local
1750 struct gl_vertex_array_object *vao = ctx->Array.VAO; local
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/vbo/
vbo_save_loopback.c 138 const struct gl_vertex_array_object *vao)
141 la[*nr].offset = vao->VertexAttrib[i].RelativeOffset;
142 la[*nr].func = vert_attrfunc[vao->VertexAttrib[i].Format.Size - 1];
157 const struct gl_vertex_array_object *vao = node->VAO[VP_MODE_FF]; local
158 GLbitfield mask = vao->Enabled & VERT_BIT_MAT_ALL;
161 append_attr(&nr, la, i, VBO_MATERIAL_SHIFT, vao);
164 vao = node->VAO[VP_MODE_SHADER];
165 mask = vao->Enabled & ~(VERT_BIT_POS | VERT_BIT_GENERIC0)
    [all...]
vbo_private.h 49 struct gl_vertex_array_object *VAO;
73 * as they appear in the vao.
200 * generically in the VAO.
221 struct gl_vertex_array_object *vao,
230 _mesa_update_array_format(ctx, vao, attr, size, type, GL_RGBA,
233 * For updating the pointer we would need to add the vao->NewArrays flag
234 * to the VAO. But but that is done already unconditionally in
237 assert((vao->NewArrays | ~vao->Enabled) & VERT_BIT(attr));
238 vao->VertexAttrib[attr].Ptr = ADD_POINTERS(buffer_offset, offset)
    [all...]
vbo_exec_draw.c 176 struct gl_vertex_array_object *vao = vbo->VAO; local
194 _mesa_disable_vertex_array_attribs(ctx, vao, VERT_BIT_ALL & ~vao_enabled);
195 assert((~vao_enabled & vao->Enabled) == 0);
199 _mesa_bind_vertex_buffer(ctx, vao, 0, exec->vtx.bufferobj, buffer_offset,
203 * Note that the position/generic0 aliasing is done in the VAO.
219 _vbo_set_attrib_format(ctx, vao, vao_attr, buffer_offset,
222 /* The vao is initially created with all bindings set to 0. */
223 assert(vao->VertexAttrib[vao_attr].BufferBindingIndex == 0);
225 _mesa_enable_vertex_array_attribs(ctx, vao, vao_enabled)
    [all...]
vbo_save_draw.c 45 copy_vao(struct gl_context *ctx, const struct gl_vertex_array_object *vao,
50 mask &= vao->Enabled;
53 const struct gl_array_attributes *attrib = &vao->VertexAttrib[i];
95 copy_vao(ctx, node->VAO[VP_MODE_SHADER], ~VERT_BIT_POS & VERT_BIT_ALL,
98 copy_vao(ctx, node->VAO[VP_MODE_FF], VERT_BIT_MAT_ALL,
121 * Set the appropriate VAO to draw.
128 _mesa_set_draw_vao(ctx, node->VAO[mode], _vbo_get_vao_filter(mode));
136 struct gl_buffer_object *bo = list->VAO[0]->BufferBinding[0].BufferObj;
vbo_save_api.c 415 /* Compare the present vao if it has the same setup. */
418 const struct gl_vertex_array_object *vao,
425 if (!vao)
429 if (vao_enabled != vao->Enabled)
433 if (vao->BufferBinding[0].BufferObj != bo)
436 if (vao->BufferBinding[0].Stride != stride)
438 assert(vao->BufferBinding[0].InstanceDivisor == 0);
450 const struct gl_array_attributes *attrib = &vao->VertexAttrib[attr];
451 if (attrib->RelativeOffset + vao->BufferBinding[0].Offset != off)
468 /* Create or reuse the vao for the vertex processing mode. *
1326 struct gl_vertex_array_object *vao = ctx->Array.VAO; local
1423 struct gl_vertex_array_object *vao = ctx->Array.VAO; local
    [all...]
  /xsrc/external/mit/xorg-server/dist/glamor/
glamor_vbo.c 177 glGenVertexArrays(1, &glamor_priv->vao);
178 glBindVertexArray(glamor_priv->vao);
188 glDeleteVertexArrays(1, &glamor_priv->vao);
189 glamor_priv->vao = 0;
  /xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/
st_atom_array.c 75 const struct gl_vertex_array_object *vao,
95 if (vao->IsDynamic) {
99 _mesa_draw_array_attrib(vao, attr);
101 &vao->BufferBinding[attrib->BufferBindingIndex];
131 = _mesa_draw_buffer_binding(vao, i);
159 = _mesa_draw_array_attrib(vao, attr);
328 const struct gl_vertex_array_object *vao,
340 setup_arrays(st, vao, dual_slot_inputs, inputs_read, 0, inputs_read, 0,

Completed in 38 milliseconds

1 2