• Home
  • Raw
  • Download

Lines Matching refs:vtx

43    GLuint count = exec->vtx.vert_count;  in vbo_exec_debug_verts()
49 exec->vtx.prim_count, in vbo_exec_debug_verts()
50 exec->vtx.vertex_size); in vbo_exec_debug_verts()
52 for (i = 0 ; i < exec->vtx.prim_count ; i++) { in vbo_exec_debug_verts()
55 _mesa_lookup_prim_by_nr(exec->vtx.mode[i]), in vbo_exec_debug_verts()
56 exec->vtx.draw[i].start, in vbo_exec_debug_verts()
57 exec->vtx.draw[i].start + exec->vtx.draw[i].count, in vbo_exec_debug_verts()
58 exec->vtx.markers[i].begin ? "BEGIN" : "(wrap)", in vbo_exec_debug_verts()
59 exec->vtx.markers[i].end ? "END" : "(wrap)"); in vbo_exec_debug_verts()
68 const GLuint sz = exec->vtx.vertex_size; in vbo_exec_copy_vertices()
69 fi_type *dst = exec->vtx.copied.buffer; in vbo_exec_copy_vertices()
70 unsigned last = exec->vtx.prim_count - 1; in vbo_exec_copy_vertices()
71 unsigned start = exec->vtx.draw[last].start; in vbo_exec_copy_vertices()
72 const fi_type *src = exec->vtx.buffer_map + start * sz; in vbo_exec_copy_vertices()
76 &exec->vtx.draw[last].count, in vbo_exec_copy_vertices()
77 exec->vtx.markers[last].begin, in vbo_exec_copy_vertices()
93 if (exec->vtx.bufferobj) { in vbo_exec_bind_arrays()
94 assert(exec->vtx.bufferobj->Mappings[MAP_INTERNAL].Pointer); in vbo_exec_bind_arrays()
95 buffer_offset = exec->vtx.bufferobj->Mappings[MAP_INTERNAL].Offset + in vbo_exec_bind_arrays()
96 exec->vtx.buffer_offset; in vbo_exec_bind_arrays()
99 buffer_offset = (GLbyte *)exec->vtx.buffer_map - (GLbyte *)NULL; in vbo_exec_bind_arrays()
109 vao_enabled = _vbo_get_vao_enabled_from_vbo(mode, exec->vtx.enabled); in vbo_exec_bind_arrays()
118 const GLuint stride = exec->vtx.vertex_size*sizeof(GLfloat); in vbo_exec_bind_arrays()
119 _mesa_bind_vertex_buffer(ctx, vao, 0, exec->vtx.bufferobj, buffer_offset, in vbo_exec_bind_arrays()
132 const GLubyte size = exec->vtx.attr[vbo_attr].size; in vbo_exec_bind_arrays()
133 const GLenum16 type = exec->vtx.attr[vbo_attr].type; in vbo_exec_bind_arrays()
134 const GLuint offset = (GLuint)((GLbyte *)exec->vtx.attrptr[vbo_attr] - in vbo_exec_bind_arrays()
135 (GLbyte *)exec->vtx.vertex); in vbo_exec_bind_arrays()
147 assert(!exec->vtx.bufferobj || in vbo_exec_bind_arrays()
160 if (exec->vtx.bufferobj) { in vbo_exec_vtx_unmap()
164 GLintptr offset = exec->vtx.buffer_used - in vbo_exec_vtx_unmap()
165 exec->vtx.bufferobj->Mappings[MAP_INTERNAL].Offset; in vbo_exec_vtx_unmap()
166 GLsizeiptr length = (exec->vtx.buffer_ptr - exec->vtx.buffer_map) * in vbo_exec_vtx_unmap()
171 exec->vtx.bufferobj, in vbo_exec_vtx_unmap()
175 exec->vtx.buffer_used += (exec->vtx.buffer_ptr - in vbo_exec_vtx_unmap()
176 exec->vtx.buffer_map) * sizeof(float); in vbo_exec_vtx_unmap()
178 assert(exec->vtx.buffer_used <= ctx->Const.glBeginEndBufferSize); in vbo_exec_vtx_unmap()
179 assert(exec->vtx.buffer_ptr != NULL); in vbo_exec_vtx_unmap()
181 _mesa_bufferobj_unmap(ctx, exec->vtx.bufferobj, MAP_INTERNAL); in vbo_exec_vtx_unmap()
182 exec->vtx.buffer_map = NULL; in vbo_exec_vtx_unmap()
183 exec->vtx.buffer_ptr = NULL; in vbo_exec_vtx_unmap()
184 exec->vtx.max_vert = 0; in vbo_exec_vtx_unmap()
193 return ctx->Const.glBeginEndBufferSize > exec->vtx.buffer_used + 1024; in vbo_exec_buffer_has_space()
222 if (!exec->vtx.bufferobj) in vbo_exec_vtx_map()
225 assert(!exec->vtx.buffer_map); in vbo_exec_vtx_map()
226 assert(!exec->vtx.buffer_ptr); in vbo_exec_vtx_map()
230 if (exec->vtx.bufferobj->Size > 0) { in vbo_exec_vtx_map()
231 exec->vtx.buffer_map = (fi_type *) in vbo_exec_vtx_map()
233 exec->vtx.buffer_used, in vbo_exec_vtx_map()
235 - exec->vtx.buffer_used, in vbo_exec_vtx_map()
237 exec->vtx.bufferobj, in vbo_exec_vtx_map()
239 exec->vtx.buffer_ptr = exec->vtx.buffer_map; in vbo_exec_vtx_map()
242 exec->vtx.buffer_ptr = exec->vtx.buffer_map = NULL; in vbo_exec_vtx_map()
246 if (!exec->vtx.buffer_map) { in vbo_exec_vtx_map()
248 exec->vtx.buffer_used = 0; in vbo_exec_vtx_map()
260 exec->vtx.bufferobj)) { in vbo_exec_vtx_map()
262 exec->vtx.buffer_map = in vbo_exec_vtx_map()
266 exec->vtx.bufferobj, in vbo_exec_vtx_map()
271 exec->vtx.buffer_map = NULL; in vbo_exec_vtx_map()
275 exec->vtx.buffer_ptr = exec->vtx.buffer_map; in vbo_exec_vtx_map()
276 exec->vtx.buffer_offset = 0; in vbo_exec_vtx_map()
278 if (!exec->vtx.buffer_map) { in vbo_exec_vtx_map()
293 printf("map %d..\n", exec->vtx.buffer_used); in vbo_exec_vtx_map()
308 exec->vtx.bufferobj && in vbo_exec_vtx_flush()
309 exec->vtx.buffer_map; in vbo_exec_vtx_flush()
314 if (exec->vtx.prim_count && in vbo_exec_vtx_flush()
315 exec->vtx.vert_count) { in vbo_exec_vtx_flush()
317 exec->vtx.copied.nr = vbo_exec_copy_vertices(exec); in vbo_exec_vtx_flush()
319 if (exec->vtx.copied.nr != exec->vtx.vert_count) { in vbo_exec_vtx_flush()
332 printf("%s %d %d\n", __func__, exec->vtx.prim_count, in vbo_exec_vtx_flush()
333 exec->vtx.vert_count); in vbo_exec_vtx_flush()
335 ctx->Driver.DrawGalliumMultiMode(ctx, &exec->vtx.info, in vbo_exec_vtx_flush()
336 exec->vtx.draw, in vbo_exec_vtx_flush()
337 exec->vtx.mode, in vbo_exec_vtx_flush()
338 exec->vtx.prim_count); in vbo_exec_vtx_flush()
347 exec->vtx.buffer_used += (exec->vtx.buffer_ptr - exec->vtx.buffer_map) * in vbo_exec_vtx_flush()
349 exec->vtx.buffer_map = exec->vtx.buffer_ptr; in vbo_exec_vtx_flush()
352 exec->vtx.buffer_offset = exec->vtx.buffer_used; in vbo_exec_vtx_flush()
361 if (exec->vtx.vertex_size == 0) in vbo_exec_vtx_flush()
362 exec->vtx.max_vert = 0; in vbo_exec_vtx_flush()
364 exec->vtx.max_vert = vbo_compute_max_verts(exec); in vbo_exec_vtx_flush()
366 exec->vtx.buffer_ptr = exec->vtx.buffer_map; in vbo_exec_vtx_flush()
367 exec->vtx.prim_count = 0; in vbo_exec_vtx_flush()
368 exec->vtx.vert_count = 0; in vbo_exec_vtx_flush()