Home
last modified time | relevance | path

Searched refs:index_buffer (Results 1 – 25 of 27) sorted by relevance

12

/external/mesa3d/src/gallium/drivers/svga/
Dsvga_draw_elements.c101 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()
Dsvga_pipe_draw.c220 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/
Dlp_draw_arrays.c78 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()
Dlp_state_vertex.c102 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()
Dlp_context.h82 struct pipe_index_buffer index_buffer; member
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_state_vertex.c106 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()
Dsp_draw_arrays.c88 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()
Dsp_context.h86 struct pipe_index_buffer index_buffer; member
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_draw_upload.c794 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/
Di915_context.c71 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()
Di915_state.c1051 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()
Di915_context.h249 struct pipe_index_buffer index_buffer; member
/external/mesa3d/src/gallium/drivers/r300/
Dr300_render.c238 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 …]
Dr300_screen_buffer.c36 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()
Dr300_screen_buffer.h40 struct pipe_resource **index_buffer,
Dr300_emit.h126 struct pipe_resource *index_buffer);
Dr300_emit.c1176 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()
Dr300_context.h591 struct pipe_index_buffer index_buffer; member
Dr300_state.c1695 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/
Dsi_state_draw.c497 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()
Dradeonsi_pipe.h176 struct pipe_index_buffer index_buffer; member
Dsi_state.c2411 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/
Du_vbuf.c105 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/
Dd3d11_context.h49 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/
Dr600_state_common.c506 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()

12