/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | stateblock9.c | 275 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 D | nine_state.c | 907 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 D | nine_state.h | 170 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 D | device9.c | 2539 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 D | buffer9.c | 234 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 D | nv30_vbo.c | 87 *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 D | nv30_resource.c | 42 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 D | nv30_push.c | 212 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 D | nv30_draw.c | 398 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 D | nv30_context.h | 111 struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS]; member
|
H A D | nv30_context.c | 118 if (nv30->vtxbuf[i].buffer.resource == res) { in nv30_invalidate_resource_storage()
|
H A D | nv30_state.c | 448 util_set_vertex_buffers_count(nv30->vtxbuf, &nv30->num_vtxbufs, in nv30_set_vertex_buffers()
|
H A D | nv30_miptree.c | 250 util_blitter_save_vertex_buffer_slot(nv30->blitter, nv30->vtxbuf); in nv30_blit()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
H A D | nv50_context.c | 67 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 D | nv50_vbo.c | 194 *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 D | nv50_context.h | 170 struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS]; member
|
H A D | nv50_push.c | 266 const struct pipe_vertex_buffer *vb = &nv50->vtxbuf[i]; in nv50_push_vbo()
|
H A D | nv50_state.c | 1083 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 D | nvc0_vbo.c | 176 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 D | nvc0_context.c | 115 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 D | nvc0_vbo_translate.c | 71 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 D | nvc0_surface.c | 1205 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 D | nvc0_context.h | 214 struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS]; member
|
H A D | nvc0_state.c | 1027 util_set_vertex_buffers_count(nvc0->vtxbuf, &nvc0->num_vtxbufs, vb, in nvc0_set_vertex_buffers()
|