Searched refs:indexbuf (Results 1 - 25 of 30) sorted by relevance

12

/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/svga/
H A Dsvga_swtnl.h43 struct pipe_resource *indexbuf,
H A Dsvga_pipe_draw.c140 struct pipe_resource *indexbuf = local in function:svga_draw_vbo
154 !util_upload_index_buffer(pipe, info, &indexbuf, &index_offset)) {
203 ret = svga_swtnl_draw_vbo(svga, info, indexbuf, index_offset);
223 if (info->index_size && indexbuf) {
230 indexbuf,
256 if (info->index_size && info->index.resource != indexbuf)
257 pipe_resource_reference(&indexbuf, NULL);
H A Dsvga_swtnl_draw.c42 struct pipe_resource *indexbuf,
88 if (info->index_size && indexbuf) {
89 map = pipe_buffer_map(&svga->pipe, indexbuf,
40 svga_swtnl_draw_vbo(struct svga_context * svga,const struct pipe_draw_info * info,struct pipe_resource * indexbuf,unsigned index_offset) argument
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/util/
H A Du_vertex_state_cache.c75 struct pipe_resource *indexbuf,
82 key.input.indexbuf = indexbuf;
108 state = cache->create(screen, buffer, elements, num_elements, indexbuf,
71 util_vertex_state_cache_get(struct pipe_screen * screen,struct pipe_vertex_buffer * buffer,const struct pipe_vertex_element * elements,unsigned num_elements,struct pipe_resource * indexbuf,uint32_t full_velem_mask,struct util_vertex_state_cache * cache) argument
H A Du_vertex_state_cache.h58 struct pipe_resource *indexbuf,
H A Du_helpers.h129 struct pipe_resource *indexbuf,
H A Du_helpers.c505 struct pipe_resource *indexbuf,
515 pipe_resource_reference(&state->input.indexbuf, indexbuf);
501 util_init_pipe_vertex_state(struct pipe_screen * screen,struct pipe_vertex_buffer * buffer,const struct pipe_vertex_element * elements,unsigned num_elements,struct pipe_resource * indexbuf,uint32_t full_velem_mask,struct pipe_vertex_state * state) argument
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/etnaviv/
H A Detnaviv_context.c188 struct pipe_resource *indexbuf = NULL; local in function:etna_draw_vbo
191 indexbuf = info->has_user_indices ? NULL : info->index.resource;
193 !util_upload_index_buffer(pctx, info, &indexbuf, &index_offset)) {
200 ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR.bo = etna_resource(indexbuf)->bo;
260 resource_read(ctx, indexbuf);
304 if (info->index_size && indexbuf != info->index.resource)
305 pipe_resource_reference(&indexbuf, NULL);
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/
H A Dfreedreno_draw.c106 struct pipe_resource *indexbuf = NULL; local in function:fd_draw_vbo
111 if (!util_upload_index_buffer(pctx, info, &indexbuf, &index_offset))
114 new_info.index.resource = indexbuf;
118 indexbuf = info->index.resource;
233 resource_read(batch, indexbuf);
304 pipe_resource_reference(&indexbuf, NULL);
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/radeonsi/
H A Dsi_state_draw.c667 struct pipe_resource *indexbuf,
728 index_max_size = (indexbuf->width0 - index_offset) /
730 index_va = si_resource(indexbuf)->gpu_address + index_offset;
733 si_resource(indexbuf),
1256 struct pipe_resource *indexbuf = info->index.resource; local in function:si_draw_vbo
1381 indexbuf = NULL;
1385 &offset, &indexbuf, &ptr);
1386 if (!indexbuf)
1402 indexbuf = NULL;
1407 &index_offset, &indexbuf);
665 si_emit_draw_packets(struct si_context * sctx,const struct pipe_draw_info * info,struct pipe_resource * indexbuf,unsigned index_size,unsigned index_offset) argument
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/etnaviv/
H A Detnaviv_context.c269 struct pipe_resource *indexbuf = NULL; local in function:etna_draw_vbo
272 indexbuf = info->has_user_indices ? NULL : info->index.resource;
274 !util_upload_index_buffer(pctx, info, &draws[0], &indexbuf, &index_offset, 4)) {
281 ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR.bo = etna_resource(indexbuf)->bo;
351 resource_read(ctx, indexbuf);
401 if (info->index_size && indexbuf != info->index.resource)
402 pipe_resource_reference(&indexbuf, NULL);
/xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/
H A Dst_atom_array.c329 struct gl_buffer_object *indexbuf,
354 indexbuf ?
355 st_buffer_object(indexbuf)->buffer : NULL,
327 st_create_gallium_vertex_state(struct gl_context * ctx,const struct gl_vertex_array_object * vao,struct gl_buffer_object * indexbuf,uint32_t enabled_attribs) argument
H A Dst_atom.h81 struct gl_buffer_object *indexbuf,
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/
H A Dfreedreno_draw.c300 struct pipe_resource *indexbuf = NULL; local in function:fd_draw_vbo
309 if (!util_upload_index_buffer(pctx, info, &draws[0], &indexbuf,
313 new_info.index.resource = indexbuf;
317 indexbuf = info->index.resource;
381 pipe_resource_reference(&indexbuf, NULL);
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/
H A Dsi_state_draw.cpp1316 struct pipe_resource *indexbuf, unsigned index_size,
1380 index_max_size = (indexbuf->width0 - index_offset) >> util_logbase2(index_size);
1389 index_va = si_resource(indexbuf)->gpu_address + index_offset;
1391 radeon_add_to_buffer_list(sctx, &sctx->gfx_cs, si_resource(indexbuf), RADEON_USAGE_READ,
1834 if (vstate->b.input.vbuffer.buffer.resource != vstate->b.input.indexbuf) {
2032 if (index_size && indexbuf != info->index.resource) \
2033 pipe_resource_reference(&indexbuf, NULL); \
2144 struct pipe_resource *indexbuf = info->index.resource; local in function:si_draw
2159 indexbuf = NULL;
2161 si_optimal_tcc_alignment(sctx, size), &offset, &indexbuf,
1311 si_emit_draw_packets(struct si_context * sctx,const struct pipe_draw_info * info,unsigned drawid_base,const struct pipe_draw_indirect_info * indirect,const struct pipe_draw_start_count_bias * draws,unsigned num_draws,unsigned total_count,struct pipe_resource * indexbuf,unsigned index_size,unsigned index_offset,unsigned instance_count,unsigned original_index_size) argument
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/driver_noop/
H A Dnoop_pipe.c684 struct pipe_resource *indexbuf,
692 util_init_pipe_vertex_state(screen, buffer, elements, num_elements, indexbuf,
701 pipe_resource_reference(&state->input.indexbuf, NULL);
680 noop_create_vertex_state(struct pipe_screen * screen,struct pipe_vertex_buffer * buffer,const struct pipe_vertex_element * elements,unsigned num_elements,struct pipe_resource * indexbuf,uint32_t full_velem_mask) argument
/xsrc/external/mit/MesaLib/dist/src/gallium/include/pipe/
H A Dp_screen.h74 struct pipe_resource *indexbuf,
H A Dp_state.h740 struct pipe_resource *indexbuf; member in struct:pipe_vertex_state::__anon78dd1bec0b08
844 (no need to reference indexbuf, but still needs to unreference it) */
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/lima/
H A Dlima_draw.c1079 struct pipe_resource *indexbuf = NULL; local in function:lima_draw_vbo_indexed
1091 util_upload_index_buffer(&ctx->base, info, draw, &indexbuf, &ctx->index_offset, 0x40);
1092 ctx->index_res = lima_resource(indexbuf);
1112 if (indexbuf)
1113 pipe_resource_reference(&indexbuf, NULL);
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/driver_trace/
H A Dtr_screen.c1047 struct pipe_resource *indexbuf,
1062 trace_dump_arg(ptr, indexbuf);
1067 indexbuf, full_velem_mask);
1043 trace_screen_create_vertex_state(struct pipe_screen * _screen,struct pipe_vertex_buffer * buffer,const struct pipe_vertex_element * elements,unsigned num_elements,struct pipe_resource * indexbuf,uint32_t full_velem_mask) argument
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/lima/
H A Dlima_draw.c908 struct pipe_resource *indexbuf = NULL; local in function:lima_pack_plbu_cmd
912 util_upload_index_buffer(&ctx->base, info, &indexbuf, &index_offset);
913 res = lima_resource(indexbuf);
921 if (indexbuf)
922 pipe_resource_reference(&indexbuf, NULL);
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r600/
H A Dr600_state_common.c2030 struct pipe_resource *indexbuf = info->has_user_indices ? NULL : info->index.resource; local in function:r600_draw_vbo
2140 indexbuf = out_buffer;
2154 indexbuf = NULL;
2157 info->index.user, &index_offset, &indexbuf);
2301 uint64_t va = r600_resource(indexbuf)->gpu_address + index_offset;
2311 (struct r600_resource*)indexbuf,
2316 uint32_t max_size = (indexbuf->width0 - index_offset) / index_size;
2324 (struct r600_resource*)indexbuf,
2421 if (index_size && indexbuf != info->index.resource)
2422 pipe_resource_reference(&indexbuf, NUL
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/
H A Dr600_state_common.c2098 struct pipe_resource *indexbuf = !info->index_size || info->has_user_indices ? NULL : info->index.resource; local in function:r600_draw_vbo
2214 indexbuf = out_buffer;
2229 indexbuf = NULL;
2233 &index_offset, &indexbuf);
2381 uint64_t va = r600_resource(indexbuf)->gpu_address + index_offset;
2391 (struct r600_resource*)indexbuf,
2396 uint32_t max_size = (indexbuf->width0 - index_offset) / index_size;
2404 (struct r600_resource*)indexbuf,
2501 if (index_size && indexbuf != info->index.resource)
2502 pipe_resource_reference(&indexbuf, NUL
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/mesa/vbo/
H A Dvbo_save_api.c1424 struct gl_buffer_object *indexbuf = vao->IndexBufferObj; local in function:_save_OBE_DrawElementsBaseVertex
1450 if (_mesa_is_bufferobj(indexbuf))
1452 ADD_POINTERS(indexbuf->Mappings[MAP_INTERNAL].Pointer, indices);
/xsrc/external/mit/MesaLib/dist/src/mesa/vbo/
H A Dvbo_save_api.c1751 struct gl_buffer_object *indexbuf = vao->IndexBufferObj; local in function:_save_OBE_DrawElementsBaseVertex
1779 if (indexbuf)
1781 ADD_POINTERS(indexbuf->Mappings[MAP_INTERNAL].Pointer, indices);

Completed in 50 milliseconds

12