Home
last modified time | relevance | path

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

12

/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_context.c97 uint32_t new_control = ctx->index_buffer.FE_INDEX_STREAM_CONTROL; in etna_update_state_for_draw()
104 if (ctx->index_buffer.FE_INDEX_STREAM_CONTROL != new_control || in etna_update_state_for_draw()
105 …(info->primitive_restart && ctx->index_buffer.FE_PRIMITIVE_RESTART_INDEX != info->restart_index)) { in etna_update_state_for_draw()
106 ctx->index_buffer.FE_INDEX_STREAM_CONTROL = new_control; in etna_update_state_for_draw()
107 ctx->index_buffer.FE_PRIMITIVE_RESTART_INDEX = info->restart_index; in etna_update_state_for_draw()
194 ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR.bo = etna_resource(indexbuf)->bo; in etna_draw_vbo()
195 ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR.offset = index_offset; in etna_draw_vbo()
196 ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR.flags = ETNA_RELOC_READ; in etna_draw_vbo()
197 ctx->index_buffer.FE_INDEX_STREAM_CONTROL = translate_index_size(info->index_size); in etna_draw_vbo()
199 if (!ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR.bo) { in etna_draw_vbo()
[all …]
Detnaviv_context.h169 struct etna_index_buffer index_buffer; member
Detnaviv_emit.c334 …/*00644*/ EMIT_STATE_RELOC(FE_INDEX_STREAM_BASE_ADDR, &ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR… in etna_emit_state()
335 /*00648*/ EMIT_STATE(FE_INDEX_STREAM_CONTROL, ctx->index_buffer.FE_INDEX_STREAM_CONTROL); in etna_emit_state()
338 … /*00674*/ EMIT_STATE(FE_PRIMITIVE_RESTART_INDEX, ctx->index_buffer.FE_PRIMITIVE_RESTART_INDEX); in etna_emit_state()
/external/autotest/client/deps/glbench/src/
Dtrianglesetuptest.cc60 GLuint index_buffer = 0; in Run() local
69 index_buffer = in Run()
77 glDeleteBuffers(1, &index_buffer); in Run()
88 index_buffer = in Run()
94 glDeleteBuffers(1, &index_buffer); in Run()
Ddrawsizetest.cc67 GLuint index_buffer = 0; in Run() local
72 index_buffer = in Run()
79 glDeleteBuffers(1, &index_buffer); in Run()
Dattributefetchtest.cc111 GLuint index_buffer = 0; in Run() local
116 index_buffer = SetupVBO(GL_ELEMENT_ARRAY_BUFFER, index_buffer_size, indices); in Run()
144 glDeleteBuffers(1, &index_buffer); in Run()
Dvaryingsandddxytest.cc171 GLuint index_buffer = 0; in Run() local
175 index_buffer = SetupVBO(GL_ELEMENT_ARRAY_BUFFER, index_buffer_size, indices); in Run()
207 glDeleteBuffers(1, &index_buffer); in Run()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_draw_upload.c717 const struct _mesa_index_buffer *index_buffer = brw->ib.ib; in brw_upload_indices() local
724 if (index_buffer == NULL) in brw_upload_indices()
727 ib_type_size = index_buffer->index_size; in brw_upload_indices()
728 ib_size = index_buffer->count ? ib_type_size * index_buffer->count : in brw_upload_indices()
729 index_buffer->obj->Size; in brw_upload_indices()
730 bufferobj = index_buffer->obj; in brw_upload_indices()
737 intel_upload_data(brw, index_buffer->ptr, ib_size, ib_type_size, in brw_upload_indices()
741 offset = (GLuint) (unsigned long) index_buffer->ptr; in brw_upload_indices()
763 if (index_buffer->index_size != brw->ib.index_size) { in brw_upload_indices()
764 brw->ib.index_size = index_buffer->index_size; in brw_upload_indices()
DgenX_state_upload.c862 const struct _mesa_index_buffer *index_buffer = brw->ib.ib; in genX() local
864 if (index_buffer == NULL) in genX()
871 ib.IndexFormat = brw_get_index_type(index_buffer->index_size); in genX()
882 static const struct brw_tracked_state genX(index_buffer) = {
5420 &genX(index_buffer),
5486 &genX(index_buffer),
5572 &genX(index_buffer),
5665 &genX(index_buffer),
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_draw_elements.c151 struct pipe_resource *index_buffer, in svga_hwtnl_simple_draw_range_elements() argument
176 min_index, max_index, index_buffer, in svga_hwtnl_simple_draw_range_elements()
183 struct pipe_resource *index_buffer, in svga_hwtnl_draw_range_elements() argument
220 ret = svga_hwtnl_simple_draw_range_elements(hwtnl, index_buffer, in svga_hwtnl_draw_range_elements()
240 index_buffer, in svga_hwtnl_draw_range_elements()
Dsvga_pipe_draw.c59 struct pipe_resource *index_buffer, in retry_draw_range_elements() argument
90 index_buffer, index_size, index_bias, in retry_draw_range_elements()
105 index_buffer, index_size, index_bias, in retry_draw_range_elements()
/external/mesa3d/src/gallium/drivers/r300/
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_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()
1017 struct pipe_resource *index_buffer = NULL; in r300_render_draw_elements() local
1024 &index_buffer_offset, &index_buffer); in r300_render_draw_elements()
1025 if (!index_buffer) { in r300_render_draw_elements()
1032 index_buffer, 12, 0, 0, -1)) { in r300_render_draw_elements()
1033 pipe_resource_reference(&index_buffer, NULL); in r300_render_draw_elements()
1050 OUT_CS_RELOC(r300_resource(index_buffer)); in r300_render_draw_elements()
[all …]
Dr300_screen_buffer.h40 struct pipe_resource **index_buffer,
Dr300_emit.h130 struct pipe_resource *index_buffer);
Dr300_emit.c1303 struct pipe_resource *index_buffer) in r300_emit_buffer_validate() argument
1394 if (index_buffer) in r300_emit_buffer_validate()
1395 r300->rws->cs_add_buffer(r300->cs, r300_resource(index_buffer)->buf, in r300_emit_buffer_validate()
1397 r300_resource(index_buffer)->domain, in r300_emit_buffer_validate()
/external/mesa3d/src/intel/vulkan/
Dgen7_cmd_buffer.c119 cmd_buffer->state.gfx.gen7.index_buffer = buffer; in genX()
230 if (cmd_buffer->state.gfx.gen7.index_buffer && in genX()
233 struct anv_buffer *buffer = cmd_buffer->state.gfx.gen7.index_buffer; in genX()
Danv_private.h1701 struct anv_buffer *index_buffer; member
/external/mesa3d/src/gallium/drivers/swr/
Dswr_scratch.h40 struct swr_scratch_space index_buffer; member
Dswr_scratch.cpp98 AlignedFree(scratch->index_buffer.base); in swr_destroy_scratch_buffers()
Dswr_state.cpp1371 ctx, &ctx->scratch->index_buffer, ptr, size); in swr_update_derived()
/external/mesa3d/src/gallium/tools/trace/
Ddump_state.py448 self._state.index_buffer = ib
456 index_size = self._state.index_buffer.index_size
466 if self._state.index_buffer.buffer is None:
470 data = self._state.index_buffer.buffer.data
476 offset = self._state.index_buffer.offset + i*index_size
/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_state.cc230 for (auto& index_buffer : shaped_buffer.buffers()) { in ToLiteral() local
231 if (index_buffer.second.is_null()) { in ToLiteral()
233 index_buffer.first.ToString(), in ToLiteral()
/external/mesa3d/src/amd/vulkan/
Dradv_cmd_buffer.c2400 RADV_FROM_HANDLE(radv_buffer, index_buffer, buffer); in radv_CmdBindIndexBuffer()
2402 if (cmd_buffer->state.index_buffer == index_buffer && in radv_CmdBindIndexBuffer()
2409 cmd_buffer->state.index_buffer = index_buffer; in radv_CmdBindIndexBuffer()
2412 cmd_buffer->state.index_va = radv_buffer_get_va(index_buffer->bo); in radv_CmdBindIndexBuffer()
2413 cmd_buffer->state.index_va += index_buffer->offset + offset; in radv_CmdBindIndexBuffer()
2416 cmd_buffer->state.max_index_count = (index_buffer->size - offset) >> index_size_shift; in radv_CmdBindIndexBuffer()
2418 radv_cs_add_buffer(cmd_buffer->device->ws, cmd_buffer->cs, index_buffer->bo, 8); in radv_CmdBindIndexBuffer()
Dradv_private.h909 struct radv_buffer *index_buffer; member

12