Home
last modified time | relevance | path

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

/third_party/mesa3d/src/gallium/frontends/nine/
H A Dstateblock9.c275 if (mask->changed.vtxbuf | mask->changed.stream_freq) { in nine_state_copy_common()
276 DBG("vtxbuf/stream_freq: %x/%x\n", mask->changed.vtxbuf, mask->changed.stream_freq); in nine_state_copy_common()
277 uint32_t m = mask->changed.vtxbuf | mask->changed.stream_freq; in nine_state_copy_common()
279 if (mask->changed.vtxbuf & (1 << i)) { in nine_state_copy_common()
285 dst->vtxbuf[i].buffer_offset = src->vtxbuf[i].buffer_offset; in nine_state_copy_common()
286 dst->vtxbuf[i].stride = src->vtxbuf[i].stride; in nine_state_copy_common()
294 * dst->changed.vtxbuf | in nine_state_copy_common()
[all...]
H A Dnine_state.c907 context->changed.vtxbuf |= 1 << context->dummy_vbo_bound_at; in update_vertex_elements()
909 context->changed.vtxbuf |= 1 << dummy_vbo_stream; in update_vertex_elements()
925 uint32_t mask = context->changed.vtxbuf; in update_vertex_buffers()
945 if (context->vtxbuf[i].buffer.resource) in update_vertex_buffers()
946 pipe->set_vertex_buffers(pipe, i, 1, 0, false, &context->vtxbuf[i]); in update_vertex_buffers()
952 context->changed.vtxbuf = 0; in update_vertex_buffers()
1264 if (context->changed.vtxbuf) in nine_update_state()
1561 if (context->vtxbuf[i].buffer.resource == res && in CSMT_ITEM_NO_WAIT()
1562 context->vtxbuf[i].buffer_offset == OffsetInBytes && in CSMT_ITEM_NO_WAIT()
1563 context->vtxbuf[ in CSMT_ITEM_NO_WAIT()
3125 struct pipe_vertex_buffer vtxbuf; update_vertex_buffers_sw() local
[all...]
H A Dnine_state.h170 uint32_t vtxbuf; member
209 struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS]; /* vtxbuf.buffer unused */ member
227 uint32_t vtxbuf; member
276 struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS]; member
H A Ddevice9.c2539 dst->changed.vtxbuf = (1ULL << This->caps.MaxStreams) - 1; in NineDevice9_CreateStateBlock()
2540 dst->changed.stream_freq = dst->changed.vtxbuf; in NineDevice9_CreateStateBlock()
3008 unsigned stride = This->state.vtxbuf[i].stride; in NineDevice9_DrawPrimitive()
3010 unsigned start = This->state.vtxbuf[i].buffer_offset + StartVertex * stride; in NineDevice9_DrawPrimitive()
3055 uint32_t stride = This->state.vtxbuf[i].stride; in NineDevice9_DrawIndexedPrimitive()
3059 start = MAX2(0, This->state.vtxbuf[i].buffer_offset+(MinVertexIndex+BaseVertexIndex)*stride); in NineDevice9_DrawIndexedPrimitive()
3060 stop = This->state.vtxbuf[i].buffer_offset+(MinVertexIndex+NumVertices+BaseVertexIndex)*stride; in NineDevice9_DrawIndexedPrimitive()
3720 state->changed.vtxbuf |= 1 << StreamNumber; in NineDevice9_SetStreamSource()
3721 state->vtxbuf[i].stride = Stride; in NineDevice9_SetStreamSource()
3722 state->vtxbuf[ in NineDevice9_SetStreamSource()
[all...]
H A Dbuffer9.c234 device->state.vtxbuf[i].buffer_offset + offset, in NineBuffer9_RebindIfRequired()
235 device->state.vtxbuf[i].stride); in NineBuffer9_RebindIfRequired()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
H A Dnv30_vbo.c87 *base = nv30->vbo_min_index * nv30->vtxbuf[vbi].stride; in nv30_vbuf_range()
89 nv30->vbo_min_index + 1) * nv30->vtxbuf[vbi].stride; in nv30_vbuf_range()
103 vb = &nv30->vtxbuf[i]; in nv30_prevalidate_vbufs()
139 struct pipe_vertex_buffer *vb = &nv30->vtxbuf[b]; in nv30_update_user_vbufs()
175 nouveau_buffer_release_gpu_storage(nv04_resource(nv30->vtxbuf[i].buffer.resource)); in nv30_release_user_vbufs()
216 vb = &nv30->vtxbuf[ve->vertex_buffer_index];
234 vb = &nv30->vtxbuf[ve->vertex_buffer_index];
604 if (!nv30->vtxbuf[i].buffer.resource)
606 if (nv30->vtxbuf[i].buffer.resource->flags & PIPE_RESOURCE_FLAG_MAP_COHERENT)
H A 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()
H A Dnv30_push.c212 struct pipe_vertex_buffer *vb = &nv30->vtxbuf[i]; in nv30_push_vbo()
285 if (nv30->vtxbuf[i].buffer.resource) { in nv30_push_vbo()
286 nouveau_resource_unmap(nv04_resource(nv30->vtxbuf[i].buffer.resource)); in nv30_push_vbo()
H A Dnv30_draw.c398 draw_set_vertex_buffers(draw, 0, nv30->num_vtxbufs, 0, nv30->vtxbuf); in nv30_render_vbo()
424 const void *map = nv30->vtxbuf[i].is_user_buffer ? in nv30_render_vbo()
425 nv30->vtxbuf[i].buffer.user : NULL; in nv30_render_vbo()
427 if (nv30->vtxbuf[i].buffer.resource) in nv30_render_vbo()
428 map = pipe_buffer_map(pipe, nv30->vtxbuf[i].buffer.resource, in nv30_render_vbo()
H A Dnv30_context.h111 struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS]; member
H A Dnv30_context.c118 if (nv30->vtxbuf[i].buffer.resource == res) { in nv30_invalidate_resource_storage()
H A Dnv30_state.c448 util_set_vertex_buffers_count(nv30->vtxbuf, &nv30->num_vtxbufs, in nv30_set_vertex_buffers()
H A Dnv30_miptree.c250 util_blitter_save_vertex_buffer_slot(nv30->blitter, nv30->vtxbuf); in nv30_blit()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
H A Dnv50_context.c67 if (!nv50->vtxbuf[i].buffer.resource && !nv50->vtxbuf[i].is_user_buffer) in nv50_memory_barrier()
69 if (nv50->vtxbuf[i].buffer.resource->flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT) in nv50_memory_barrier()
161 pipe_vertex_buffer_unreference(&nv50->vtxbuf[i]); in nv50_context_unreference_resources()
245 if (nv50->vtxbuf[i].buffer.resource == res) { in nv50_invalidate_resource_storage()
H A Dnv50_vbo.c194 *base = nv50->instance_off * nv50->vtxbuf[vbi].stride; in nv50_user_vbuf_range()
195 *size = (nv50->instance_max / div) * nv50->vtxbuf[vbi].stride + in nv50_user_vbuf_range()
200 *base = nv50->vb_elt_first * nv50->vtxbuf[vbi].stride; in nv50_user_vbuf_range()
201 *size = nv50->vb_elt_limit * nv50->vtxbuf[vbi].stride + in nv50_user_vbuf_range()
215 const struct pipe_vertex_buffer *vb = &nv50->vtxbuf[b]; in nv50_upload_user_buffers()
247 vb = &nv50->vtxbuf[b]; in nv50_update_user_vbufs()
313 struct nv04_resource *buf = nv04_resource(nv50->vtxbuf[i].buffer.resource); in nv50_vertex_arrays_validate()
314 if (!nv50->vtxbuf[i].is_user_buffer && in nv50_vertex_arrays_validate()
341 vb = &nv50->vtxbuf[b]; in nv50_vertex_arrays_validate()
371 vb = &nv50->vtxbuf[ in nv50_vertex_arrays_validate()
[all...]
H A Dnv50_context.h170 struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS]; member
H A Dnv50_push.c266 const struct pipe_vertex_buffer *vb = &nv50->vtxbuf[i]; in nv50_push_vbo()
H A Dnv50_state.c1083 util_set_vertex_buffers_count(nv50->vtxbuf, &nv50->num_vtxbufs, vb, in nv50_set_vertex_buffers()
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
H A Dnvc0_vbo.c176 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[ve->vertex_buffer_index]; in nvc0_set_constant_vertex_attrib()
208 *base = nvc0->instance_off * nvc0->vtxbuf[vbi].stride; in nvc0_user_vbuf_range()
209 *size = (nvc0->instance_max / div) * nvc0->vtxbuf[vbi].stride + in nvc0_user_vbuf_range()
214 *base = nvc0->vb_elt_first * nvc0->vtxbuf[vbi].stride; in nvc0_user_vbuf_range()
215 *size = nvc0->vb_elt_limit * nvc0->vtxbuf[vbi].stride + in nvc0_user_vbuf_range()
241 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[b]; in nvc0_update_user_vbufs()
291 address = nouveau_scratch_data(&nvc0->base, nvc0->vtxbuf[b].buffer.user, in nvc0_update_user_vbufs_shared()
334 vb = &nvc0->vtxbuf[b]; in nvc0_validate_vertex_buffers()
390 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[b]; in nvc0_validate_vertex_buffers_shared()
H A Dnvc0_context.c115 if (!nvc0->vtxbuf[i].buffer.resource && !nvc0->vtxbuf[i].is_user_buffer) in nvc0_memory_barrier()
117 if (nvc0->vtxbuf[i].buffer.resource->flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT) in nvc0_memory_barrier()
202 pipe_vertex_buffer_unreference(&nvc0->vtxbuf[i]); in nvc0_context_unreference_resources()
323 if (nvc0->vtxbuf[i].buffer.resource == res) { in nvc0_invalidate_resource_storage()
H A Dnvc0_vbo_translate.c71 const struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[i]; in nvc0_vertex_configure_translate()
109 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[ve->vertex_buffer_index]; in nvc0_push_map_edgeflag()
682 nouveau_resource_unmap(nv04_resource(nvc0->vtxbuf[i].buffer.resource)); in nvc0_push_vbo()
H A Dnvc0_surface.c1205 uint64_t vtxbuf; in nvc0_blit_3d() local
1320 vbuf = nouveau_scratch_get(&nvc0->base, length, &vtxbuf, &vtxbuf_bo); in nvc0_blit_3d()
1335 PUSH_DATAh(push, vtxbuf); in nvc0_blit_3d()
1336 PUSH_DATA (push, vtxbuf); in nvc0_blit_3d()
1342 PUSH_DATAh(push, vtxbuf + length - 1); in nvc0_blit_3d()
1343 PUSH_DATA (push, vtxbuf + length - 1); in nvc0_blit_3d()
H A Dnvc0_context.h214 struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS]; member
H A Dnvc0_state.c1027 util_set_vertex_buffers_count(nvc0->vtxbuf, &nvc0->num_vtxbufs, vb, in nvc0_set_vertex_buffers()

Completed in 30 milliseconds