Home
last modified time | relevance | path

Searched refs:vertex_buffer (Results 1 – 25 of 97) sorted by relevance

1234

/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_prim_vbuf.c67 void *vertex_buffer; member
96 align_free(cvbr->vertex_buffer); in sp_vbuf_allocate_vertices()
97 cvbr->vertex_buffer = align_malloc(size, 16); in sp_vbuf_allocate_vertices()
104 return cvbr->vertex_buffer != NULL; in sp_vbuf_allocate_vertices()
119 return cvbr->vertex_buffer; in sp_vbuf_map_vertices()
148 static inline cptrf4 get_vert( const void *vertex_buffer, in get_vert() argument
152 return (cptrf4)((char *)vertex_buffer + index * stride); in get_vert()
165 const void *vertex_buffer = cvbr->vertex_buffer; in sp_vbuf_draw_elements() local
174 get_vert(vertex_buffer, indices[i-0], stride) ); in sp_vbuf_draw_elements()
181 get_vert(vertex_buffer, indices[i-1], stride), in sp_vbuf_draw_elements()
[all …]
Dsp_draw_arrays.c85 const void *buf = sp->vertex_buffer[i].is_user_buffer ? in softpipe_draw_vbo()
86 sp->vertex_buffer[i].buffer.user : NULL; in softpipe_draw_vbo()
89 if (!sp->vertex_buffer[i].buffer.resource) { in softpipe_draw_vbo()
92 buf = softpipe_resource_data(sp->vertex_buffer[i].buffer.resource); in softpipe_draw_vbo()
93 size = sp->vertex_buffer[i].buffer.resource->width0; in softpipe_draw_vbo()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup_vbuf.c82 align_free(setup->vertex_buffer); in lp_setup_allocate_vertices()
83 setup->vertex_buffer = align_malloc(size, 16); in lp_setup_allocate_vertices()
90 return setup->vertex_buffer != NULL; in lp_setup_allocate_vertices()
103 return setup->vertex_buffer; in lp_setup_map_vertices()
125 static inline const_float4_ptr get_vert( const void *vertex_buffer, in get_vert() argument
129 return (const_float4_ptr)((char *)vertex_buffer + index * stride); in get_vert()
140 const void *vertex_buffer = setup->vertex_buffer; in lp_setup_draw_elements() local
153 get_vert(vertex_buffer, indices[i-0], stride) ); in lp_setup_draw_elements()
160 get_vert(vertex_buffer, indices[i-1], stride), in lp_setup_draw_elements()
161 get_vert(vertex_buffer, indices[i-0], stride) ); in lp_setup_draw_elements()
[all …]
Dlp_draw_arrays.c76 const void *buf = lp->vertex_buffer[i].is_user_buffer ? in llvmpipe_draw_vbo()
77 lp->vertex_buffer[i].buffer.user : NULL; in llvmpipe_draw_vbo()
80 if (!lp->vertex_buffer[i].buffer.resource) { in llvmpipe_draw_vbo()
83 buf = llvmpipe_resource_data(lp->vertex_buffer[i].buffer.resource); in llvmpipe_draw_vbo()
84 size = lp->vertex_buffer[i].buffer.resource->width0; in llvmpipe_draw_vbo()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pt.c300 ptr += draw->pt.vertex_buffer[buf].buffer_offset; in draw_print_arrays()
301 ptr += draw->pt.vertex_buffer[buf].stride * ii; in draw_print_arrays()
444 struct pipe_vertex_buffer *vertex_buffer) in resolve_draw_info() argument
451 assert(vertex_buffer != NULL); in resolve_draw_info()
452 info->count = vertex_buffer->stride == 0 ? 0 : in resolve_draw_info()
453 target->internal_offset / vertex_buffer->stride; in resolve_draw_info()
485 resolve_draw_info(info, &resolved_info, &(draw->pt.vertex_buffer[0])); in draw_vbo()
523 draw->pt.vertex_buffer[i].stride, in draw_vbo()
524 draw->pt.vertex_buffer[i].buffer_offset, in draw_vbo()
533 index_limit = util_draw_max_index(draw->pt.vertex_buffer, in draw_vbo()
Ddraw_pt_fetch.c161 draw->pt.vertex_buffer[i].buffer_offset), in draw_pt_fetch_run()
162 draw->pt.vertex_buffer[i].stride, in draw_pt_fetch_run()
189 draw->pt.vertex_buffer[i].buffer_offset), in draw_pt_fetch_run_linear()
190 draw->pt.vertex_buffer[i].stride, in draw_pt_fetch_run_linear()
Ddraw_pt_fetch_shade_emit.c118 if (draw->pt.vertex_buffer[i].stride == 0) in fse_prepare()
163 draw->pt.vertex_buffer[i].buffer_offset), in fse_prepare()
164 draw->pt.vertex_buffer[i].stride, in fse_prepare()
/external/deqp-deps/amber/src/vulkan/
Dgraphics_pipeline.h62 Result Draw(const DrawArraysCommand* command, VertexBuffer* vertex_buffer);
77 const VertexBuffer* vertex_buffer,
81 Result SendVertexBufferDataIfNeeded(VertexBuffer* vertex_buffer);
Dgraphics_pipeline.cc535 const VertexBuffer* vertex_buffer, in CreateVkGraphicsPipeline() argument
552 if (vertex_buffer != nullptr) { in CreateVkGraphicsPipeline()
553 vertex_binding_desc = vertex_buffer->GetVkVertexInputBinding(); in CreateVkGraphicsPipeline()
554 const auto& vertex_attr_desc = vertex_buffer->GetVkVertexInputAttr(); in CreateVkGraphicsPipeline()
709 VertexBuffer* vertex_buffer) { in SendVertexBufferDataIfNeeded() argument
710 if (!vertex_buffer || vertex_buffer->VertexDataSent()) in SendVertexBufferDataIfNeeded()
712 return vertex_buffer->SendVertexData(command_.get()); in SendVertexBufferDataIfNeeded()
831 VertexBuffer* vertex_buffer) { in Draw() argument
844 vertex_buffer, pipeline_layout, &pipeline); in Draw()
858 r = SendVertexBufferDataIfNeeded(vertex_buffer); in Draw()
[all …]
Dengine_vulkan.cc212 if (!info.vertex_buffer) in CreatePipeline()
213 info.vertex_buffer = MakeUnique<VertexBuffer>(device_.get()); in CreatePipeline()
215 info.vertex_buffer->SetData(static_cast<uint8_t>(vtex_info.location), in CreatePipeline()
419 auto vertex_buffer = MakeUnique<VertexBuffer>(device_.get()); in DoDrawRect() local
420 vertex_buffer->SetData(0, buf.get()); in DoDrawRect()
429 Result r = graphics->Draw(&draw, vertex_buffer.get()); in DoDrawRect()
442 info.vertex_buffer.get()); in DoDrawArrays()
/external/webrtc/webrtc/test/win/
Dd3d_renderer.cc111 IDirect3DVertexBuffer9* vertex_buffer; in Init() local
117 &vertex_buffer, in Init()
122 vertex_buffer_ = vertex_buffer; in Init()
123 vertex_buffer->Release(); in Init()
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_emit.c329 for (int x = 0; x < ctx->vertex_buffer.count; ++x) { in etna_emit_state()
330 …/*14600*/ EMIT_STATE_RELOC(NFE_VERTEX_STREAMS_BASE_ADDR(x), &ctx->vertex_buffer.cvb[x].FE_VERTEX_S… in etna_emit_state()
332 for (int x = 0; x < ctx->vertex_buffer.count; ++x) { in etna_emit_state()
333 if (ctx->vertex_buffer.cvb[x].FE_VERTEX_STREAM_BASE_ADDR.bo) { in etna_emit_state()
334 …/*14640*/ EMIT_STATE(NFE_VERTEX_STREAMS_CONTROL(x), ctx->vertex_buffer.cvb[x].FE_VERTEX_STREAM_CON… in etna_emit_state()
338 for (int x = 0; x < ctx->vertex_buffer.count; ++x) { in etna_emit_state()
339 …/*00680*/ EMIT_STATE_RELOC(FE_VERTEX_STREAMS_BASE_ADDR(x), &ctx->vertex_buffer.cvb[x].FE_VERTEX_ST… in etna_emit_state()
341 for (int x = 0; x < ctx->vertex_buffer.count; ++x) { in etna_emit_state()
342 if (ctx->vertex_buffer.cvb[x].FE_VERTEX_STREAM_BASE_ADDR.bo) { in etna_emit_state()
343 …/*006A0*/ EMIT_STATE(FE_VERTEX_STREAMS_CONTROL(x), ctx->vertex_buffer.cvb[x].FE_VERTEX_STREAM_CONT… in etna_emit_state()
[all …]
/external/mesa3d/src/mesa/tnl/
Dt_vb_render.c122 struct vertex_buffer *VB = &tnl->vb; \
158 struct vertex_buffer *VB = &tnl->vb; in clip_elt_triangles()
212 struct vertex_buffer *VB = &tnl->vb; \
243 struct vertex_buffer *VB = &tnl->vb; in _tnl_RenderClippedPolygon()
268 struct vertex_buffer *VB = &tnl->vb; in run_render()
Dt_vb_texmat.c59 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb; in run_texmat_stage()
87 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb; in alloc_texmat_data()
Dt_vb_points.c55 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb; in run_point_stage()
83 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb; in alloc_point_data()
Dt_vb_texgen.c254 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb; in texgen_reflection_map_nv()
276 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb; in texgen_normal_map_nv()
304 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb; in texgen_sphere_map()
338 struct vertex_buffer *VB = &tnl->vb; in texgen()
486 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb; in run_texgen_stage()
562 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb; in alloc_texgen_data()
Dt_vb_light.c47 struct vertex_buffer *VB,
224 struct vertex_buffer *VB, struct light_stage_data *store) in prepare_materials()
333 struct vertex_buffer *VB = &tnl->vb; in run_lighting()
Dt_vb_cliptmp.h121 struct vertex_buffer *VB = &tnl->vb; in TAG()
189 struct vertex_buffer *VB = &tnl->vb; in TAG()
268 struct vertex_buffer *VB = &tnl->vb; in TAG()
Dt_vb_vertex.c142 struct vertex_buffer *VB = &tnl->vb; in run_vertex_stage()
237 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb; in init_vertex_stage()
/external/mesa3d/src/gallium/
DREADME.portability73 static inline struct vertex_buffer *vertex_buffer(struct buffer *buf)
75 return (struct vertex_buffer *) buf;
/external/mesa3d/src/mesa/tnl_dd/
Dt_dd_unfilled.h39 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb; in TAG()
103 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb; in TAG()
Dt_dd_tritmp.h116 struct vertex_buffer *VB = &TNL_CONTEXT( ctx )->vb; in TAG()
342 struct vertex_buffer *VB = &TNL_CONTEXT( ctx )->vb; in TAG()
583 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb; in TAG()
603 struct vertex_buffer *VB = &TNL_CONTEXT(ctx)->vb; in TAG()
634 struct vertex_buffer *VB = &TNL_CONTEXT( ctx )->vb; in TAG()
/external/mesa3d/src/gallium/auxiliary/util/
Du_vbuf.c157 struct pipe_vertex_buffer vertex_buffer[PIPE_MAX_ATTRIBS]; member
398 pipe_vertex_buffer_unreference(&mgr->vertex_buffer[i]); in u_vbuf_destroy()
433 vb = &mgr->vertex_buffer[i]; in u_vbuf_translate_buffers()
644 if (!mgr->vertex_buffer[vb_index].stride) { in u_vbuf_translate_begin()
905 pipe_vertex_buffer_unreference(&mgr->vertex_buffer[dst_index]); in u_vbuf_set_vertex_buffers()
916 struct pipe_vertex_buffer *orig_vb = &mgr->vertex_buffer[dst_index]; in u_vbuf_set_vertex_buffers()
1023 struct pipe_vertex_buffer *vb = &mgr->vertex_buffer[index]; in u_vbuf_upload_buffers()
1032 const uint8_t *ptr = mgr->vertex_buffer[index].buffer.user; in u_vbuf_upload_buffers()
1055 struct pipe_vertex_buffer *vb = &mgr->vertex_buffer[index]; in u_vbuf_upload_buffers()
1092 ptr = mgr->vertex_buffer[i].buffer.user; in u_vbuf_upload_buffers()
[all …]
/external/mesa3d/src/gallium/drivers/swr/
Dswr_scratch.h41 struct swr_scratch_space vertex_buffer; member
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_render.c172 choose_render(struct intel_context *intel, struct vertex_buffer *VB) in choose_render()
225 struct vertex_buffer *VB = &tnl->vb; in intel_run_render()

1234