/external/mesa3d/src/mesa/vbo/ |
D | vbo_exec.c | 263 unsigned vertex_size, in vbo_copy_vertices() argument 321 src -= vertex_size; in vbo_copy_vertices() 329 memcpy(dst, src + 0, vertex_size * sizeof(GLfloat)); in vbo_copy_vertices() 332 memcpy(dst, src + 0, vertex_size * sizeof(GLfloat)); in vbo_copy_vertices() 333 memcpy(dst + vertex_size, src + (count - 1) * vertex_size, in vbo_copy_vertices() 334 vertex_size * sizeof(GLfloat)); in vbo_copy_vertices() 356 memcpy(dst, src + (count - copy) * vertex_size, in vbo_copy_vertices() 357 copy * vertex_size * sizeof(GLfloat)); in vbo_copy_vertices()
|
D | vbo_exec_api.c | 161 numComponents = exec->vtx.copied.nr * exec->vtx.vertex_size; in vbo_exec_vtx_wrap() 261 const GLuint old_vtx_size = exec->vtx.vertex_size; /* floats per vertex */ in vbo_exec_wrap_upgrade_vertex() 284 !oldSize && lastcount > 8 && exec->vtx.vertex_size) { in vbo_exec_wrap_upgrade_vertex() 294 exec->vtx.vertex_size += newSize - oldSize; in vbo_exec_wrap_upgrade_vertex() 295 exec->vtx.vertex_size_no_pos = exec->vtx.vertex_size - exec->vtx.attr[0].size; in vbo_exec_wrap_upgrade_vertex() 397 dest += exec->vtx.vertex_size; in vbo_exec_wrap_upgrade_vertex() 684 if (exec->vtx.vertex_size) { in vbo_exec_FlushVertices_internal() 724 exec->vtx.vertex_size * sizeof(GLfloat)); in vbo_exec_EvalCoord1f() 729 exec->vtx.vertex_size * sizeof(GLfloat)); in vbo_exec_EvalCoord1f() 756 exec->vtx.vertex_size * sizeof(GLfloat)); in vbo_exec_EvalCoord2f() [all …]
|
D | vbo_save_api.c | 124 GLuint sz = save->vertex_size; in copy_vertices() 268 if (save->vertex_size) in reset_counters() 270 save->vertex_size; in reset_counters() 332 const GLuint sz = save->vertex_size; in convert_line_loop_to_strip() 501 const GLsizei stride = save->vertex_size*sizeof(GLfloat); in compile_vertex_list() 553 GLuint current_size = save->vertex_size - save->attrsz[0]; in compile_vertex_list() 579 save->vertex_store->used += save->vertex_size * node->vertex_count; in compile_vertex_list() 618 VBO_SAVE_BUFFER_SIZE - 16 * (save->vertex_size + 4)) { in compile_vertex_list() 709 numComponents = save->copied.nr * save->vertex_size; in wrap_filled_vertex() 801 save->vertex_size += newsz - oldsz; in upgrade_vertex() [all …]
|
D | vbo_exec_draw.c | 53 exec->vtx.vertex_size); in vbo_exec_debug_verts() 72 const GLuint sz = exec->vtx.vertex_size; in vbo_exec_copy_vertices() 111 const GLuint stride = exec->vtx.vertex_size*sizeof(GLfloat); in vbo_exec_bind_arrays() 352 if (exec->vtx.vertex_size == 0) in vbo_exec_vtx_flush()
|
D | vbo_private.h | 156 (exec->vtx.vertex_size * sizeof(GLfloat)); in vbo_compute_max_verts() 178 unsigned vertex_size,
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
D | nv04_render.c | 142 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/drivers/svga/ |
D | svga_swtnl_backend.c | 61 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() 340 % svga_render->vertex_size == 0); in svga_vbuf_render_draw_elements()
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pt_fetch_shade_pipeline.c | 50 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() 212 output_verts->vertex_size = input_verts->vertex_size; in draw_vertex_shader_run() 213 output_verts->stride = input_verts->vertex_size; in draw_vertex_shader_run() 216 (struct vertex_header *)MALLOC(output_verts->vertex_size * in draw_vertex_shader_run() 225 input_verts->vertex_size, in draw_vertex_shader_run() 226 input_verts->vertex_size, in draw_vertex_shader_run() 253 fetched_vert_info.vertex_size = fpme->vertex_size; in fetch_pipeline_generic() 254 fetched_vert_info.stride = fpme->vertex_size; in fetch_pipeline_generic() [all …]
|
D | draw_tess.c | 167 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() 332 unsigned input_stride = input_verts->vertex_size; in draw_tess_eval_shader_run() 333 unsigned vertex_size = sizeof(struct vertex_header) + num_outputs * 4 * sizeof(float); in draw_tess_eval_shader_run() local 335 output_verts->vertex_size = vertex_size; in draw_tess_eval_shader_run() 336 output_verts->stride = output_verts->vertex_size; in draw_tess_eval_shader_run() [all …]
|
D | draw_pt_fetch.c | 43 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()
|
D | draw_gs.c | 116 output = (float (*)[4])((char *)output + shader->vertex_size); in tgsi_fetch_gs_outputs() 342 output_ptr += shader->stream[stream].emitted_vertices * shader->vertex_size; in llvm_fetch_gs_outputs() 350 (output_ptr + shader->vertex_size * (i * next_prim_boundary + j)); in llvm_fetch_gs_outputs() 359 memmove(output_ptr + (vertex_count + current_verts) * shader->vertex_size, in llvm_fetch_gs_outputs() 360 output_ptr + ((i + 1) * next_prim_boundary) * shader->vertex_size, in llvm_fetch_gs_outputs() 361 shader->vertex_size * next_verts); in llvm_fetch_gs_outputs() 370 struct vertex_header *vh = (struct vertex_header *)(output_ptr + shader->vertex_size * i); in llvm_fetch_gs_outputs() 413 tmp += shader->stream[i].emitted_vertices * shader->vertex_size; in llvm_gs_run() 582 unsigned input_stride = input_verts->vertex_size; in draw_geometry_shader_run() 584 unsigned vertex_size = sizeof(struct vertex_header) + num_outputs * 4 * sizeof(float); in draw_geometry_shader_run() local [all …]
|
D | draw_pipe_vbuf.c | 59 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()
|
D | draw_prim_assembler.c | 114 asmblr->input_verts->vertex_size); in copy_verts() 255 output_verts->vertex_size = input_verts->vertex_size; in draw_prim_assembler_run() 258 input_verts->vertex_size * max_verts); in draw_prim_assembler_run()
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_prim_emit.c | 134 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()
|
D | i915_prim_vbuf.c | 66 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()
|
D | i915_state_immediate.c | 76 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/ |
D | t_vertex.c | 57 if (vtx->vertex_size != fp->vertex_size) in match_fastpath() 93 fastpath->vertex_size = vtx->vertex_size; in _tnl_register_fastpath() 284 return vtx->vertex_buf + nr * vtx->vertex_size; in _tnl_get_vertex() 371 vtx->vertex_size = unpacked_size; in _tnl_install_attrs() 373 vtx->vertex_size = offset; in _tnl_install_attrs() 375 assert(vtx->vertex_size <= vtx->max_vertex_size); in _tnl_install_attrs() 376 return vtx->vertex_size; in _tnl_install_attrs() 454 start * vtx->vertex_size)); in _tnl_build_vertices() 471 return (void *)((GLubyte *)dest + vtx->vertex_size * (end - start)); in _tnl_emit_vertices_to_buffer() 490 cdest += vtx->vertex_size; in _tnl_emit_indexed_vertices_to_buffer() [all …]
|
D | t_split_copy.c | 90 GLuint vertex_size; member 288 copy->dstptr += copy->vertex_size; in elt() 292 copy->dstbuf_nr * copy->vertex_size)); in elt() 432 copy->vertex_size = 0; in replay_init() 449 copy->vertex_size += attrib->Format._ElementSize; in replay_init() 508 if (copy->vertex_size * copy->limits->max_verts <= copy->limits->max_vb_size) { in replay_init() 512 copy->dstbuf_size = copy->limits->max_vb_size / copy->vertex_size; in replay_init() 519 copy->dstbuf = malloc(copy->dstbuf_size * copy->vertex_size); in replay_init() 533 dstbind->Stride = copy->vertex_size; in replay_init()
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | intel_tris.c | 163 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 …]
|
D | intel_render.c | 128 ret /= (intel->vertex_size * 4); in intel_get_vb_max() 142 return ret / (intel->vertex_size * 4); in intel_get_current_max() 174 int vertsz = intel->vertex_size; in choose_render()
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_render.c | 344 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() 928 r300render->vertex_size = vertex_size; in r300_render_allocate_vertices() 953 r300render->vertex_size * (max + 1)); in r300_render_unmap_vertices() 1128 unsigned vertex_size = in r300_blitter_draw_rectangle() local [all …]
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_swtcl.c | 220 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/mesa/drivers/dri/i965/ |
D | brw_draw_upload.c | 540 const uint32_t vertex_size = vertex_range_end - vertex_range_start; in brw_prepare_vertices() local 544 vertex_size); in brw_prepare_vertices() 548 const uint32_t vertex_size = vertex_range_end - vertex_range_start; in brw_prepare_vertices() local 551 vertex_size); in brw_prepare_vertices() 641 const uint32_t vertex_size = vertex_range_end - vertex_range_start; in brw_prepare_vertices() local 647 copy_array_to_vbo_array(brw, ptr, 0, 0, 0, buffer, vertex_size); in brw_prepare_vertices() 650 max_index, buffer, vertex_size); in brw_prepare_vertices() 659 instanced_attr_max_index, buffer, vertex_size); in brw_prepare_vertices()
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_prim_vbuf.c | 64 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/nouveau/nvc0/ |
D | nvc0_vbo_translate.c | 20 uint32_t vertex_size; member 47 ctx->vertex_size = nvc0->vertex->size; in nvc0_push_context_init() 263 ctx->dest += nR * ctx->vertex_size; in disp_vertices_i08() 296 ctx->dest += ctx->vertex_size; in disp_vertices_i08() 320 ctx->dest += nR * ctx->vertex_size; in disp_vertices_i16() 353 ctx->dest += ctx->vertex_size; in disp_vertices_i16() 377 ctx->dest += nR * ctx->vertex_size; in disp_vertices_i32() 410 ctx->dest += ctx->vertex_size; in disp_vertices_i32()
|