/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_draw_elements.c | 101 struct pipe_resource *index_buffer, in svga_hwtnl_simple_draw_range_elements() argument 121 if (index_buffer && in svga_hwtnl_simple_draw_range_elements() 122 svga_buffer_is_user_buffer(index_buffer)) in svga_hwtnl_simple_draw_range_elements() 124 assert( index_buffer->width0 >= index_offset + count * index_size ); in svga_hwtnl_simple_draw_range_elements() 130 index_buffer, in svga_hwtnl_simple_draw_range_elements() 140 index_buffer = upload_buffer; in svga_hwtnl_simple_draw_range_elements() 150 ret = svga_hwtnl_prim( hwtnl, &range, min_index, max_index, index_buffer ); in svga_hwtnl_simple_draw_range_elements() 166 struct pipe_resource *index_buffer, in svga_hwtnl_draw_range_elements() argument 207 return svga_hwtnl_simple_draw_range_elements( hwtnl, index_buffer, in svga_hwtnl_draw_range_elements() 225 index_buffer, in svga_hwtnl_draw_range_elements()
|
D | svga_pipe_draw.c | 220 struct pipe_resource *index_buffer, in retry_draw_range_elements() argument 250 index_buffer, index_size, index_bias, in retry_draw_range_elements() 264 index_buffer, index_size, index_bias, in retry_draw_range_elements()
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_draw_arrays.c | 78 mapped_indices = lp->index_buffer.user_buffer; in llvmpipe_draw_vbo() 80 mapped_indices = llvmpipe_resource_data(lp->index_buffer.buffer); in llvmpipe_draw_vbo() 83 (ubyte *) mapped_indices + lp->index_buffer.offset, in llvmpipe_draw_vbo() 84 lp->index_buffer.index_size); in llvmpipe_draw_vbo()
|
D | lp_state_vertex.c | 102 memcpy(&llvmpipe->index_buffer, ib, sizeof(llvmpipe->index_buffer)); in llvmpipe_set_index_buffer() 104 memset(&llvmpipe->index_buffer, 0, sizeof(llvmpipe->index_buffer)); in llvmpipe_set_index_buffer()
|
D | lp_context.h | 82 struct pipe_index_buffer index_buffer; member
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_state_vertex.c | 106 memcpy(&softpipe->index_buffer, ib, sizeof(softpipe->index_buffer)); in softpipe_set_index_buffer() 108 memset(&softpipe->index_buffer, 0, sizeof(softpipe->index_buffer)); in softpipe_set_index_buffer()
|
D | sp_draw_arrays.c | 88 mapped_indices = sp->index_buffer.user_buffer; in softpipe_draw_vbo() 90 mapped_indices = softpipe_resource(sp->index_buffer.buffer)->data; in softpipe_draw_vbo() 93 (ubyte *) mapped_indices + sp->index_buffer.offset, in softpipe_draw_vbo() 94 sp->index_buffer.index_size); in softpipe_draw_vbo()
|
D | sp_context.h | 86 struct pipe_index_buffer index_buffer; member
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_draw_upload.c | 794 const struct _mesa_index_buffer *index_buffer = brw->ib.ib; in brw_upload_indices() local 801 if (index_buffer == NULL) in brw_upload_indices() 804 ib_type_size = get_size(index_buffer->type); in brw_upload_indices() 805 ib_size = ib_type_size * index_buffer->count; in brw_upload_indices() 806 bufferobj = index_buffer->obj; in brw_upload_indices() 814 intel_upload_data(&brw->intel, index_buffer->ptr, ib_size, ib_type_size, in brw_upload_indices() 818 offset = (GLuint) (unsigned long) index_buffer->ptr; in brw_upload_indices() 823 if ((get_size(index_buffer->type) - 1) & offset) { in brw_upload_indices() 861 if (index_buffer->type != brw->ib.type) { in brw_upload_indices() 862 brw->ib.type = index_buffer->type; in brw_upload_indices() [all …]
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_context.c | 71 mapped_indices = i915->index_buffer.user_buffer; in i915_draw_vbo() 73 mapped_indices = i915_buffer(i915->index_buffer.buffer)->data; in i915_draw_vbo() 75 (ubyte *) mapped_indices + i915->index_buffer.offset, in i915_draw_vbo() 76 i915->index_buffer.index_size); in i915_draw_vbo()
|
D | i915_state.c | 1051 memcpy(&i915->index_buffer, ib, sizeof(i915->index_buffer)); in i915_set_index_buffer() 1053 memset(&i915->index_buffer, 0, sizeof(i915->index_buffer)); in i915_set_index_buffer()
|
D | i915_context.h | 249 struct pipe_index_buffer index_buffer; member
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_render.c | 238 struct pipe_resource *index_buffer, in r300_emit_states() argument 251 index_buffer)) { in r300_emit_states() 301 struct pipe_resource *index_buffer, in r300_prepare_for_rendering() argument 311 return r300_emit_states(r300, flags, index_buffer, buffer_offset, in r300_prepare_for_rendering() 514 unsigned index_size = r300->index_buffer.index_size; in r300_draw_elements_immediate() 532 ptr1 = (uint8_t*)r300->index_buffer.user_buffer; in r300_draw_elements_immediate() 556 ptr2 = (uint16_t*)r300->index_buffer.user_buffer; in r300_draw_elements_immediate() 575 ptr4 = (uint32_t*)r300->index_buffer.user_buffer; in r300_draw_elements_immediate() 597 struct pipe_resource *indexBuffer = r300->index_buffer.buffer; in r300_draw_elements() 598 unsigned indexSize = r300->index_buffer.index_size; in r300_draw_elements() [all …]
|
D | r300_screen_buffer.c | 36 struct pipe_resource **index_buffer, in r300_upload_index_buffer() argument 42 *index_buffer = NULL; in r300_upload_index_buffer() 48 index_buffer); in r300_upload_index_buffer()
|
D | r300_screen_buffer.h | 40 struct pipe_resource **index_buffer,
|
D | r300_emit.h | 126 struct pipe_resource *index_buffer);
|
D | r300_emit.c | 1176 struct pipe_resource *index_buffer) in r300_emit_buffer_validate() argument 1244 if (index_buffer) in r300_emit_buffer_validate() 1245 r300->rws->cs_add_reloc(r300->cs, r300_resource(index_buffer)->cs_buf, in r300_emit_buffer_validate() 1247 r300_resource(index_buffer)->domain); in r300_emit_buffer_validate()
|
D | r300_context.h | 591 struct pipe_index_buffer index_buffer; member
|
D | r300_state.c | 1695 pipe_resource_reference(&r300->index_buffer.buffer, ib->buffer); in r300_set_index_buffer_hwtcl() 1696 memcpy(&r300->index_buffer, ib, sizeof(*ib)); in r300_set_index_buffer_hwtcl() 1698 pipe_resource_reference(&r300->index_buffer.buffer, NULL); in r300_set_index_buffer_hwtcl()
|
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_state_draw.c | 497 rctx->index_buffer.index_size); in si_state_draw() 521 (info->indexed && !rctx->index_buffer.buffer)) { in si_draw_vbo() 533 pipe_resource_reference(&ib.buffer, rctx->index_buffer.buffer); in si_draw_vbo() 534 ib.index_size = rctx->index_buffer.index_size; in si_draw_vbo() 535 ib.offset = rctx->index_buffer.offset + info->start * ib.index_size; in si_draw_vbo()
|
D | radeonsi_pipe.h | 176 struct pipe_index_buffer index_buffer; member
|
D | si_state.c | 2411 pipe_resource_reference(&rctx->index_buffer.buffer, ib->buffer); in si_set_index_buffer() 2412 memcpy(&rctx->index_buffer, ib, sizeof(*ib)); in si_set_index_buffer() 2414 pipe_resource_reference(&rctx->index_buffer.buffer, NULL); in si_set_index_buffer()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_vbuf.c | 105 struct pipe_index_buffer index_buffer; member 308 struct pipe_index_buffer *ib = &mgr->index_buffer; in u_vbuf_translate_buffers() 779 pipe_resource_reference(&mgr->index_buffer.buffer, ib->buffer); in u_vbuf_set_index_buffer() 780 memcpy(&mgr->index_buffer, ib, sizeof(*ib)); in u_vbuf_set_index_buffer() 782 pipe_resource_reference(&mgr->index_buffer.buffer, NULL); in u_vbuf_set_index_buffer() 1028 u_vbuf_get_minmax_index(mgr->pipe, &mgr->index_buffer, info, in u_vbuf_draw_vbo()
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/gd3d11/ |
D | d3d11_context.h | 49 refcnt_ptr<GalliumD3D11Buffer, PtrTraits> index_buffer; member 644 if(!index_buffer) in set_index_buffer() 665 ib.buffer = index_buffer ? ((GalliumD3D11Buffer*)index_buffer.p)->resource : 0; in set_index_buffer() 676 …if(index_buffer.p != new_index_buffer || index_format != new_index_format || index_offset != new_i… in IASetIndexBuffer() 678 index_buffer = new_index_buffer; in IASetIndexBuffer() 693 *out_index_buffer = index_buffer.ref(); in IAGetIndexBuffer() 1937 if(buffer == index_buffer) in UnbindBuffer() 1939 index_buffer.p = 0; in UnbindBuffer()
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_state_common.c | 506 pipe_resource_reference(&rctx->index_buffer.buffer, ib->buffer); in r600_set_index_buffer() 507 memcpy(&rctx->index_buffer, ib, sizeof(*ib)); in r600_set_index_buffer() 510 pipe_resource_reference(&rctx->index_buffer.buffer, NULL); in r600_set_index_buffer() 1170 pipe_resource_reference(&ib.buffer, rctx->index_buffer.buffer); in r600_draw_vbo() 1171 ib.user_buffer = rctx->index_buffer.user_buffer; in r600_draw_vbo() 1172 ib.index_size = rctx->index_buffer.index_size; in r600_draw_vbo() 1173 ib.offset = rctx->index_buffer.offset + info.start * ib.index_size; in r600_draw_vbo()
|