/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/auxiliary/draw/ |
D | draw_pt_fetch_shade_pipeline.c | 49 unsigned vertex_size; member 91 fpme->vertex_size = sizeof(struct vertex_header) + nr * 4 * sizeof(float); in fetch_pipeline_prepare() 97 fpme->vertex_size, in fetch_pipeline_prepare() 183 output_verts->vertex_size = input_verts->vertex_size; in draw_vertex_shader_run() 184 output_verts->stride = input_verts->vertex_size; in draw_vertex_shader_run() 187 (struct vertex_header *)MALLOC(output_verts->vertex_size * in draw_vertex_shader_run() 196 input_verts->vertex_size, in draw_vertex_shader_run() 197 input_verts->vertex_size); in draw_vertex_shader_run() 216 fetched_vert_info.vertex_size = fpme->vertex_size; in fetch_pipeline_generic() 217 fetched_vert_info.stride = fpme->vertex_size; in fetch_pipeline_generic() [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() 135 assert(dst_offset <= vertex_size); in draw_pt_fetch_prepare() 138 key.output_stride = vertex_size; in draw_pt_fetch_prepare()
|
D | draw_gs.c | 202 output = (float (*)[4])((char *)output + shader->vertex_size); in draw_geometry_fetch_outputs() 399 unsigned input_stride = input_verts->vertex_size; in draw_geometry_shader_run() 400 unsigned vertex_size = input_verts->vertex_size; in draw_geometry_shader_run() local 412 output_verts->vertex_size = input_verts->vertex_size; in draw_geometry_shader_run() 413 output_verts->stride = input_verts->vertex_size; in draw_geometry_shader_run() 415 (struct vertex_header *)MALLOC(input_verts->vertex_size * in draw_geometry_shader_run() 433 shader->vertex_size = vertex_size; in draw_geometry_shader_run()
|
D | draw_pt_fetch_shade_pipeline_llvm.c | 51 unsigned vertex_size; member 91 fpme->vertex_size = sizeof(struct vertex_header) + nr * 4 * sizeof(float); in llvm_middle_end_prepare() 229 llvm_vert_info.vertex_size = fpme->vertex_size; in llvm_pipeline_generic() 230 llvm_vert_info.stride = fpme->vertex_size; in llvm_pipeline_generic() 232 (struct vertex_header *)MALLOC(fpme->vertex_size * in llvm_pipeline_generic() 245 fpme->vertex_size, in llvm_pipeline_generic() 254 fpme->vertex_size, in llvm_pipeline_generic()
|
D | draw_pipe_vbuf.c | 60 unsigned vertex_size; member 145 vbuf->vertex_ptr += vbuf->vertex_size/4; in emit_vertex() 218 vbuf->vertex_size = vbuf->vinfo->size * sizeof(float); in vbuf_start_prim() 366 vbuf->max_vertices = vbuf->render->max_vertex_buffer_bytes / vbuf->vertex_size; in vbuf_alloc_vertices() 377 (ushort) vbuf->vertex_size, in vbuf_alloc_vertices()
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_swtnl_backend.c | 60 ushort vertex_size, in svga_vbuf_render_allocate_vertices() argument 66 size_t size = (size_t)nr_vertices * (size_t)vertex_size; in svga_vbuf_render_allocate_vertices() 70 if (svga_render->vertex_size != vertex_size) in svga_vbuf_render_allocate_vertices() 72 svga_render->vertex_size = (size_t)vertex_size; in svga_vbuf_render_allocate_vertices() 151 size_t used = svga_render->vertex_size * ((size_t)max_index + 1); in svga_vbuf_render_unmap_vertices() 153 offset = svga_render->vbuf_offset + svga_render->vertex_size * min_index; in svga_vbuf_render_unmap_vertices() 154 length = svga_render->vertex_size * (max_index + 1 - min_index); in svga_vbuf_render_unmap_vertices() 233 … unsigned bias = (svga_render->vbuf_offset - svga_render->vdecl_offset) / svga_render->vertex_size; in svga_vbuf_render_draw_arrays() 263 int bias = (svga_render->vbuf_offset - svga_render->vdecl_offset) / svga_render->vertex_size; in svga_vbuf_render_draw_elements() 267 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/ |
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 | 55 if (vtx->vertex_size != fp->vertex_size) in match_fastpath() 86 fastpath->vertex_size = vtx->vertex_size; in _tnl_register_fastpath() 267 return vtx->vertex_buf + nr * vtx->vertex_size; in _tnl_get_vertex() 354 vtx->vertex_size = unpacked_size; in _tnl_install_attrs() 356 vtx->vertex_size = offset; in _tnl_install_attrs() 358 assert(vtx->vertex_size <= vtx->max_vertex_size); in _tnl_install_attrs() 359 return vtx->vertex_size; in _tnl_install_attrs() 437 start * vtx->vertex_size)); in _tnl_build_vertices() 454 return (void *)((GLubyte *)dest + vtx->vertex_size * (end - start)); in _tnl_emit_vertices_to_buffer() 473 cdest += vtx->vertex_size; in _tnl_emit_indexed_vertices_to_buffer() [all …]
|
/external/mesa3d/src/mesa/vbo/ |
D | vbo_save_loopback.c | 91 GLuint vertex_size, in loopback_prim() argument 116 data = buffer + start * vertex_size; in loopback_prim() 165 GLuint vertex_size) in vbo_loopback_vertex_list() argument 190 loopback_prim( ctx, buffer, &prim[i], wrap_count, vertex_size, la, nr ); in vbo_loopback_vertex_list()
|
D | vbo_split_copy.c | 86 GLuint vertex_size; member 289 copy->dstptr += copy->vertex_size; in elt() 293 copy->dstbuf_nr * copy->vertex_size)); in elt() 439 copy->vertex_size = 0; in replay_init() 452 copy->vertex_size += attr_size(copy->array[i]); in replay_init() 501 if (copy->vertex_size * copy->limits->max_verts <= copy->limits->max_vb_size) { in replay_init() 505 copy->dstbuf_size = copy->limits->max_vb_size / copy->vertex_size; in replay_init() 512 copy->dstbuf = malloc(copy->dstbuf_size * copy->vertex_size); in replay_init() 524 dst->Stride = copy->vertex_size; in replay_init() 525 dst->StrideB = copy->vertex_size; in replay_init()
|
D | vbo_save_api.c | 111 GLuint sz = save->vertex_size; in _save_copy_vertices() 295 if (save->vertex_size) in _save_reset_counters() 297 save->vertex_size); in _save_reset_counters() 331 node->vertex_size = save->vertex_size; in _save_compile_vertex_list() 350 node->current_size = node->vertex_size - node->attrsz[0]; in _save_compile_vertex_list() 365 (node->count - 1) * node->vertex_size * sizeof(GLfloat); in _save_compile_vertex_list() 379 save->vertex_store->used += save->vertex_size * node->count; in _save_compile_vertex_list() 398 node->wrap_count, node->vertex_size); in _save_compile_vertex_list() 407 VBO_SAVE_BUFFER_SIZE - 16 * (save->vertex_size + 4)) { in _save_compile_vertex_list() 500 memcpy(save->buffer_ptr, data, save->vertex_size * sizeof(GLfloat)); in _save_wrap_filled_vertex() [all …]
|
D | vbo_save.h | 67 GLuint vertex_size; member 133 GLuint vertex_size; member 177 GLuint vertex_size);
|
D | vbo_exec_draw.c | 54 exec->vtx.vertex_size); in vbo_exec_debug_verts() 79 GLuint sz = exec->vtx.vertex_size; in vbo_copy_vertices() 83 exec->vtx.vertex_size); in vbo_copy_vertices() 241 arrays[attr].StrideB = exec->vtx.vertex_size * sizeof(GLfloat); in vbo_exec_bind_arrays() 242 arrays[attr].Stride = exec->vtx.vertex_size * sizeof(GLfloat); in vbo_exec_bind_arrays() 433 if (keepUnmapped || exec->vtx.vertex_size == 0) in vbo_exec_vtx_flush() 437 (exec->vtx.vertex_size * sizeof(GLfloat))); in vbo_exec_vtx_flush()
|
D | vbo_exec_api.c | 138 exec->vtx.vertex_size * sizeof(GLfloat)); in vbo_exec_vtx_wrap() 139 exec->vtx.buffer_ptr += exec->vtx.vertex_size; in vbo_exec_vtx_wrap() 140 data += exec->vtx.vertex_size; in vbo_exec_vtx_wrap() 245 const GLuint old_vtx_size = exec->vtx.vertex_size; /* floats per vertex */ in vbo_exec_wrap_upgrade_vertex() 274 !oldSize && lastcount > 8 && exec->vtx.vertex_size) { in vbo_exec_wrap_upgrade_vertex() 282 exec->vtx.vertex_size += newSize - oldSize; in vbo_exec_wrap_upgrade_vertex() 284 (exec->vtx.vertex_size * sizeof(GLfloat))); in vbo_exec_wrap_upgrade_vertex() 310 exec->vtx.vertex_size - newSize; in vbo_exec_wrap_upgrade_vertex() 352 dest += exec->vtx.vertex_size; in vbo_exec_wrap_upgrade_vertex() 428 for (i = 0; i < exec->vtx.vertex_size; i++) \ [all …]
|
D | vbo_save_draw.c | 69 (node->count-1) * node->vertex_size * sizeof(GLfloat)); in _playback_copy_to_current() 74 node->vertex_size * sizeof(GLfloat), in _playback_copy_to_current() 204 arrays[attr].StrideB = node->vertex_size * sizeof(GLfloat); in vbo_bind_vertex_list() 205 arrays[attr].Stride = node->vertex_size * sizeof(GLfloat); in vbo_bind_vertex_list() 245 list->vertex_size); in vbo_save_loopback_vertex_list()
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | intel_tris.c | 165 return intel_extend_inline(intel, count * intel->vertex_size); in intel_get_prim_space() 171 count * intel->vertex_size * 4) > INTEL_VB_SIZE || in intel_get_prim_space() 190 intel->prim.current_offset += intel->vertex_size * 4 * count; in intel_get_prim_space() 245 intel->vertex_size * 4); in intel_flush_prim() 257 if (intel->vertex_size != i915->current_vertex_size) { in intel_flush_prim() 271 if (intel->vertex_size != i915->current_vertex_size) { in intel_flush_prim() 272 OUT_BATCH((intel->vertex_size << S1_VERTEX_WIDTH_SHIFT) | in intel_flush_prim() 273 (intel->vertex_size << S1_VERTEX_PITCH_SHIFT)); in intel_flush_prim() 274 i915->current_vertex_size = intel->vertex_size; in intel_flush_prim() 281 OUT_BATCH(offset / (intel->vertex_size * 4)); in intel_flush_prim() [all …]
|
D | intel_render.c | 132 ret /= (intel->vertex_size * 4); in intel_get_vb_max() 146 return ret / (intel->vertex_size * 4); in intel_get_current_max() 178 int vertsz = intel->vertex_size; in choose_render()
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11app/ |
D | d3d11u.h | 85 unsigned vertex_size; member 93 const void* vertices, unsigned vertex_size, unsigned num_vertices, 95 …: topology(topology), vertex_size(vertex_size), draw_count(index_size ? num_indices : num_vertices) in topology() 104 this->vertex_size = vertex_size; in topology() 105 index_offset = vertex_size * num_vertices; in topology() 116 memcpy(data, vertices, vertex_size * num_vertices); in topology() 139 ctx->IASetVertexBuffers(0, 1, &buffer, &vertex_size, &offset); in bind()
|
/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", __FUNCTION__, 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() 321 rmesa->radeon.swtcl.vertex_size, in r100_swtcl_flush() 395 ((RADEON_BUFFER_SIZE) / (rmesa->radeon.swtcl.vertex_size*4)) 396 #define ALLOC_VERTS( nr ) radeon_alloc_verts( rmesa, nr, rmesa->radeon.swtcl.vertex_size * 4 ) 492 #define GET_VERTEX_DWORDS() rmesa->radeon.swtcl.vertex_size [all …]
|
/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() 887 size_t vertex_size; member 914 ushort vertex_size, in r300_render_allocate_vertices() argument 920 size_t size = (size_t)vertex_size * (size_t)count; in r300_render_allocate_vertices() 935 r300render->vertex_size = vertex_size; in r300_render_allocate_vertices() 973 r300render->vertex_size * (max + 1)); in r300_render_unmap_vertices() 1185 unsigned vertex_size = in r300_blitter_draw_rectangle() local [all …]
|
/external/mesa3d/src/gallium/drivers/nvc0/ |
D | nvc0_vbo_translate.c | 20 uint32_t vertex_size; member 45 ctx->vertex_size = nvc0->vertex->size; in nvc0_push_context_init() 220 ctx->dest += nR * ctx->vertex_size; in disp_vertices_i08() 253 ctx->dest += ctx->vertex_size; in disp_vertices_i08() 276 ctx->dest += nR * ctx->vertex_size; in disp_vertices_i16() 309 ctx->dest += ctx->vertex_size; in disp_vertices_i16() 332 ctx->dest += nR * ctx->vertex_size; in disp_vertices_i32() 365 ctx->dest += ctx->vertex_size; in disp_vertices_i32()
|
/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()
|