Home
last modified time | relevance | path

Searched refs:vbuffer (Results 1 – 20 of 20) sorted by relevance

/external/mesa3d/src/gallium/auxiliary/util/
Du_draw_quad.c51 struct pipe_vertex_buffer vbuffer; in util_draw_vertex_buffer() local
56 memset(&vbuffer, 0, sizeof(vbuffer)); in util_draw_vertex_buffer()
57 vbuffer.buffer.resource = vbuf; in util_draw_vertex_buffer()
58 vbuffer.stride = num_attribs * 4 * sizeof(float); /* vertex size */ in util_draw_vertex_buffer()
59 vbuffer.buffer_offset = offset; in util_draw_vertex_buffer()
64 cso_set_vertex_buffers(cso, vbuf_slot, 1, &vbuffer); in util_draw_vertex_buffer()
67 pipe->set_vertex_buffers(pipe, vbuf_slot, 1, &vbuffer); in util_draw_vertex_buffer()
81 struct pipe_vertex_buffer vbuffer = {0}; in util_draw_user_vertex_buffer() local
85 vbuffer.is_user_buffer = true; in util_draw_user_vertex_buffer()
86 vbuffer.buffer.user = buffer; in util_draw_user_vertex_buffer()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_array.c136 struct pipe_vertex_buffer *vbuffer, unsigned *num_vbuffers, in st_setup_arrays() argument
165 vbuffer[bufidx].buffer.resource = stobj ? stobj->buffer : NULL; in st_setup_arrays()
166 vbuffer[bufidx].is_user_buffer = false; in st_setup_arrays()
167 vbuffer[bufidx].buffer_offset = binding->Offset + in st_setup_arrays()
170 vbuffer[bufidx].buffer.user = attrib->Ptr; in st_setup_arrays()
171 vbuffer[bufidx].is_user_buffer = true; in st_setup_arrays()
172 vbuffer[bufidx].buffer_offset = 0; in st_setup_arrays()
174 vbuffer[bufidx].stride = binding->Stride; /* in bytes */ in st_setup_arrays()
195 vbuffer[bufidx].buffer.resource = stobj ? stobj->buffer : NULL; in st_setup_arrays()
196 vbuffer[bufidx].is_user_buffer = false; in st_setup_arrays()
[all …]
Dst_cb_drawtex.c168 struct pipe_resource *vbuffer = NULL; in st_DrawTex() local
217 &offset, &vbuffer, (void **) &vbuf); in st_DrawTex()
218 if (!vbuffer) { in st_DrawTex()
337 util_draw_vertex_buffer(pipe, cso, vbuffer, 0, in st_DrawTex()
343 pipe_resource_reference(&vbuffer, NULL); in st_DrawTex()
Dst_atom.h67 struct pipe_vertex_buffer *vbuffer, unsigned *num_vbuffers,
75 struct pipe_vertex_buffer *vbuffer, unsigned *num_vbuffers);
Dst_draw_feedback.c172 struct pipe_vertex_buffer *vbuffer = &vbuffers[buf]; in st_feedback_draw_vbo() local
174 if (vbuffer->is_user_buffer) { in st_feedback_draw_vbo()
175 draw_set_mapped_vertex_buffer(draw, buf, vbuffer->buffer.user, ~0); in st_feedback_draw_vbo()
177 void *map = pipe_buffer_map(pipe, vbuffer->buffer.resource, in st_feedback_draw_vbo()
180 vbuffer->buffer.resource->width0); in st_feedback_draw_vbo()
/external/mesa3d/src/gallium/frontends/vdpau/
Doutput.c443 struct pipe_video_buffer vtmpl, *vbuffer; in vlVdpOutputSurfacePutBitsYCbCr() local
477 vbuffer = pipe->create_video_buffer(pipe, &vtmpl); in vlVdpOutputSurfacePutBitsYCbCr()
478 if (!vbuffer) { in vlVdpOutputSurfacePutBitsYCbCr()
483 sampler_views = vbuffer->get_sampler_view_planes(vbuffer); in vlVdpOutputSurfacePutBitsYCbCr()
485 vbuffer->destroy(vbuffer); in vlVdpOutputSurfacePutBitsYCbCr()
514 vl_compositor_set_buffer_layer(cstate, compositor, 0, vbuffer, NULL, NULL, VL_COMPOSITOR_WEAVE); in vlVdpOutputSurfacePutBitsYCbCr()
518 vbuffer->destroy(vbuffer); in vlVdpOutputSurfacePutBitsYCbCr()
523 vbuffer->destroy(vbuffer); in vlVdpOutputSurfacePutBitsYCbCr()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pt_fetch.c160 ((char *)draw->pt.user.vbuffer[i].map + in draw_pt_fetch_run()
188 ((char *)draw->pt.user.vbuffer[i].map + in draw_pt_fetch_run_linear()
Ddraw_pt.c294 ubyte *ptr = (ubyte *) draw->pt.user.vbuffer[buf].map; in draw_print_arrays()
525 (int) draw->pt.user.vbuffer[i].size, in draw_vbo()
526 draw->pt.user.vbuffer[i].map); in draw_vbo()
Ddraw_private.h203 struct draw_vertex_buffer vbuffer[PIPE_MAX_ATTRIBS]; member
Ddraw_pt_fetch_shade_emit.c162 ((const ubyte *) draw->pt.user.vbuffer[i].map + in fse_prepare()
Ddraw_pt_fetch_emit.c172 ((char *)draw->pt.user.vbuffer[i].map + in fetch_emit_prepare()
Ddraw_context.c448 draw->pt.user.vbuffer[attr].map = buffer; in draw_set_mapped_vertex_buffer()
449 draw->pt.user.vbuffer[attr].size = size; in draw_set_mapped_vertex_buffer()
Ddraw_pt_fetch_shade_pipeline_llvm.c626 draw->pt.user.vbuffer, in llvm_pipeline_generic()
/external/skqp/src/gpu/vk/
DGrVkCommandBuffer.cpp182 const GrVkVertexBuffer* vbuffer) { in bindInputBuffer() argument
183 VkBuffer vkBuffer = vbuffer->buffer(); in bindInputBuffer()
189 VkDeviceSize offset = vbuffer->offset(); in bindInputBuffer()
196 addResource(vbuffer->resource()); in bindInputBuffer()
DGrVkCommandBuffer.h48 void bindInputBuffer(GrVkGpu* gpu, uint32_t binding, const GrVkVertexBuffer* vbuffer);
/external/skqp/src/gpu/ops/
DGrFillRectOp.cpp189 sk_sp<const GrBuffer> vbuffer; in onPrepareDraws() local
195 &vbuffer, &vertexOffsetInBuffer); in onPrepareDraws()
226 mesh->setVertexData(std::move(vbuffer), vertexOffsetInBuffer); in onPrepareDraws()
DGrTextureOp.cpp398 sk_sp<const GrBuffer> vbuffer; in onPrepareDraws() local
413 vertexSize, meshVertexCnt, numQuadVerticesLeft, &vbuffer, in onPrepareDraws()
430 meshes[m].setVertexData(vbuffer, vertexOffsetInBuffer); in onPrepareDraws()
/external/mesa3d/src/gallium/drivers/r600/
Dr600_pipe_common.c205 struct pipe_vertex_buffer vbuffer = {}; in r600_draw_rectangle() local
206 vbuffer.buffer.resource = buf; in r600_draw_rectangle()
207 vbuffer.stride = 2 * 4 * sizeof(float); /* vertex size */ in r600_draw_rectangle()
208 vbuffer.buffer_offset = offset; in r600_draw_rectangle()
210 rctx->b.set_vertex_buffers(&rctx->b, blitter->vb_slot, 1, &vbuffer); in r600_draw_rectangle()
/external/mesa3d/src/gallium/auxiliary/hud/
Dhud_context.c76 struct pipe_vertex_buffer vbuffer = {0}; in hud_draw_colored_prims() local
90 &vbuffer.buffer_offset, &vbuffer.buffer.resource); in hud_draw_colored_prims()
92 vbuffer.stride = 2 * sizeof(float); in hud_draw_colored_prims()
94 cso_set_vertex_buffers(cso, 0, 1, &vbuffer); in hud_draw_colored_prims()
95 pipe_resource_reference(&vbuffer.buffer.resource, NULL); in hud_draw_colored_prims()
/external/mesa3d/src/compiler/
Dbuiltin_type_macros.h193 DECL_TYPE(vbuffer, GL_IMAGE_BUFFER, GLSL_TYPE_IMAGE, GLSL_SAMPLER_DIM_BUF, 0, 0, GLSL_TYPE_VOID)