Home
last modified time | relevance | path

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

123

/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv04_render.c142 swtnl_restart(struct gl_context *ctx, int multi, unsigned vertex_size) in swtnl_restart() argument
153 if (nouveau_pushbuf_space(push, 32 + (4 * vertex_size), 4, 0) || in swtnl_restart()
171 unsigned vertex_size; in swtnl_start() local
178 vertex_size = TNL_CONTEXT(ctx)->clipspace.vertex_size / 4; in swtnl_start()
180 swtnl_restart(ctx, 1, vertex_size); in swtnl_start()
182 swtnl_restart(ctx, 0, vertex_size); in swtnl_start()
208 int vertex_size = TNL_CONTEXT(ctx)->clipspace.vertex_size / 4; \
211 if (PUSH_AVAIL(push) < 32 + (n * vertex_size)) { \
212 if (!swtnl_restart(ctx, multi, vertex_size)) \
216 BEGIN_NV04(push, NV04_TTRI(TLVERTEX_SX(0)), n * vertex_size);
[all …]
/external/mesa3d/src/mesa/vbo/
Dvbo_save.h67 GLuint vertex_size; /**< size in GLfloats */ member
99 unsigned vertex_size = node->vertex_size * sizeof(GLfloat); /* in bytes */ in aligned_vertex_buffer_offset() local
100 return vertex_size != 0 && node->buffer_offset % vertex_size == 0; in aligned_vertex_buffer_offset()
149 GLuint vertex_size; /**< size in GLfloats */ member
190 GLuint vertex_size);
Dvbo_save_loopback.c100 GLuint vertex_size, in loopback_prim() argument
115 vertex_size); in loopback_prim()
124 data = buffer + start * vertex_size; in loopback_prim()
177 GLuint vertex_size) in vbo_loopback_vertex_list() argument
199 loopback_prim(ctx, buffer, &prim[i], wrap_count, vertex_size, la, nr); in vbo_loopback_vertex_list()
Dvbo_exec_api.c150 numComponents = exec->vtx.copied.nr * exec->vtx.vertex_size; in vbo_exec_vtx_wrap()
283 const GLuint old_vtx_size = exec->vtx.vertex_size; /* floats per vertex */ in vbo_exec_wrap_upgrade_vertex()
314 !oldSize && lastcount > 8 && exec->vtx.vertex_size) { in vbo_exec_wrap_upgrade_vertex()
322 exec->vtx.vertex_size += newSize - oldSize; in vbo_exec_wrap_upgrade_vertex()
350 exec->vtx.vertex_size - newSize; in vbo_exec_wrap_upgrade_vertex()
392 dest += exec->vtx.vertex_size; in vbo_exec_wrap_upgrade_vertex()
511 for (i = 0; i < exec->vtx.vertex_size; i++) \
514 exec->vtx.buffer_ptr += exec->vtx.vertex_size; \
646 if (exec->vtx.vertex_size) { in vbo_exec_FlushVertices_internal()
672 exec->vtx.vertex_size * sizeof(GLfloat)); in vbo_exec_EvalCoord1f()
[all …]
Dvbo_split_copy.c87 GLuint vertex_size; member
285 copy->dstptr += copy->vertex_size; in elt()
289 copy->dstbuf_nr * copy->vertex_size)); in elt()
429 copy->vertex_size = 0; in replay_init()
442 copy->vertex_size += attr_size(copy->array[i]); in replay_init()
495 if (copy->vertex_size * copy->limits->max_verts <= copy->limits->max_vb_size) { in replay_init()
499 copy->dstbuf_size = copy->limits->max_vb_size / copy->vertex_size; in replay_init()
506 copy->dstbuf = malloc(copy->dstbuf_size * copy->vertex_size); in replay_init()
518 dst->StrideB = copy->vertex_size; in replay_init()
Dvbo_save_api.c109 GLuint sz = save->vertex_size; in copy_vertices()
317 if (save->vertex_size) in reset_counters()
319 save->vertex_size; in reset_counters()
382 const GLuint sz = save->vertex_size; in convert_line_loop_to_strip()
436 node->vertex_size = save->vertex_size; in compile_vertex_list()
455 node->current_size = node->vertex_size - node->attrsz[0]; in compile_vertex_list()
470 (node->vertex_count - 1) * node->vertex_size * sizeof(GLfloat); in compile_vertex_list()
484 save->vertex_store->used += save->vertex_size * node->vertex_count; in compile_vertex_list()
510 node->wrap_count, node->vertex_size); in compile_vertex_list()
519 VBO_SAVE_BUFFER_SIZE - 16 * (save->vertex_size + 4)) { in compile_vertex_list()
[all …]
Dvbo_save_draw.c66 + pos * node->vertex_size * sizeof(GLfloat); in playback_copy_to_current()
71 node->vertex_size * sizeof(GLfloat), in playback_copy_to_current()
211 array->StrideB = node->vertex_size * sizeof(GLfloat); in bind_vertex_list()
252 list->vertex_size); in loopback_vertex_list()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pt_fetch_shade_pipeline.c50 unsigned vertex_size; member
108 fpme->vertex_size = sizeof(struct vertex_header) + nr * 4 * sizeof(float); in fetch_pipeline_prepare()
112 fpme->vertex_size, in fetch_pipeline_prepare()
211 output_verts->vertex_size = input_verts->vertex_size; in draw_vertex_shader_run()
212 output_verts->stride = input_verts->vertex_size; in draw_vertex_shader_run()
215 (struct vertex_header *)MALLOC(output_verts->vertex_size * in draw_vertex_shader_run()
224 input_verts->vertex_size, in draw_vertex_shader_run()
225 input_verts->vertex_size); in draw_vertex_shader_run()
250 fetched_vert_info.vertex_size = fpme->vertex_size; in fetch_pipeline_generic()
251 fetched_vert_info.stride = fpme->vertex_size; in fetch_pipeline_generic()
[all …]
Ddraw_pt_fetch.c43 unsigned vertex_size; member
62 unsigned vertex_size, in draw_pt_fetch_prepare() argument
72 fetch->vertex_size = vertex_size; in draw_pt_fetch_prepare()
133 assert(dst_offset <= vertex_size); in draw_pt_fetch_prepare()
136 key.output_stride = vertex_size; in draw_pt_fetch_prepare()
Ddraw_gs.c114 output = (float (*)[4])((char *)output + shader->vertex_size); in tgsi_fetch_gs_outputs()
310 output_ptr += shader->emitted_vertices * shader->vertex_size; in llvm_fetch_gs_outputs()
318 (output_ptr + shader->vertex_size * (i * next_prim_boundary + j)); in llvm_fetch_gs_outputs()
327 memmove(output_ptr + (vertex_count + current_verts) * shader->vertex_size, in llvm_fetch_gs_outputs()
328 output_ptr + ((i + 1) * next_prim_boundary) * shader->vertex_size, in llvm_fetch_gs_outputs()
329 shader->vertex_size * next_verts); in llvm_fetch_gs_outputs()
338 struct vertex_header *vh = (struct vertex_header *)(output_ptr + shader->vertex_size * i); in llvm_fetch_gs_outputs()
381 input += (shader->emitted_vertices * shader->vertex_size); in llvm_gs_run()
538 unsigned input_stride = input_verts->vertex_size; in draw_geometry_shader_run()
540 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()
203 vbuf->vertex_size = vinfo->size * sizeof(float); in vbuf_start_prim()
243 hw_key.output_stride = vbuf->vertex_size; in vbuf_start_prim()
352 vbuf->render->max_vertex_buffer_bytes / vbuf->vertex_size; in vbuf_alloc_vertices()
363 (ushort) vbuf->vertex_size, in vbuf_alloc_vertices()
Ddraw_prim_assembler.c105 asmblr->input_verts->vertex_size); in copy_verts()
246 output_verts->vertex_size = input_verts->vertex_size; in draw_prim_assembler_run()
249 input_verts->vertex_size * max_verts); in draw_prim_assembler_run()
Ddraw_pt_fetch_shade_pipeline_llvm.c54 unsigned vertex_size; member
199 fpme->vertex_size = sizeof(struct vertex_header) + nr * 4 * sizeof(float); in llvm_middle_end_prepare()
373 llvm_vert_info.vertex_size = fpme->vertex_size; in llvm_pipeline_generic()
374 llvm_vert_info.stride = fpme->vertex_size; in llvm_pipeline_generic()
376 MALLOC(fpme->vertex_size * in llvm_pipeline_generic()
405 fpme->vertex_size, in llvm_pipeline_generic()
/external/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()
172 size_t used = svga_render->vertex_size * ((size_t)max_index + 1); in svga_vbuf_render_unmap_vertices()
177 offset = svga_render->vbuf_offset + svga_render->vertex_size * min_index; in svga_vbuf_render_unmap_vertices()
178 length = svga_render->vertex_size * (max_index + 1 - min_index); in svga_vbuf_render_unmap_vertices()
288 / svga_render->vertex_size; in svga_vbuf_render_draw_arrays()
328 / svga_render->vertex_size; in svga_vbuf_render_draw_elements()
336 % svga_render->vertex_size == 0); in svga_vbuf_render_draw_elements()
/external/mesa3d/src/gallium/drivers/i915/
Di915_prim_emit.c134 unsigned vertex_size; in emit_prim() local
144 vertex_size = i915->current.vertex_info.size * 4; /* in bytes */ in emit_prim()
145 assert(vertex_size >= 12); /* never smaller than 12 bytes */ in emit_prim()
147 if (!BEGIN_BATCH( 1 + nr * vertex_size / 4)) { in emit_prim()
154 if (!BEGIN_BATCH( 1 + nr * vertex_size / 4)) { in emit_prim()
165 ((4 + vertex_size * nr)/4 - 2)); in emit_prim()
Di915_prim_vbuf.c66 size_t vertex_size; member
225 ushort vertex_size, in i915_vbuf_render_allocate_vertices() argument
229 size_t size = (size_t)vertex_size * (size_t)nr_vertices; in i915_vbuf_render_allocate_vertices()
240 offset = util_align_npot(offset, vertex_size); in i915_vbuf_render_allocate_vertices()
242 i915_render->vbo_index = offset / vertex_size; in i915_vbuf_render_allocate_vertices()
253 i915_render->vertex_size = vertex_size; in i915_vbuf_render_allocate_vertices()
288 …i915_render->vbo_max_used = MAX2(i915_render->vbo_max_used, i915_render->vertex_size * (max_index … in i915_vbuf_render_unmap_vertices()
292 i915_render->map_used_start = i915_render->vertex_size * min_index; in i915_vbuf_render_unmap_vertices()
293 i915_render->map_used_end = i915_render->vertex_size * (max_index + 1); in i915_vbuf_render_unmap_vertices()
Di915_state_immediate.c76 unsigned vertex_size = i915->current.vertex_info.size; in upload_S0S1() local
78 LIS1 = ((vertex_size << 24) | in upload_S0S1()
79 (vertex_size << 16)); in upload_S0S1()
/external/mesa3d/src/mesa/tnl/
Dt_vertex.c56 if (vtx->vertex_size != fp->vertex_size) in match_fastpath()
92 fastpath->vertex_size = vtx->vertex_size; in _tnl_register_fastpath()
283 return vtx->vertex_buf + nr * vtx->vertex_size; in _tnl_get_vertex()
370 vtx->vertex_size = unpacked_size; in _tnl_install_attrs()
372 vtx->vertex_size = offset; in _tnl_install_attrs()
374 assert(vtx->vertex_size <= vtx->max_vertex_size); in _tnl_install_attrs()
375 return vtx->vertex_size; in _tnl_install_attrs()
453 start * vtx->vertex_size)); in _tnl_build_vertices()
470 return (void *)((GLubyte *)dest + vtx->vertex_size * (end - start)); in _tnl_emit_vertices_to_buffer()
489 cdest += vtx->vertex_size; in _tnl_emit_indexed_vertices_to_buffer()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_tris.c163 return intel_extend_inline(intel, count * intel->vertex_size); in intel_get_prim_space()
169 count * intel->vertex_size * 4) > INTEL_VB_SIZE || in intel_get_prim_space()
188 intel->prim.current_offset += intel->vertex_size * 4 * count; in intel_get_prim_space()
243 intel->vertex_size * 4); in intel_flush_prim()
255 if (intel->vertex_size != i915->current_vertex_size) { in intel_flush_prim()
269 if (intel->vertex_size != i915->current_vertex_size) { in intel_flush_prim()
270 OUT_BATCH((intel->vertex_size << S1_VERTEX_WIDTH_SHIFT) | in intel_flush_prim()
271 (intel->vertex_size << S1_VERTEX_PITCH_SHIFT)); in intel_flush_prim()
272 i915->current_vertex_size = intel->vertex_size; in intel_flush_prim()
279 OUT_BATCH(offset / (intel->vertex_size * 4)); in intel_flush_prim()
[all …]
Dintel_render.c129 ret /= (intel->vertex_size * 4); in intel_get_vb_max()
143 return ret / (intel->vertex_size * 4); in intel_get_current_max()
175 int vertsz = intel->vertex_size; in choose_render()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_render.c344 unsigned vertex_size = r300->velems->vertex_size_dwords; in r300_draw_arrays_immediate() local
347 unsigned dwords = 4 + info->count * vertex_size; in r300_draw_arrays_immediate()
386 OUT_CS_REG(R300_VAP_VTX_SIZE, vertex_size); in r300_draw_arrays_immediate()
387 OUT_CS_PKT3(R300_PACKET3_3D_DRAW_IMMD_2, info->count * vertex_size); in r300_draw_arrays_immediate()
875 size_t vertex_size; member
900 ushort vertex_size, in r300_render_allocate_vertices() argument
906 size_t size = (size_t)vertex_size * (size_t)count; in r300_render_allocate_vertices()
927 r300render->vertex_size = vertex_size; in r300_render_allocate_vertices()
952 r300render->vertex_size * (max + 1)); in r300_render_unmap_vertices()
1127 unsigned vertex_size = in r300_blitter_draw_rectangle() local
[all …]
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_swtcl.c221 rmesa->radeon.swtcl.vertex_size = in radeonSetVertexFormat()
226 rmesa->radeon.swtcl.vertex_size /= 4; in radeonSetVertexFormat()
229 "%s: vertex_size= %d floats\n", __func__, rmesa->radeon.swtcl.vertex_size); in radeonSetVertexFormat()
240 const int vertex_size = 7; in radeon_predict_emit_size() local
244 (scissor_size + prims_size + vertex_size), in radeon_predict_emit_size()
249 rmesa->radeon.swtcl.emit_prediction += scissor_size + prims_size + vertex_size in radeon_predict_emit_size()
326 rmesa->radeon.swtcl.vertex_size, in r100_swtcl_flush()
397 ((RADEON_BUFFER_SIZE) / (rmesa->radeon.swtcl.vertex_size*4))
398 #define ALLOC_VERTS( nr ) radeon_alloc_verts( rmesa, nr, rmesa->radeon.swtcl.vertex_size * 4 )
494 #define GET_VERTEX_DWORDS() rmesa->radeon.swtcl.vertex_size
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_vbo_translate.c20 uint32_t vertex_size; member
47 ctx->vertex_size = nvc0->vertex->size; in nvc0_push_context_init()
255 ctx->dest += nR * ctx->vertex_size; in disp_vertices_i08()
288 ctx->dest += ctx->vertex_size; in disp_vertices_i08()
312 ctx->dest += nR * ctx->vertex_size; in disp_vertices_i16()
345 ctx->dest += ctx->vertex_size; in disp_vertices_i16()
369 ctx->dest += nR * ctx->vertex_size; in disp_vertices_i32()
402 ctx->dest += ctx->vertex_size; in disp_vertices_i32()
/external/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()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_vbuf.c76 ushort vertex_size, ushort nr_vertices) in lp_setup_allocate_vertices() argument
79 unsigned size = vertex_size * nr_vertices; in lp_setup_allocate_vertices()
87 setup->vertex_size = vertex_size; in lp_setup_allocate_vertices()
112 assert( setup->vertex_buffer_size >= (max_index+1) * setup->vertex_size ); in lp_setup_unmap_vertices()

123