/external/mesa3d/src/gallium/drivers/nouveau/nv30/ |
D | nv30_push.c | 40 const void *idxbuf; member 88 uint8_t *elts = (uint8_t *)ctx->idxbuf + start; in emit_vertices_i08() 120 uint16_t *elts = (uint16_t *)ctx->idxbuf + start; in emit_vertices_i16() 152 uint32_t *elts = (uint32_t *)ctx->idxbuf + start; in emit_vertices_i32() 228 if (nv30->idxbuf.buffer) in nv30_push_vbo() 229 ctx.idxbuf = nouveau_resource_map_offset(&nv30->base, in nv30_push_vbo() 230 nv04_resource(nv30->idxbuf.buffer), nv30->idxbuf.offset, in nv30_push_vbo() 233 ctx.idxbuf = nv30->idxbuf.user_buffer; in nv30_push_vbo() 234 if (!ctx.idxbuf) { in nv30_push_vbo() 238 index_size = nv30->idxbuf.index_size; in nv30_push_vbo() [all …]
|
D | nv30_vbo.c | 464 const unsigned index_size = nv30->idxbuf.index_size; 476 nv30->idxbuf.buffer) { 477 struct nv04_resource *res = nv04_resource(nv30->idxbuf.buffer); 478 unsigned offset = nv30->idxbuf.offset; 513 if (nv30->idxbuf.buffer) 515 nv04_resource(nv30->idxbuf.buffer), 516 nv30->idxbuf.offset, NOUVEAU_BO_RD); 518 data = nv30->idxbuf.user_buffer; 587 if (!nv30->base.vbo_dirty && nv30->idxbuf.buffer && 588 nv30->idxbuf.buffer->flags & PIPE_RESOURCE_FLAG_MAP_COHERENT)
|
D | nv30_state.c | 447 pipe_resource_reference(&nv30->idxbuf.buffer, ib->buffer); in nv30_set_index_buffer() 448 nv30->idxbuf.index_size = ib->index_size; in nv30_set_index_buffer() 449 nv30->idxbuf.offset = ib->offset; in nv30_set_index_buffer() 450 nv30->idxbuf.user_buffer = ib->user_buffer; in nv30_set_index_buffer() 452 pipe_resource_reference(&nv30->idxbuf.buffer, NULL); in nv30_set_index_buffer() 453 nv30->idxbuf.user_buffer = NULL; in nv30_set_index_buffer()
|
D | nv30_resource.c | 48 if (nv30->idxbuf.buffer && in nv30_memory_barrier() 49 nv30->idxbuf.buffer->flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT) in nv30_memory_barrier()
|
D | nv30_draw.c | 433 const void *map = nv30->idxbuf.user_buffer; in nv30_render_vbo() 435 map = pipe_buffer_map(pipe, nv30->idxbuf.buffer, in nv30_render_vbo() 439 (ubyte *) map + nv30->idxbuf.offset, in nv30_render_vbo() 440 nv30->idxbuf.index_size, ~0); in nv30_render_vbo()
|
D | nv30_context.h | 113 struct pipe_index_buffer idxbuf; member
|
D | nv30_context.c | 126 if (nv30->idxbuf.buffer == res) { in nv30_invalidate_resource_storage()
|
/external/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_push.c | 16 const void *idxbuf; member 70 uint8_t *elts = (uint8_t *)ctx->idxbuf + start; in emit_vertices_i08() 109 uint16_t *elts = (uint16_t *)ctx->idxbuf + start; in emit_vertices_i16() 148 uint32_t *elts = (uint32_t *)ctx->idxbuf + start; in emit_vertices_i32() 280 if (nv50->idxbuf.buffer) { in nv50_push_vbo() 281 ctx.idxbuf = nouveau_resource_map_offset(&nv50->base, in nv50_push_vbo() 282 nv04_resource(nv50->idxbuf.buffer), nv50->idxbuf.offset, in nv50_push_vbo() 285 ctx.idxbuf = nv50->idxbuf.user_buffer; in nv50_push_vbo() 287 if (!ctx.idxbuf) in nv50_push_vbo() 289 index_size = nv50->idxbuf.index_size; in nv50_push_vbo() [all …]
|
D | nv50_context.c | 70 if (nv50->idxbuf.buffer && in nv50_memory_barrier() 71 nv50->idxbuf.buffer->flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT) in nv50_memory_barrier() 148 pipe_resource_reference(&nv50->idxbuf.buffer, NULL); in nv50_context_unreference_resources() 236 if (nv50->idxbuf.buffer == res) { in nv50_invalidate_resource_storage()
|
D | nv50_vbo.c | 602 const unsigned index_size = nv50->idxbuf.index_size; in nv50_draw_elements() 616 if (nv50->idxbuf.buffer) { in nv50_draw_elements() 617 struct nv04_resource *buf = nv04_resource(nv50->idxbuf.buffer); in nv50_draw_elements() 620 const unsigned base = (buf->offset + nv50->idxbuf.offset) & ~3; in nv50_draw_elements() 622 start += ((buf->offset + nv50->idxbuf.offset) & 3) >> (index_size >> 1); in nv50_draw_elements() 624 assert(nouveau_resource_mapped_by_gpu(nv50->idxbuf.buffer)); in nv50_draw_elements() 677 const void *data = nv50->idxbuf.user_buffer; in nv50_draw_elements()
|
D | nv50_state.c | 1088 if (nv50->idxbuf.buffer) in nv50_set_index_buffer() 1092 pipe_resource_reference(&nv50->idxbuf.buffer, ib->buffer); in nv50_set_index_buffer() 1093 nv50->idxbuf.index_size = ib->index_size; in nv50_set_index_buffer() 1095 nv50->idxbuf.offset = ib->offset; in nv50_set_index_buffer() 1098 nv50->idxbuf.user_buffer = ib->user_buffer; in nv50_set_index_buffer() 1101 pipe_resource_reference(&nv50->idxbuf.buffer, NULL); in nv50_set_index_buffer()
|
D | nv50_context.h | 146 struct pipe_index_buffer idxbuf; member
|
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
D | nvc0_vbo_translate.c | 18 const void *idxbuf; member 88 if (nvc0->idxbuf.buffer) { in nvc0_push_map_idxbuf() 89 struct nv04_resource *buf = nv04_resource(nvc0->idxbuf.buffer); in nvc0_push_map_idxbuf() 90 ctx->idxbuf = nouveau_resource_map_offset(&nvc0->base, in nvc0_push_map_idxbuf() 91 buf, nvc0->idxbuf.offset, NOUVEAU_BO_RD); in nvc0_push_map_idxbuf() 93 ctx->idxbuf = nvc0->idxbuf.user_buffer; in nvc0_push_map_idxbuf() 242 const uint8_t *restrict elts = (uint8_t *)ctx->idxbuf + start; in disp_vertices_i08() 299 const uint16_t *restrict elts = (uint16_t *)ctx->idxbuf + start; in disp_vertices_i16() 356 const uint32_t *restrict elts = (uint32_t *)ctx->idxbuf + start; in disp_vertices_i32() 511 index_size = nvc0->idxbuf.index_size; in nvc0_push_vbo() [all …]
|
D | nvc0_vbo.c | 529 struct nv04_resource *buf = nv04_resource(nvc0->idxbuf.buffer); in nvc0_idxbuf_validate() 536 PUSH_DATAh(push, buf->address + nvc0->idxbuf.offset); in nvc0_idxbuf_validate() 537 PUSH_DATA (push, buf->address + nvc0->idxbuf.offset); in nvc0_idxbuf_validate() 540 PUSH_DATA (push, nvc0->idxbuf.index_size >> 1); in nvc0_idxbuf_validate() 719 const unsigned index_size = nvc0->idxbuf.index_size; in nvc0_draw_elements() 732 if (nvc0->idxbuf.buffer) { in nvc0_draw_elements() 748 const void *data = nvc0->idxbuf.user_buffer; in nvc0_draw_elements() 845 assert(nvc0->idxbuf.buffer); in nvc0_draw_indirect() 846 assert(nouveau_resource_mapped_by_gpu(nvc0->idxbuf.buffer)); in nvc0_draw_indirect() 1049 if (!nvc0->base.vbo_dirty && nvc0->idxbuf.buffer && in nvc0_draw_vbo() [all …]
|
D | nvc0_context.c | 70 if (nvc0->idxbuf.buffer && in nvc0_memory_barrier() 71 nvc0->idxbuf.buffer->flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT) in nvc0_memory_barrier() 151 pipe_resource_reference(&nvc0->idxbuf.buffer, NULL); in nvc0_context_unreference_resources() 267 if (nvc0->idxbuf.buffer == res) { in nvc0_invalidate_resource_storage()
|
D | nvc0_state.c | 962 if (nvc0->idxbuf.buffer) in nvc0_set_index_buffer() 966 pipe_resource_reference(&nvc0->idxbuf.buffer, ib->buffer); in nvc0_set_index_buffer() 967 nvc0->idxbuf.index_size = ib->index_size; in nvc0_set_index_buffer() 969 nvc0->idxbuf.offset = ib->offset; in nvc0_set_index_buffer() 972 nvc0->idxbuf.user_buffer = ib->user_buffer; in nvc0_set_index_buffer() 977 pipe_resource_reference(&nvc0->idxbuf.buffer, NULL); in nvc0_set_index_buffer()
|
D | nvc0_context.h | 196 struct pipe_index_buffer idxbuf; member
|
D | nvc0_state_validate.c | 821 if (!ctx_to->idxbuf.buffer) in nvc0_switch_pipe_context()
|
/external/mesa3d/src/gallium/state_trackers/nine/ |
D | nine_state.h | 204 struct NineIndexBuffer9 *idxbuf; member 274 struct pipe_index_buffer idxbuf; member 374 struct NineIndexBuffer9 *idxbuf);
|
D | stateblock9.c | 252 (struct NineBuffer9 **)&dst->idxbuf, in nine_state_copy_common() 253 (struct NineBuffer9 *)src->idxbuf); in nine_state_copy_common() 433 (struct NineBuffer9 **)&dst->idxbuf, in nine_state_copy_common_all() 434 (struct NineBuffer9 *)src->idxbuf); in nine_state_copy_common_all()
|
D | nine_state.c | 1106 if (context->idxbuf.buffer) in commit_index_buffer() 1107 pipe->set_index_buffer(pipe, &context->idxbuf); in commit_index_buffer() 1577 context->idxbuf.index_size = IndexSize; in CSMT_ITEM_NO_WAIT() 1578 context->idxbuf.offset = OffsetInBytes; in CSMT_ITEM_NO_WAIT() 1579 pipe_resource_reference(&context->idxbuf.buffer, res); in CSMT_ITEM_NO_WAIT() 1580 context->idxbuf.user_buffer = NULL; in CSMT_ITEM_NO_WAIT() 1587 struct NineIndexBuffer9 *idxbuf) in nine_context_set_indices() argument 1594 if (idxbuf) { in nine_context_set_indices() 1595 pipe_idxbuf = NineIndexBuffer9_GetBuffer(idxbuf); in nine_context_set_indices() 2064 nine_context_set_indices(device, src->idxbuf); [all …]
|
D | device9.c | 2821 user_assert(This->state.idxbuf, D3DERR_INVALIDCALL); in NineDevice9_DrawIndexedPrimitive() 3566 struct NineIndexBuffer9 *idxbuf = NineIndexBuffer9(pIndexData); in NineDevice9_SetIndices() local 3571 nine_bind(&state->idxbuf, idxbuf); in NineDevice9_SetIndices() 3576 if (state->idxbuf == idxbuf) in NineDevice9_SetIndices() 3580 (struct NineBuffer9 **)&state->idxbuf, in NineDevice9_SetIndices() 3581 (struct NineBuffer9 *)idxbuf); in NineDevice9_SetIndices() 3583 nine_context_set_indices(This, idxbuf); in NineDevice9_SetIndices() 3596 nine_reference_set(ppIndexData, This->state.idxbuf); in NineDevice9_GetIndices()
|
D | buffer9.c | 199 if (device->state.idxbuf == (struct NineIndexBuffer9 *)This) in NineBuffer9_RebindIfRequired()
|