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/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.c60 unsigned vertex_size; member
146 vbuf->vertex_ptr += vbuf->vertex_size/4; in emit_vertex()
221 vbuf->vertex_size = vinfo->size * sizeof(float); in vbuf_start_prim()
261 hw_key.output_stride = vbuf->vertex_size; in vbuf_start_prim()
375 vbuf->max_vertices = vbuf->render->max_vertex_buffer_bytes / vbuf->vertex_size; in vbuf_alloc_vertices()
386 (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.c53 unsigned vertex_size; member
192 fpme->vertex_size = sizeof(struct vertex_header) + nr * 4 * sizeof(float); in llvm_middle_end_prepare()
361 llvm_vert_info.vertex_size = fpme->vertex_size; in llvm_pipeline_generic()
362 llvm_vert_info.stride = fpme->vertex_size; in llvm_pipeline_generic()
364 MALLOC(fpme->vertex_size * in llvm_pipeline_generic()
393 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()
169 size_t used = svga_render->vertex_size * ((size_t)max_index + 1); in svga_vbuf_render_unmap_vertices()
174 offset = svga_render->vbuf_offset + svga_render->vertex_size * min_index; in svga_vbuf_render_unmap_vertices()
175 length = svga_render->vertex_size * (max_index + 1 - min_index); in svga_vbuf_render_unmap_vertices()
281 … unsigned bias = (svga_render->vbuf_offset - svga_render->vdecl_offset) / svga_render->vertex_size; in svga_vbuf_render_draw_arrays()
320 int bias = (svga_render->vbuf_offset - svga_render->vdecl_offset) / svga_render->vertex_size; in svga_vbuf_render_draw_elements()
327 assert(( svga_render->vbuf_offset - svga_render->vdecl_offset) % 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.c55 if (vtx->vertex_size != fp->vertex_size) in match_fastpath()
91 fastpath->vertex_size = vtx->vertex_size; in _tnl_register_fastpath()
282 return vtx->vertex_buf + nr * vtx->vertex_size; in _tnl_get_vertex()
369 vtx->vertex_size = unpacked_size; in _tnl_install_attrs()
371 vtx->vertex_size = offset; in _tnl_install_attrs()
373 assert(vtx->vertex_size <= vtx->max_vertex_size); in _tnl_install_attrs()
374 return vtx->vertex_size; in _tnl_install_attrs()
452 start * vtx->vertex_size)); in _tnl_build_vertices()
469 return (void *)((GLubyte *)dest + vtx->vertex_size * (end - start)); in _tnl_emit_vertices_to_buffer()
488 cdest += vtx->vertex_size; in _tnl_emit_indexed_vertices_to_buffer()
[all …]
/external/mesa3d/src/mesa/vbo/
Dvbo_save_loopback.c88 GLuint vertex_size, in loopback_prim() argument
113 data = buffer + start * vertex_size; in loopback_prim()
162 GLuint vertex_size) in vbo_loopback_vertex_list() argument
187 loopback_prim( ctx, buffer, &prim[i], wrap_count, vertex_size, la, nr ); in vbo_loopback_vertex_list()
Dvbo_save.h67 GLuint vertex_size; /**< size in GLfloats */ member
134 GLuint vertex_size; /**< size in GLfloats */ member
176 GLuint vertex_size);
Dvbo_exec_api.c150 numComponents = exec->vtx.copied.nr * exec->vtx.vertex_size; in vbo_exec_vtx_wrap()
276 const GLuint old_vtx_size = exec->vtx.vertex_size; /* floats per vertex */ in vbo_exec_wrap_upgrade_vertex()
305 !oldSize && lastcount > 8 && exec->vtx.vertex_size) { in vbo_exec_wrap_upgrade_vertex()
313 exec->vtx.vertex_size += newSize - oldSize; in vbo_exec_wrap_upgrade_vertex()
341 exec->vtx.vertex_size - newSize; in vbo_exec_wrap_upgrade_vertex()
383 dest += exec->vtx.vertex_size; in vbo_exec_wrap_upgrade_vertex()
499 for (i = 0; i < exec->vtx.vertex_size; i++) \
502 exec->vtx.buffer_ptr += exec->vtx.vertex_size; \
634 if (exec->vtx.vertex_size) { in vbo_exec_FlushVertices_internal()
661 exec->vtx.vertex_size * sizeof(GLfloat)); in vbo_exec_EvalCoord1f()
[all …]
Dvbo_split_copy.c88 GLuint vertex_size; member
291 copy->dstptr += copy->vertex_size; in elt()
295 copy->dstbuf_nr * copy->vertex_size)); in elt()
441 copy->vertex_size = 0; in replay_init()
454 copy->vertex_size += attr_size(copy->array[i]); in replay_init()
507 if (copy->vertex_size * copy->limits->max_verts <= copy->limits->max_vb_size) { in replay_init()
511 copy->dstbuf_size = copy->limits->max_vb_size / copy->vertex_size; in replay_init()
518 copy->dstbuf = malloc(copy->dstbuf_size * copy->vertex_size); in replay_init()
530 dst->StrideB = copy->vertex_size; in replay_init()
Dvbo_save_api.c109 GLuint sz = save->vertex_size; in _save_copy_vertices()
318 if (save->vertex_size) in _save_reset_counters()
320 save->vertex_size; in _save_reset_counters()
383 const GLuint sz = save->vertex_size; in convert_line_loop_to_strip()
437 node->vertex_size = save->vertex_size; in _save_compile_vertex_list()
456 node->current_size = node->vertex_size - node->attrsz[0]; in _save_compile_vertex_list()
471 (node->count - 1) * node->vertex_size * sizeof(GLfloat); in _save_compile_vertex_list()
485 save->vertex_store->used += save->vertex_size * node->count; in _save_compile_vertex_list()
510 node->wrap_count, node->vertex_size); in _save_compile_vertex_list()
519 VBO_SAVE_BUFFER_SIZE - 16 * (save->vertex_size + 4)) { in _save_compile_vertex_list()
[all …]
Dvbo_save_draw.c67 (node->count-1) * node->vertex_size * sizeof(GLfloat)); in _playback_copy_to_current()
72 node->vertex_size * sizeof(GLfloat), in _playback_copy_to_current()
200 arrays[attr].StrideB = node->vertex_size * sizeof(GLfloat); in vbo_bind_vertex_list()
239 list->vertex_size); in vbo_save_loopback_vertex_list()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_tris.c162 return intel_extend_inline(intel, count * intel->vertex_size); in intel_get_prim_space()
168 count * intel->vertex_size * 4) > INTEL_VB_SIZE || in intel_get_prim_space()
187 intel->prim.current_offset += intel->vertex_size * 4 * count; in intel_get_prim_space()
242 intel->vertex_size * 4); in intel_flush_prim()
254 if (intel->vertex_size != i915->current_vertex_size) { in intel_flush_prim()
268 if (intel->vertex_size != i915->current_vertex_size) { in intel_flush_prim()
269 OUT_BATCH((intel->vertex_size << S1_VERTEX_WIDTH_SHIFT) | in intel_flush_prim()
270 (intel->vertex_size << S1_VERTEX_PITCH_SHIFT)); in intel_flush_prim()
271 i915->current_vertex_size = intel->vertex_size; in intel_flush_prim()
278 OUT_BATCH(offset / (intel->vertex_size * 4)); in intel_flush_prim()
[all …]
Dintel_render.c127 ret /= (intel->vertex_size * 4); in intel_get_vb_max()
141 return ret / (intel->vertex_size * 4); in intel_get_current_max()
173 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()
865 size_t vertex_size; member
890 ushort vertex_size, in r300_render_allocate_vertices() argument
896 size_t size = (size_t)vertex_size * (size_t)count; in r300_render_allocate_vertices()
917 r300render->vertex_size = vertex_size; in r300_render_allocate_vertices()
942 r300render->vertex_size * (max + 1)); in r300_render_unmap_vertices()
1115 unsigned vertex_size = in r300_blitter_draw_rectangle() local
[all …]
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_swtcl.c220 rmesa->radeon.swtcl.vertex_size = in radeonSetVertexFormat()
225 rmesa->radeon.swtcl.vertex_size /= 4; in radeonSetVertexFormat()
228 "%s: vertex_size= %d floats\n", __func__, rmesa->radeon.swtcl.vertex_size); in radeonSetVertexFormat()
239 const int vertex_size = 7; in radeon_predict_emit_size() local
243 (scissor_size + prims_size + vertex_size), in radeon_predict_emit_size()
248 rmesa->radeon.swtcl.emit_prediction += scissor_size + prims_size + vertex_size in radeon_predict_emit_size()
325 rmesa->radeon.swtcl.vertex_size, in r100_swtcl_flush()
396 ((RADEON_BUFFER_SIZE) / (rmesa->radeon.swtcl.vertex_size*4))
397 #define ALLOC_VERTS( nr ) radeon_alloc_verts( rmesa, nr, rmesa->radeon.swtcl.vertex_size * 4 )
493 #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()
254 ctx->dest += nR * ctx->vertex_size; in disp_vertices_i08()
287 ctx->dest += ctx->vertex_size; in disp_vertices_i08()
311 ctx->dest += nR * ctx->vertex_size; in disp_vertices_i16()
344 ctx->dest += ctx->vertex_size; in disp_vertices_i16()
368 ctx->dest += nR * ctx->vertex_size; in disp_vertices_i32()
401 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