Home
last modified time | relevance | path

Searched refs:vertex_size (Results 1 – 25 of 40) sorted by relevance

12

/third_party/mesa3d/src/mesa/vbo/
Dvbo_exec.c264 unsigned vertex_size, in vbo_copy_vertices() argument
322 src -= vertex_size; in vbo_copy_vertices()
330 memcpy(dst, src + 0, vertex_size * sizeof(GLfloat)); in vbo_copy_vertices()
333 memcpy(dst, src + 0, vertex_size * sizeof(GLfloat)); in vbo_copy_vertices()
334 memcpy(dst + vertex_size, src + (count - 1) * vertex_size, in vbo_copy_vertices()
335 vertex_size * sizeof(GLfloat)); in vbo_copy_vertices()
357 memcpy(dst, src + (count - copy) * vertex_size, in vbo_copy_vertices()
358 copy * vertex_size * sizeof(GLfloat)); in vbo_copy_vertices()
Dvbo_save_api.c155 GLuint sz = save->vertex_size; in copy_vertices()
258 const GLuint sz = save->vertex_size; in convert_line_loop_to_strip()
405 vertex_count * save->vertex_size) * sizeof(GLfloat); in grow_vertex_storage()
425 unsigned vertex_size; member
432 unsigned sz = k->vertex_size; in _hash_vertex_key()
443 assert (k1->vertex_size == k2->vertex_size); in _compare_vertex_key()
446 k1->vertex_size * sizeof(float)) == 0; in _compare_vertex_key()
465 fi_type *vert = save->vertex_store->buffer_in_ram + save->vertex_size * index; in add_vertex()
468 key->vertex_size = save->vertex_size; in add_vertex()
484 memcpy(&new_buffer[save->vertex_size * n], in add_vertex()
[all …]
Dvbo_exec_api.c149 numComponents = exec->vtx.copied.nr * exec->vtx.vertex_size; in vbo_exec_vtx_wrap()
257 const GLuint old_vtx_size = exec->vtx.vertex_size; /* floats per vertex */ in vbo_exec_wrap_upgrade_vertex()
287 !oldSize && lastcount > 8 && exec->vtx.vertex_size) { in vbo_exec_wrap_upgrade_vertex()
297 exec->vtx.vertex_size += newSize - oldSize; in vbo_exec_wrap_upgrade_vertex()
298 exec->vtx.vertex_size_no_pos = exec->vtx.vertex_size - exec->vtx.attr[0].size; in vbo_exec_wrap_upgrade_vertex()
400 dest += exec->vtx.vertex_size; in vbo_exec_wrap_upgrade_vertex()
688 if (exec->vtx.vertex_size) { in vbo_exec_FlushVertices_internal()
728 exec->vtx.vertex_size * sizeof(GLfloat)); in _mesa_EvalCoord1f()
733 exec->vtx.vertex_size * sizeof(GLfloat)); in _mesa_EvalCoord1f()
760 exec->vtx.vertex_size * sizeof(GLfloat)); in _mesa_EvalCoord2f()
[all …]
Dvbo_exec_draw.c50 exec->vtx.vertex_size); in vbo_exec_debug_verts()
68 const GLuint sz = exec->vtx.vertex_size; in vbo_exec_copy_vertices()
118 const GLuint stride = exec->vtx.vertex_size*sizeof(GLfloat); in vbo_exec_bind_arrays()
361 if (exec->vtx.vertex_size == 0) in vbo_exec_vtx_flush()
Dvbo_private.h177 (exec->vtx.vertex_size * sizeof(GLfloat)); in vbo_compute_max_verts()
203 unsigned vertex_size,
Dvbo.h114 GLuint vertex_size; /* in dwords */ member
157 GLuint vertex_size; /**< size in GLfloats */ member
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_swtnl_backend.c61 ushort vertex_size, in svga_vbuf_render_allocate_vertices() argument
67 size_t size = (size_t)nr_vertices * (size_t)vertex_size; in svga_vbuf_render_allocate_vertices()
74 if (svga_render->vertex_size != vertex_size) in svga_vbuf_render_allocate_vertices()
76 svga_render->vertex_size = (size_t)vertex_size; in svga_vbuf_render_allocate_vertices()
174 size_t used = svga_render->vertex_size * ((size_t)max_index + 1); in svga_vbuf_render_unmap_vertices()
179 offset = svga_render->vbuf_offset + svga_render->vertex_size * min_index; in svga_vbuf_render_unmap_vertices()
180 length = svga_render->vertex_size * (max_index + 1 - min_index); in svga_vbuf_render_unmap_vertices()
287 / svga_render->vertex_size; in svga_vbuf_render_draw_arrays()
322 / svga_render->vertex_size; in svga_vbuf_render_draw_elements()
343 % svga_render->vertex_size == 0); in svga_vbuf_render_draw_elements()
Dsvga_swtnl_private.h44 unsigned vertex_size; member
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pt_fetch_shade_pipeline.c50 unsigned vertex_size; member
107 fpme->vertex_size = sizeof(struct vertex_header) + nr * 4 * sizeof(float); in fetch_pipeline_prepare()
111 fpme->vertex_size, in fetch_pipeline_prepare()
202 output_verts->vertex_size = input_verts->vertex_size; in draw_vertex_shader_run()
203 output_verts->stride = input_verts->vertex_size; in draw_vertex_shader_run()
206 (struct vertex_header *)MALLOC(output_verts->vertex_size * in draw_vertex_shader_run()
216 input_verts->vertex_size, in draw_vertex_shader_run()
217 input_verts->vertex_size, in draw_vertex_shader_run()
244 fetched_vert_info.vertex_size = fpme->vertex_size; in fetch_pipeline_generic()
245 fetched_vert_info.stride = fpme->vertex_size; in fetch_pipeline_generic()
[all …]
Ddraw_tess.c167 unsigned input_stride = input_verts->vertex_size; in draw_tess_ctrl_shader_run()
168 unsigned vertex_size = sizeof(struct vertex_header) + num_outputs * 4 * sizeof(float); in draw_tess_ctrl_shader_run() local
171 output_verts->vertex_size = vertex_size; in draw_tess_ctrl_shader_run()
172 output_verts->stride = output_verts->vertex_size; in draw_tess_ctrl_shader_run()
203 uint32_t old_size = output_verts->vertex_size * old_verts; in draw_tess_ctrl_shader_run()
204 uint32_t new_size = output_verts->vertex_size * new_verts; in draw_tess_ctrl_shader_run()
333 unsigned input_stride = input_verts->vertex_size; in draw_tess_eval_shader_run()
334 unsigned vertex_size = sizeof(struct vertex_header) + num_outputs * 4 * sizeof(float); in draw_tess_eval_shader_run() local
336 output_verts->vertex_size = vertex_size; in draw_tess_eval_shader_run()
337 output_verts->stride = output_verts->vertex_size; in draw_tess_eval_shader_run()
[all …]
Ddraw_pt_fetch.c43 unsigned vertex_size; member
57 unsigned vertex_size, in draw_pt_fetch_prepare() argument
67 fetch->vertex_size = vertex_size; in draw_pt_fetch_prepare()
128 assert(dst_offset <= vertex_size); in draw_pt_fetch_prepare()
131 key.output_stride = vertex_size; in draw_pt_fetch_prepare()
Ddraw_gs.c117 output = (float (*)[4])((char *)output + shader->vertex_size); in tgsi_fetch_gs_outputs()
321 output_ptr += shader->stream[stream].emitted_vertices * shader->vertex_size; in llvm_fetch_gs_outputs()
329 (output_ptr + shader->vertex_size * (i * next_prim_boundary + j)); in llvm_fetch_gs_outputs()
338 memmove(output_ptr + (vertex_count + current_verts) * shader->vertex_size, in llvm_fetch_gs_outputs()
339 output_ptr + ((i + 1) * next_prim_boundary) * shader->vertex_size, in llvm_fetch_gs_outputs()
340 shader->vertex_size * next_verts); in llvm_fetch_gs_outputs()
349 struct vertex_header *vh = (struct vertex_header *)(output_ptr + shader->vertex_size * i); in llvm_fetch_gs_outputs()
392 tmp += shader->stream[i].emitted_vertices * shader->vertex_size; in llvm_gs_run()
562 unsigned input_stride = input_verts->vertex_size; in draw_geometry_shader_run()
564 unsigned vertex_size = sizeof(struct vertex_header) + num_outputs * 4 * sizeof(float); in draw_geometry_shader_run() local
[all …]
Ddraw_pipe_vbuf.c59 unsigned vertex_size; member
133 vbuf->vertex_ptr += vbuf->vertex_size/4; in emit_vertex()
205 vbuf->vertex_size = vinfo->size * sizeof(float); in vbuf_start_prim()
245 hw_key.output_stride = vbuf->vertex_size; in vbuf_start_prim()
354 vbuf->render->max_vertex_buffer_bytes / vbuf->vertex_size; in vbuf_alloc_vertices()
365 (ushort) vbuf->vertex_size, in vbuf_alloc_vertices()
Ddraw_prim_assembler.c124 asmblr->input_verts->vertex_size); in copy_verts()
292 output_verts->vertex_size = input_verts->vertex_size; in draw_prim_assembler_run()
295 input_verts->vertex_size * max_verts + DRAW_EXTRA_VERTICES_PADDING); in draw_prim_assembler_run()
Ddraw_pt_fetch_shade_pipeline_llvm.c55 unsigned vertex_size; member
336 fpme->vertex_size = sizeof(struct vertex_header) + nr * 4 * sizeof(float); in llvm_middle_end_prepare()
591 llvm_vert_info.vertex_size = fpme->vertex_size; in llvm_pipeline_generic()
592 llvm_vert_info.stride = fpme->vertex_size; in llvm_pipeline_generic()
594 MALLOC(fpme->vertex_size * in llvm_pipeline_generic()
627 fpme->vertex_size, in llvm_pipeline_generic()
Ddraw_vbuf.h86 ushort vertex_size,
/third_party/mesa3d/src/gallium/drivers/i915/
Di915_prim_emit.c122 unsigned vertex_size; in emit_prim() local
132 vertex_size = i915->current.vertex_info.size * 4; /* in bytes */ in emit_prim()
133 assert(vertex_size >= 12); /* never smaller than 12 bytes */ in emit_prim()
135 if (!BEGIN_BATCH(1 + nr * vertex_size / 4)) { in emit_prim()
142 if (!BEGIN_BATCH(1 + nr * vertex_size / 4)) { in emit_prim()
151 OUT_BATCH(_3DPRIMITIVE | hwprim | ((4 + vertex_size * nr) / 4 - 2)); in emit_prim()
Di915_prim_vbuf.c62 size_t vertex_size; member
206 ushort vertex_size, ushort nr_vertices) in i915_vbuf_render_allocate_vertices() argument
209 size_t size = (size_t)vertex_size * (size_t)nr_vertices; in i915_vbuf_render_allocate_vertices()
220 offset = util_align_npot(offset, vertex_size); in i915_vbuf_render_allocate_vertices()
222 i915_render->vbo_index = offset / vertex_size; in i915_vbuf_render_allocate_vertices()
233 i915_render->vertex_size = vertex_size; in i915_vbuf_render_allocate_vertices()
262 i915_render->vertex_size * (max_index + 1)); in i915_vbuf_render_unmap_vertices()
Di915_state_immediate.c73 unsigned vertex_size = i915->current.vertex_info.size; in upload_S0S1() local
75 LIS1 = ((vertex_size << 24) | (vertex_size << 16)); in upload_S0S1()
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_render.c347 unsigned vertex_size = r300->velems->vertex_size_dwords; in r300_draw_arrays_immediate() local
350 unsigned dwords = 4 + draw->count * vertex_size; in r300_draw_arrays_immediate()
389 OUT_CS_REG(R300_VAP_VTX_SIZE, vertex_size); in r300_draw_arrays_immediate()
390 OUT_CS_PKT3(R300_PACKET3_3D_DRAW_IMMD_2, draw->count * vertex_size); in r300_draw_arrays_immediate()
919 size_t vertex_size; member
944 ushort vertex_size, in r300_render_allocate_vertices() argument
950 size_t size = (size_t)vertex_size * (size_t)count; in r300_render_allocate_vertices()
972 r300render->vertex_size = vertex_size; in r300_render_allocate_vertices()
997 r300render->vertex_size * (max + 1)); in r300_render_unmap_vertices()
1173 unsigned vertex_size = in r300_blitter_draw_rectangle() local
[all …]
/third_party/mesa3d/src/gallium/drivers/softpipe/
Dsp_prim_vbuf.c64 uint vertex_size; member
90 ushort vertex_size, ushort nr_vertices) in sp_vbuf_allocate_vertices() argument
93 unsigned size = vertex_size * nr_vertices; in sp_vbuf_allocate_vertices()
101 cvbr->vertex_size = vertex_size; in sp_vbuf_allocate_vertices()
129 assert( cvbr->vertex_buffer_size >= (max_index+1) * cvbr->vertex_size ); in sp_vbuf_unmap_vertices()
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_vbo_translate.c20 uint32_t vertex_size; member
48 ctx->vertex_size = nvc0->vertex->size; in nvc0_push_context_init()
264 ctx->dest += nR * ctx->vertex_size; in disp_vertices_i08()
297 ctx->dest += ctx->vertex_size; in disp_vertices_i08()
321 ctx->dest += nR * ctx->vertex_size; in disp_vertices_i16()
354 ctx->dest += ctx->vertex_size; in disp_vertices_i16()
378 ctx->dest += nR * ctx->vertex_size; in disp_vertices_i32()
411 ctx->dest += ctx->vertex_size; in disp_vertices_i32()
/third_party/skia/third_party/externals/opengl-registry/extensions/INTEL/
DINTEL_parallel_arrays.txt243 switch (<vertex_size>){
245 Vertex<vertex_size><vertex_type> (*(vertex_type*)px,
250 Vertex<vertex_size><vertex_type> (*(vertex_type*)px,
255 Vertex<vertex_size><vertex_type> (*(vertex_type*)px,
262 i * vertex_size * sizeof(vertex_type);
265 Vertex<vertex_size><vertex_type>v ((vertex_type*)p);
/third_party/openGLES/extensions/INTEL/
DINTEL_parallel_arrays.txt243 switch (<vertex_size>){
245 Vertex<vertex_size><vertex_type> (*(vertex_type*)px,
250 Vertex<vertex_size><vertex_type> (*(vertex_type*)px,
255 Vertex<vertex_size><vertex_type> (*(vertex_type*)px,
262 i * vertex_size * sizeof(vertex_type);
265 Vertex<vertex_size><vertex_type>v ((vertex_type*)p);
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_vbuf.c83 ushort vertex_size, ushort nr_vertices) in lp_setup_allocate_vertices() argument
86 unsigned size = vertex_size * nr_vertices; in lp_setup_allocate_vertices()
94 setup->vertex_size = vertex_size; in lp_setup_allocate_vertices()
119 assert( setup->vertex_buffer_size >= (max_index+1) * setup->vertex_size ); in lp_setup_unmap_vertices()

12