Home
last modified time | relevance | path

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

/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_array.cpp86 struct pipe_vertex_buffer *vbuffer, unsigned *num_vbuffers, in setup_arrays() argument
110 vbuffer[bufidx].buffer.resource = in setup_arrays()
112 vbuffer[bufidx].is_user_buffer = false; in setup_arrays()
113 vbuffer[bufidx].buffer_offset = binding->Offset + in setup_arrays()
116 vbuffer[bufidx].buffer.user = attrib->Ptr; in setup_arrays()
117 vbuffer[bufidx].is_user_buffer = true; in setup_arrays()
118 vbuffer[bufidx].buffer_offset = 0; in setup_arrays()
120 vbuffer[bufidx].stride = binding->Stride; /* in bytes */ in setup_arrays()
143 vbuffer[bufidx].buffer.resource = in setup_arrays()
145 vbuffer[bufidx].is_user_buffer = false; in 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()
341 util_draw_vertex_buffer(pipe, cso, vbuffer, 0, in st_DrawTex()
348 pipe_resource_reference(&vbuffer, NULL); in st_DrawTex()
Dst_atom.h72 struct pipe_vertex_buffer *vbuffer, unsigned *num_vbuffers,
80 struct pipe_vertex_buffer *vbuffer, unsigned *num_vbuffers);
Dst_draw_feedback.c173 struct pipe_vertex_buffer *vbuffer = &vbuffers[buf]; in st_feedback_draw_vbo() local
175 if (vbuffer->is_user_buffer) { in st_feedback_draw_vbo()
176 draw_set_mapped_vertex_buffer(draw, buf, vbuffer->buffer.user, ~0); in st_feedback_draw_vbo()
178 void *map = pipe_buffer_map(pipe, vbuffer->buffer.resource, in st_feedback_draw_vbo()
181 vbuffer->buffer.resource->width0); in st_feedback_draw_vbo()
/third_party/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, 0, false, &vbuffer); in util_draw_vertex_buffer()
67 pipe->set_vertex_buffers(pipe, vbuf_slot, 1, 0, false, &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 …]
Du_vertex_state_cache.c78 key.input.vbuffer.stride = buffer->stride; in util_vertex_state_cache_get()
80 key.input.vbuffer.buffer_offset = buffer->buffer_offset; in util_vertex_state_cache_get()
81 key.input.vbuffer.buffer = buffer->buffer; in util_vertex_state_cache_get()
Du_helpers.c515 pipe_vertex_buffer_reference(&state->input.vbuffer, buffer); in util_init_pipe_vertex_state()
/third_party/mesa3d/src/gallium/frontends/vdpau/
Doutput.c446 struct pipe_video_buffer vtmpl, *vbuffer; in vlVdpOutputSurfacePutBitsYCbCr() local
483 vbuffer = pipe->create_video_buffer(pipe, &vtmpl); in vlVdpOutputSurfacePutBitsYCbCr()
484 if (!vbuffer) { in vlVdpOutputSurfacePutBitsYCbCr()
489 sampler_views = vbuffer->get_sampler_view_planes(vbuffer); in vlVdpOutputSurfacePutBitsYCbCr()
491 vbuffer->destroy(vbuffer); in vlVdpOutputSurfacePutBitsYCbCr()
520 vl_compositor_set_buffer_layer(cstate, compositor, 0, vbuffer, NULL, NULL, VL_COMPOSITOR_WEAVE); in vlVdpOutputSurfacePutBitsYCbCr()
524 vbuffer->destroy(vbuffer); in vlVdpOutputSurfacePutBitsYCbCr()
529 vbuffer->destroy(vbuffer); in vlVdpOutputSurfacePutBitsYCbCr()
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pt_fetch.c155 ((char *)draw->pt.user.vbuffer[i].map + in draw_pt_fetch_run()
183 ((char *)draw->pt.user.vbuffer[i].map + in draw_pt_fetch_run_linear()
Ddraw_pt.c286 ubyte *ptr = (ubyte *) draw->pt.user.vbuffer[buf].map; in draw_print_arrays()
567 (int) draw->pt.user.vbuffer[i].size, in draw_vbo()
568 draw->pt.user.vbuffer[i].map); in draw_vbo()
Ddraw_pt_fetch_shade_emit.c161 ((const ubyte *) draw->pt.user.vbuffer[i].map + in fse_prepare()
Ddraw_private.h235 struct draw_vertex_buffer vbuffer[PIPE_MAX_ATTRIBS]; member
Ddraw_context.c446 draw->pt.user.vbuffer[attr].map = buffer; in draw_set_mapped_vertex_buffer()
447 draw->pt.user.vbuffer[attr].size = size; in draw_set_mapped_vertex_buffer()
Ddraw_pt_fetch_shade_pipeline_llvm.c624 draw->pt.user.vbuffer, in llvm_pipeline_generic()
/third_party/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, 0, false, &vbuffer); in r600_draw_rectangle()
/third_party/mesa3d/src/gallium/auxiliary/hud/
Dhud_context.c78 struct pipe_vertex_buffer vbuffer = {0}; in hud_draw_colored_prims() local
92 &vbuffer.buffer_offset, &vbuffer.buffer.resource); in hud_draw_colored_prims()
94 vbuffer.stride = 2 * sizeof(float); in hud_draw_colored_prims()
96 cso_set_vertex_buffers(cso, 0, 1, 0, false, &vbuffer); in hud_draw_colored_prims()
97 pipe_resource_reference(&vbuffer.buffer.resource, NULL); in hud_draw_colored_prims()
/third_party/mesa3d/src/gallium/include/pipe/
Dp_state.h752 struct pipe_vertex_buffer vbuffer; member
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_draw.cpp161 if (!vstate->input.vbuffer.buffer.resource) in zink_bind_vertex_state()
167 struct zink_resource *res = zink_resource(vstate->input.vbuffer.buffer.resource); in zink_bind_vertex_state()
169 VkDeviceSize offset = vstate->input.vbuffer.buffer_offset; in zink_bind_vertex_state()
909 struct zink_resource *res = zink_resource(vstate->input.vbuffer.buffer.resource); in zink_draw_vertex_state()
Dzink_state.c729 pipe_vertex_buffer_unreference(&vstate->input.vbuffer); in zink_vertex_state_destroy()
/third_party/mesa3d/src/util/indices/
Du_primconvert.c359 … &vstate->input.vbuffer, in util_primconvert_draw_vertex_state()
/third_party/mesa3d/src/compiler/
Dbuiltin_type_macros.h240 DECL_TYPE(vbuffer, GL_IMAGE_BUFFER, GLSL_TYPE_IMAGE, GLSL_SAMPLER_DIM_BUF, 0, 0, GLSL_TYPE_VOID)
/third_party/mesa3d/src/gallium/auxiliary/driver_noop/
Dnoop_pipe.c741 pipe_vertex_buffer_unreference(&state->input.vbuffer); in noop_vertex_state_destroy()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state_draw.cpp1968 if (vstate->b.input.vbuffer.buffer.resource != vstate->b.input.indexbuf) { in si_upload_and_prefetch_VB_descriptors()
1970 si_resource(vstate->b.input.vbuffer.buffer.resource), in si_upload_and_prefetch_VB_descriptors()
Dsi_state.c5258 si_set_vertex_buffer_descriptor(sscreen, &state->velems, &state->b.input.vbuffer, i, in si_create_vertex_state()
5268 pipe_vertex_buffer_unreference(&state->input.vbuffer); in si_vertex_state_destroy()