Home
last modified time | relevance | path

Searched refs:ibuffer (Results 1 – 4 of 4) sorted by relevance

/external/mesa3d/src/mesa/state_tracker/
Dst_draw.c94 struct pipe_index_buffer *ibuffer) in setup_index_buffer() argument
98 ibuffer->index_size = vbo_sizeof_ib_type(ib->type); in setup_index_buffer()
103 ibuffer->buffer = st_buffer_object(bufobj)->buffer; in setup_index_buffer()
104 ibuffer->offset = pointer_to_offset(ib->ptr); in setup_index_buffer()
108 ib->count * ibuffer->index_size, ib->ptr, in setup_index_buffer()
109 &ibuffer->offset, &ibuffer->buffer) != PIPE_OK) { in setup_index_buffer()
117 ibuffer->user_buffer = ib->ptr; in setup_index_buffer()
120 cso_set_index_buffer(st->cso_context, ibuffer); in setup_index_buffer()
200 struct pipe_index_buffer ibuffer = {0}; in st_draw_vbo() local
232 if (!setup_index_buffer(st, ib, &ibuffer)) { in st_draw_vbo()
[all …]
Dst_draw_feedback.c109 struct pipe_index_buffer ibuffer; in st_feedback_draw_vbo() local
213 memset(&ibuffer, 0, sizeof(ibuffer)); in st_feedback_draw_vbo()
217 ibuffer.index_size = vbo_sizeof_ib_type(ib->type); in st_feedback_draw_vbo()
218 if (ibuffer.index_size == 0) in st_feedback_draw_vbo()
224 pipe_resource_reference(&ibuffer.buffer, stobj->buffer); in st_feedback_draw_vbo()
225 ibuffer.offset = pointer_to_offset(ib->ptr); in st_feedback_draw_vbo()
236 (ubyte *) mapped_indices + ibuffer.offset, in st_feedback_draw_vbo()
237 ibuffer.index_size); in st_feedback_draw_vbo()
259 pipe_resource_reference(&ibuffer.buffer, NULL); in st_feedback_draw_vbo()
/external/skia/src/gpu/gl/
DGrGLGpu.h421 const GrGLIndexBuffer* ibuffer);
DGrGLGpu.cpp2839 const GrGLIndexBuffer* ibuffer) { in bindArrayAndBuffersToDraw() argument
2851 attribState = fVBOVertexArray->bindWithIndexBuffer(gpu, ibuffer); in bindArrayAndBuffersToDraw()
2853 if (ibuffer) { in bindArrayAndBuffersToDraw()
2854 this->setIndexBufferIDOnDefaultVertexArray(gpu, ibuffer->bufferID()); in bindArrayAndBuffersToDraw()