Home
last modified time | relevance | path

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

123

/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_context.c146 uint32_t new_control = ctx->index_buffer.FE_INDEX_STREAM_CONTROL; in etna_update_state_for_draw()
153 if (ctx->index_buffer.FE_INDEX_STREAM_CONTROL != new_control || in etna_update_state_for_draw()
154 …(info->primitive_restart && ctx->index_buffer.FE_PRIMITIVE_RESTART_INDEX != info->restart_index)) { in etna_update_state_for_draw()
155 ctx->index_buffer.FE_INDEX_STREAM_CONTROL = new_control; in etna_update_state_for_draw()
156 ctx->index_buffer.FE_PRIMITIVE_RESTART_INDEX = info->restart_index; in etna_update_state_for_draw()
273 ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR.bo = etna_resource(indexbuf)->bo; in etna_draw_vbo()
274 ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR.offset = index_offset; in etna_draw_vbo()
275 ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR.flags = ETNA_RELOC_READ; in etna_draw_vbo()
276 ctx->index_buffer.FE_INDEX_STREAM_CONTROL = translate_index_size(info->index_size); in etna_draw_vbo()
278 if (!ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR.bo) { in etna_draw_vbo()
[all …]
Detnaviv_context.h174 struct etna_index_buffer index_buffer; member
Detnaviv_emit.c321 …/*00644*/ EMIT_STATE_RELOC(FE_INDEX_STREAM_BASE_ADDR, &ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR… in etna_emit_state()
322 /*00648*/ EMIT_STATE(FE_INDEX_STREAM_CONTROL, ctx->index_buffer.FE_INDEX_STREAM_CONTROL); in etna_emit_state()
325 … /*00674*/ EMIT_STATE(FE_PRIMITIVE_RESTART_INDEX, ctx->index_buffer.FE_PRIMITIVE_RESTART_INDEX); in etna_emit_state()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_draw_elements.c184 struct pipe_resource *index_buffer, in svga_hwtnl_simple_draw_range_elements() argument
210 min_index, max_index, index_buffer, in svga_hwtnl_simple_draw_range_elements()
263 struct pipe_resource *index_buffer = NULL; in svga_hwtnl_draw_range_elements() local
269 &index_offset, &index_buffer); in svga_hwtnl_draw_range_elements()
273 pipe_resource_reference(&index_buffer, info->index.resource); in svga_hwtnl_draw_range_elements()
277 assert(index_buffer != NULL); in svga_hwtnl_draw_range_elements()
279 ret = svga_hwtnl_simple_draw_range_elements(hwtnl, index_buffer, in svga_hwtnl_draw_range_elements()
288 pipe_resource_reference(&index_buffer, NULL); in svga_hwtnl_draw_range_elements()
/third_party/mesa3d/src/mesa/main/
Dglthread_draw.c682 struct gl_buffer_object *index_buffer; member
706 struct gl_buffer_object *index_buffer = cmd->index_buffer; in _mesa_unmarshal_DrawElementsInstancedBaseVertexBaseInstance() local
715 if (index_buffer) { in _mesa_unmarshal_DrawElementsInstancedBaseVertexBaseInstance()
716 _mesa_InternalBindElementBuffer(ctx, index_buffer); in _mesa_unmarshal_DrawElementsInstancedBaseVertexBaseInstance()
732 if (index_buffer) { in _mesa_unmarshal_DrawElementsInstancedBaseVertexBaseInstance()
747 struct gl_buffer_object *index_buffer, in draw_elements_async_user() argument
768 cmd->index_buffer = index_buffer; in draw_elements_async_user()
845 struct gl_buffer_object *index_buffer = NULL; in draw_elements() local
847 index_buffer = upload_indices(ctx, count, index_size, &indices); in draw_elements()
852 min_index, max_index, index_buffer, in draw_elements()
[all …]
/third_party/mesa3d/src/gallium/frontends/d3d10umd/
DDraw.cpp173 if (!pDevice->index_buffer) { in DrawIndexed()
187 info.index.resource = null_ib ? null_ib : pDevice->index_buffer; in DrawIndexed()
274 if (!pDevice->index_buffer) { in DrawIndexedInstanced()
288 info.index.resource = null_ib ? null_ib : pDevice->index_buffer; in DrawIndexedInstanced()
DInputAssembly.cpp227 pipe_resource_reference(&pDevice->index_buffer, resource); in IaSetIndexBuffer()
229 pipe_resource_reference(&pDevice->index_buffer, NULL); in IaSetIndexBuffer()
DState.h72 struct pipe_resource *index_buffer; member
/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_render.c240 struct pipe_resource *index_buffer, in r300_emit_states() argument
253 index_buffer)) { in r300_emit_states()
303 struct pipe_resource *index_buffer, in r300_prepare_for_rendering() argument
313 return r300_emit_states(r300, flags, index_buffer, buffer_offset, in r300_prepare_for_rendering()
1062 struct pipe_resource *index_buffer = NULL; in r300_render_draw_elements() local
1069 &index_buffer_offset, &index_buffer); in r300_render_draw_elements()
1070 if (!index_buffer) { in r300_render_draw_elements()
1077 index_buffer, 12, 0, 0, -1)) { in r300_render_draw_elements()
1078 pipe_resource_reference(&index_buffer, NULL); in r300_render_draw_elements()
1095 OUT_CS_RELOC(r300_resource(index_buffer)); in r300_render_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.h130 struct pipe_resource *index_buffer);
Dr300_emit.c1305 struct pipe_resource *index_buffer) in r300_emit_buffer_validate() argument
1397 if (index_buffer) in r300_emit_buffer_validate()
1398 r300->rws->cs_add_buffer(&r300->cs, r300_resource(index_buffer)->buf, in r300_emit_buffer_validate()
1401 r300_resource(index_buffer)->domain); in r300_emit_buffer_validate()
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_draw.cpp94 … const struct pipe_draw_indirect_info *dindirect, struct pipe_resource *index_buffer) in barrier_draw_buffers() argument
96 if (index_buffer) in barrier_draw_buffers()
97 …check_buffer_barrier(ctx, index_buffer, VK_ACCESS_INDEX_READ_BIT, VK_PIPELINE_STAGE_VERTEX_INPUT_B… in barrier_draw_buffers()
456 struct pipe_resource *index_buffer = NULL; in zink_draw() local
459 if (!util_upload_index_buffer(pctx, dinfo, &draws[0], &index_buffer, &index_offset, 4)) { in zink_draw()
465 zink_batch_reference_resource_move(batch, zink_resource(index_buffer)); in zink_draw()
467 zink_batch_reference_resource(batch, zink_resource(index_buffer)); in zink_draw()
469 index_buffer = dinfo->index.resource; in zink_draw()
470 zink_batch_reference_resource_rw(batch, zink_resource(index_buffer), false); in zink_draw()
496 barrier_draw_buffers(ctx, dinfo, dindirect, index_buffer); in zink_draw()
[all …]
/third_party/mesa3d/src/gallium/tools/trace/
Ddump_state.py487 self._state.index_buffer = ib
498 index_size = self._state.index_buffer.index_size
508 if self._state.index_buffer.buffer is None:
512 data = self._state.index_buffer.buffer.data
518 offset = self._state.index_buffer.offset + i*index_size
/third_party/ffmpeg/libavdevice/
Dopengl_enc.c199 GLuint index_buffer; ///< Index buffer member
304 opengl->glprocs.glDeleteBuffers(2, &opengl->index_buffer); in opengl_deinit_context()
305 opengl->vertex_buffer = opengl->index_buffer = 0; in opengl_deinit_context()
1008 opengl->glprocs.glGenBuffers(2, &opengl->index_buffer); in opengl_init_context()
1009 if (!opengl->index_buffer || !opengl->vertex_buffer) { in opengl_init_context()
1037 opengl->glprocs.glBindBuffer(FF_GL_ELEMENT_ARRAY_BUFFER, opengl->index_buffer); in opengl_init_context()
1232 opengl->glprocs.glBindBuffer(FF_GL_ELEMENT_ARRAY_BUFFER, opengl->index_buffer); in opengl_draw()
/third_party/mesa3d/src/imagination/vulkan/pds/
Dpvr_pds.c4882 program->index_buffer); in pvr_pds_generate_draw_elements_indirect()
4907 program->index_buffer); in pvr_pds_generate_draw_elements_indirect()
4930 program->index_buffer); in pvr_pds_generate_draw_elements_indirect()
4958 program->index_buffer); in pvr_pds_generate_draw_elements_indirect()
4983 program->index_buffer); in pvr_pds_generate_draw_elements_indirect()
5006 program->index_buffer); in pvr_pds_generate_draw_elements_indirect()
5034 program->index_buffer); in pvr_pds_generate_draw_elements_indirect()
5059 program->index_buffer); in pvr_pds_generate_draw_elements_indirect()
5082 program->index_buffer); in pvr_pds_generate_draw_elements_indirect()
5110 program->index_buffer); in pvr_pds_generate_draw_elements_indirect()
[all …]
/third_party/vk-gl-cts/external/amber/src/src/dawn/
Dpipeline_info.h63 ::dawn::Buffer index_buffer;
Dengine_dawn.cc1268 auto index_buffer = CreateBufferFromData( in DoDrawRect() local
1318 pass.SetIndexBuffer(index_buffer, 0); in DoDrawRect()
1343 if (!render_pipeline->index_buffer) in DoDrawArrays()
1351 render_pipeline->index_buffer = CreateBufferFromData( in DoDrawArrays()
1398 pass.SetIndexBuffer(render_pipeline->index_buffer, /* buffer */ in DoDrawArrays()
1581 render_pipeline->index_buffer = CreateBufferFromData( in AttachBuffersAndTextures()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_draw.cpp895 struct pipe_resource *index_buffer = NULL; in d3d12_draw_vbo() local
998 if (!util_upload_index_buffer(pctx, dinfo, &draws[0], &index_buffer, in d3d12_draw_vbo()
1004 index_buffer = dinfo->index.resource; in d3d12_draw_vbo()
1117 if (index_buffer) { in d3d12_draw_vbo()
1119 struct d3d12_resource *res = d3d12_resource(index_buffer); in d3d12_draw_vbo()
1132 pipe_resource_reference(&index_buffer, NULL); in d3d12_draw_vbo()
1244 (index_buffer ? 0 : D3D12_DIRTY_INDEX_BUFFER); in d3d12_draw_vbo()
/third_party/mesa3d/src/intel/vulkan/
Dgfx7_cmd_buffer.c192 if (cmd_buffer->state.gfx.index_buffer && in genX()
196 struct anv_buffer *buffer = cmd_buffer->state.gfx.index_buffer; in genX()
/third_party/vk-gl-cts/external/amber/src/
DAndroid.mk65 src/vulkan/index_buffer.cc \
/third_party/vk-gl-cts/external/amber/src/src/vulkan/
DCMakeLists.txt27 index_buffer.cc
/third_party/openGLES/extensions/AMD/
DAMD_interleaved_elements.txt269 GLuint index_buffer;
270 glGenBuffers(1, &index_buffer);
271 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, index_buffer);
/third_party/skia/third_party/externals/opengl-registry/extensions/AMD/
DAMD_interleaved_elements.txt269 GLuint index_buffer;
270 glGenBuffers(1, &index_buffer);
271 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, index_buffer);

123