Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/state_trackers/nine/
Dstateblock9.c256 if (mask->changed.vtxbuf | mask->changed.stream_freq) { in nine_state_copy_common()
257 DBG("vtxbuf/stream_freq: %x/%x\n", mask->changed.vtxbuf, mask->changed.stream_freq); in nine_state_copy_common()
258 uint32_t m = mask->changed.vtxbuf | mask->changed.stream_freq; in nine_state_copy_common()
260 if (mask->changed.vtxbuf & (1 << i)) { in nine_state_copy_common()
266 dst->vtxbuf[i].buffer_offset = src->vtxbuf[i].buffer_offset; in nine_state_copy_common()
267 dst->vtxbuf[i].stride = src->vtxbuf[i].stride; in nine_state_copy_common()
274 dst->changed.vtxbuf |= mask->changed.vtxbuf; in nine_state_copy_common()
444 dst->vtxbuf[i].buffer_offset = src->vtxbuf[i].buffer_offset; in nine_state_copy_common_all()
445 dst->vtxbuf[i].stride = src->vtxbuf[i].stride; in nine_state_copy_common_all()
450 dst->changed.vtxbuf = (1ULL << MaxStreams) - 1; in nine_state_copy_common_all()
Dnine_state.c803 context->changed.vtxbuf |= 1 << context->dummy_vbo_bound_at; in update_vertex_elements()
805 context->changed.vtxbuf |= 1 << dummy_vbo_stream; in update_vertex_elements()
820 uint32_t mask = context->changed.vtxbuf; in update_vertex_buffers()
840 if (context->vtxbuf[i].buffer.resource) in update_vertex_buffers()
841 pipe->set_vertex_buffers(pipe, i, 1, &context->vtxbuf[i]); in update_vertex_buffers()
847 context->changed.vtxbuf = 0; in update_vertex_buffers()
1167 if (context->changed.vtxbuf) in nine_update_state()
1439 context->vtxbuf[i].stride = Stride; in CSMT_ITEM_NO_WAIT()
1440 context->vtxbuf[i].buffer_offset = OffsetInBytes; in CSMT_ITEM_NO_WAIT()
1441 pipe_resource_reference(&context->vtxbuf[i].buffer.resource, res); in CSMT_ITEM_NO_WAIT()
[all …]
Dnine_state.h167 uint32_t vtxbuf; member
206 struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS]; /* vtxbuf.buffer unused */ member
224 uint32_t vtxbuf; member
269 struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS]; member
511 struct pipe_vertex_buffer *vtxbuf);
Ddevice9.c2348 dst->changed.vtxbuf = (1ULL << This->caps.MaxStreams) - 1; in NineDevice9_CreateStateBlock()
2349 dst->changed.stream_freq = dst->changed.vtxbuf; in NineDevice9_CreateStateBlock()
2802 struct pipe_vertex_buffer vtxbuf; in NineDevice9_DrawPrimitiveUP() local
2812 vtxbuf.stride = VertexStreamZeroStride; in NineDevice9_DrawPrimitiveUP()
2813 vtxbuf.buffer_offset = 0; in NineDevice9_DrawPrimitiveUP()
2814 vtxbuf.is_user_buffer = true; in NineDevice9_DrawPrimitiveUP()
2815 vtxbuf.buffer.user = pVertexStreamZeroData; in NineDevice9_DrawPrimitiveUP()
2818 vtxbuf.is_user_buffer = false; in NineDevice9_DrawPrimitiveUP()
2819 vtxbuf.buffer.resource = NULL; in NineDevice9_DrawPrimitiveUP()
2825 &vtxbuf.buffer_offset, in NineDevice9_DrawPrimitiveUP()
[all …]
Dbuffer9.c196 device->state.vtxbuf[i].buffer_offset, in NineBuffer9_RebindIfRequired()
197 device->state.vtxbuf[i].stride); in NineBuffer9_RebindIfRequired()
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_vbo.c88 *base = nv30->vbo_min_index * nv30->vtxbuf[vbi].stride; in nv30_vbuf_range()
90 nv30->vbo_min_index + 1) * nv30->vtxbuf[vbi].stride; in nv30_vbuf_range()
104 vb = &nv30->vtxbuf[i]; in nv30_prevalidate_vbufs()
140 struct pipe_vertex_buffer *vb = &nv30->vtxbuf[b]; in nv30_update_user_vbufs()
176 nouveau_buffer_release_gpu_storage(nv04_resource(nv30->vtxbuf[i].buffer.resource)); in nv30_release_user_vbufs()
217 vb = &nv30->vtxbuf[ve->vertex_buffer_index];
235 vb = &nv30->vtxbuf[ve->vertex_buffer_index];
587 if (!nv30->vtxbuf[i].buffer.resource)
589 if (nv30->vtxbuf[i].buffer.resource->flags & PIPE_RESOURCE_FLAG_MAP_COHERENT)
Dnv30_resource.c42 if (!nv30->vtxbuf[i].buffer.resource) in nv30_memory_barrier()
44 if (nv30->vtxbuf[i].buffer.resource->flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT) in nv30_memory_barrier()
Dnv30_draw.c396 draw_set_vertex_buffers(draw, 0, nv30->num_vtxbufs, nv30->vtxbuf); in nv30_render_vbo()
422 const void *map = nv30->vtxbuf[i].is_user_buffer ? in nv30_render_vbo()
423 nv30->vtxbuf[i].buffer.user : NULL; in nv30_render_vbo()
425 if (nv30->vtxbuf[i].buffer.resource) in nv30_render_vbo()
426 map = pipe_buffer_map(pipe, nv30->vtxbuf[i].buffer.resource, in nv30_render_vbo()
Dnv30_push.c211 struct pipe_vertex_buffer *vb = &nv30->vtxbuf[i]; in nv30_push_vbo()
284 if (nv30->vtxbuf[i].buffer.resource) { in nv30_push_vbo()
285 nouveau_resource_unmap(nv04_resource(nv30->vtxbuf[i].buffer.resource)); in nv30_push_vbo()
Dnv30_context.h111 struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS]; member
Dnv30_context.c118 if (nv30->vtxbuf[i].buffer.resource == res) { in nv30_invalidate_resource_storage()
Dnv30_state.c435 util_set_vertex_buffers_count(nv30->vtxbuf, &nv30->num_vtxbufs, in nv30_set_vertex_buffers()
Dnv30_miptree.c231 util_blitter_save_vertex_buffer_slot(nv30->blitter, nv30->vtxbuf); in nv30_blit()
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_context.c65 if (!nv50->vtxbuf[i].buffer.resource && !nv50->vtxbuf[i].is_user_buffer) in nv50_memory_barrier()
67 if (nv50->vtxbuf[i].buffer.resource->flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT) in nv50_memory_barrier()
143 pipe_vertex_buffer_unreference(&nv50->vtxbuf[i]); in nv50_context_unreference_resources()
227 if (nv50->vtxbuf[i].buffer.resource == res) { in nv50_invalidate_resource_storage()
Dnv50_vbo.c203 *size = nv50->vtxbuf[vbi].buffer.resource->width0; in nv50_user_vbuf_range()
207 *base = nv50->vb_elt_first * nv50->vtxbuf[vbi].stride; in nv50_user_vbuf_range()
208 *size = nv50->vb_elt_limit * nv50->vtxbuf[vbi].stride + in nv50_user_vbuf_range()
222 const struct pipe_vertex_buffer *vb = &nv50->vtxbuf[b]; in nv50_upload_user_buffers()
254 vb = &nv50->vtxbuf[b]; in nv50_update_user_vbufs()
320 struct nv04_resource *buf = nv04_resource(nv50->vtxbuf[i].buffer.resource); in nv50_vertex_arrays_validate()
321 if (!nv50->vtxbuf[i].is_user_buffer && in nv50_vertex_arrays_validate()
348 vb = &nv50->vtxbuf[b]; in nv50_vertex_arrays_validate()
378 vb = &nv50->vtxbuf[b]; in nv50_vertex_arrays_validate()
Dnv50_context.h143 struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS]; member
Dnv50_push.c264 const struct pipe_vertex_buffer *vb = &nv50->vtxbuf[i]; in nv50_push_vbo()
Dnv50_state.c1050 util_set_vertex_buffers_count(nv50->vtxbuf, &nv50->num_vtxbufs, vb, in nv50_set_vertex_buffers()
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_context.c65 if (!nvc0->vtxbuf[i].buffer.resource && !nvc0->vtxbuf[i].is_user_buffer) in nvc0_memory_barrier()
67 if (nvc0->vtxbuf[i].buffer.resource->flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT) in nvc0_memory_barrier()
146 pipe_vertex_buffer_unreference(&nvc0->vtxbuf[i]); in nvc0_context_unreference_resources()
267 if (nvc0->vtxbuf[i].buffer.resource == res) { in nvc0_invalidate_resource_storage()
Dnvc0_vbo.c175 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[ve->vertex_buffer_index]; in nvc0_set_constant_vertex_attrib()
209 *base = nvc0->instance_off * nvc0->vtxbuf[vbi].stride; in nvc0_user_vbuf_range()
210 *size = (nvc0->instance_max / div) * nvc0->vtxbuf[vbi].stride + in nvc0_user_vbuf_range()
215 *base = nvc0->vb_elt_first * nvc0->vtxbuf[vbi].stride; in nvc0_user_vbuf_range()
216 *size = nvc0->vb_elt_limit * nvc0->vtxbuf[vbi].stride + in nvc0_user_vbuf_range()
242 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[b]; in nvc0_update_user_vbufs()
292 address = nouveau_scratch_data(&nvc0->base, nvc0->vtxbuf[b].buffer.user, in nvc0_update_user_vbufs_shared()
335 vb = &nvc0->vtxbuf[b]; in nvc0_validate_vertex_buffers()
387 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[b]; in nvc0_validate_vertex_buffers_shared()
Dnvc0_vbo_translate.c70 const struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[i]; in nvc0_vertex_configure_translate()
104 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[ve->vertex_buffer_index]; in nvc0_push_map_edgeflag()
590 nouveau_resource_unmap(nv04_resource(nvc0->vtxbuf[i].buffer.resource)); in nvc0_push_vbo()
Dnvc0_surface.c1206 uint64_t vtxbuf; in nvc0_blit_3d() local
1293 vbuf = nouveau_scratch_get(&nvc0->base, length, &vtxbuf, &vtxbuf_bo); in nvc0_blit_3d()
1306 PUSH_DATAh(push, vtxbuf); in nvc0_blit_3d()
1307 PUSH_DATA (push, vtxbuf); in nvc0_blit_3d()
1310 PUSH_DATAh(push, vtxbuf + length - 1); in nvc0_blit_3d()
1311 PUSH_DATA (push, vtxbuf + length - 1); in nvc0_blit_3d()
Dnvc0_context.h206 struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS]; member
Dnvc0_state.c931 util_set_vertex_buffers_count(nvc0->vtxbuf, &nvc0->num_vtxbufs, vb, in nvc0_set_vertex_buffers()