Home
last modified time | relevance | path

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

123

/third_party/libsoup/tests/
Dresource-test.c8 SoupBuffer *index_buffer; variable
88 index_buffer->data, index_buffer->length); in do_async_request()
125 soup_assert_cmpmem (body->str, body->len, index_buffer->data, index_buffer->length); in do_sync_request()
172 base64 = g_base64_encode ((const guchar *)index_buffer->data, index_buffer->length); in do_request_data_test()
193 index_buffer = soup_test_get_index (); in main()
Dtest-utils.c15 static SoupBuffer *index_buffer; variable
113 if (index_buffer) in test_cleanup()
114 soup_buffer_free (index_buffer); in test_cleanup()
798 if (!index_buffer) { in soup_test_get_index()
811 index_buffer = soup_buffer_new (SOUP_MEMORY_TAKE, contents, length); in soup_test_get_index()
814 return index_buffer; in soup_test_get_index()
/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/gallium/drivers/etnaviv/
Detnaviv_context.c178 uint32_t new_control = ctx->index_buffer.FE_INDEX_STREAM_CONTROL; in etna_update_state_for_draw()
185 if (ctx->index_buffer.FE_INDEX_STREAM_CONTROL != new_control || in etna_update_state_for_draw()
186 …(info->primitive_restart && ctx->index_buffer.FE_PRIMITIVE_RESTART_INDEX != info->restart_index)) { in etna_update_state_for_draw()
187 ctx->index_buffer.FE_INDEX_STREAM_CONTROL = new_control; in etna_update_state_for_draw()
188 ctx->index_buffer.FE_PRIMITIVE_RESTART_INDEX = info->restart_index; in etna_update_state_for_draw()
281 ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR.bo = etna_resource(indexbuf)->bo; in etna_draw_vbo()
282 ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR.offset = index_offset; in etna_draw_vbo()
283 ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR.flags = ETNA_RELOC_READ; in etna_draw_vbo()
284 ctx->index_buffer.FE_INDEX_STREAM_CONTROL = translate_index_size(info->index_size); in etna_draw_vbo()
286 if (!ctx->index_buffer.FE_INDEX_STREAM_BASE_ADDR.bo) { in etna_draw_vbo()
[all …]
/third_party/mesa3d/src/mesa/main/
Dglthread_draw.c675 struct gl_buffer_object *index_buffer; member
699 struct gl_buffer_object *index_buffer = cmd->index_buffer; in _mesa_unmarshal_DrawElementsInstancedBaseVertexBaseInstance() local
708 if (index_buffer) { in _mesa_unmarshal_DrawElementsInstancedBaseVertexBaseInstance()
709 _mesa_InternalBindElementBuffer(ctx, index_buffer); in _mesa_unmarshal_DrawElementsInstancedBaseVertexBaseInstance()
725 if (index_buffer) { in _mesa_unmarshal_DrawElementsInstancedBaseVertexBaseInstance()
740 struct gl_buffer_object *index_buffer, in draw_elements_async_user() argument
761 cmd->index_buffer = index_buffer; in draw_elements_async_user()
838 struct gl_buffer_object *index_buffer = NULL; in draw_elements() local
840 index_buffer = upload_indices(ctx, count, index_size, &indices); in draw_elements()
845 min_index, max_index, index_buffer, in draw_elements()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/d3d11/
Dgstd3d11shader.cpp243 ID3D11Buffer *index_buffer; member
258 ID3D11Buffer * index_buffer, DXGI_FORMAT index_format, guint index_count) in gst_d3d11_quad_new() argument
269 g_return_val_if_fail (index_buffer != NULL, NULL); in gst_d3d11_quad_new()
280 quad->index_buffer = index_buffer; in gst_d3d11_quad_new()
288 index_buffer->AddRef (); in gst_d3d11_quad_new()
319 GST_D3D11_CLEAR_COM (quad->index_buffer); in gst_d3d11_quad_free()
371 context->IASetIndexBuffer (quad->index_buffer, quad->index_format, 0); in gst_d3d11_draw_quad_unlocked()
Dgstd3d11overlaycompositor.cpp94 ID3D11Buffer *index_buffer; member
287 self->index_buffer, DXGI_FORMAT_R16_UINT, index_count); in gst_d3d11_composition_overlay_new()
329 ComPtr<ID3D11Buffer> index_buffer; in gst_d3d11_overlay_compositor_setup_shader() local
408 hr = device_handle->CreateBuffer (&buffer_desc, NULL, &index_buffer); in gst_d3d11_overlay_compositor_setup_shader()
415 hr = context_handle->Map (index_buffer.Get (), in gst_d3d11_overlay_compositor_setup_shader()
435 context_handle->Unmap (index_buffer.Get (), 0); in gst_d3d11_overlay_compositor_setup_shader()
443 self->index_buffer = index_buffer.Detach (); in gst_d3d11_overlay_compositor_setup_shader()
490 GST_D3D11_CLEAR_COM (compositor->index_buffer); in gst_d3d11_overlay_compositor_free()
Dgstd3d11shader.h54 ID3D11Buffer * index_buffer,
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_draw_upload.c733 const struct _mesa_index_buffer *index_buffer = brw->ib.ib; in brw_upload_indices() local
740 if (index_buffer == NULL) in brw_upload_indices()
743 ib_type_size = 1 << index_buffer->index_size_shift; in brw_upload_indices()
744 ib_size = index_buffer->count ? ib_type_size * index_buffer->count : in brw_upload_indices()
745 index_buffer->obj->Size; in brw_upload_indices()
746 bufferobj = index_buffer->obj; in brw_upload_indices()
753 brw_upload_data(&brw->upload, index_buffer->ptr, ib_size, ib_type_size, in brw_upload_indices()
757 offset = (GLuint) (unsigned long) index_buffer->ptr; in brw_upload_indices()
779 unsigned index_size = 1 << index_buffer->index_size_shift; in brw_upload_indices()
/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()
/third_party/gstreamer/gstplugins_bad/tests/examples/d3d11/
Dd3d11device.cpp368 ComPtr<ID3D11Buffer> index_buffer; in prepare_shader() local
371 hr = d3d11_device->CreateBuffer (&buffer_desc, nullptr, &index_buffer); in prepare_shader()
377 hr = context->Map (index_buffer.Get(), 0, D3D11_MAP_WRITE_DISCARD, 0, &map); in prepare_shader()
392 context->Unmap (index_buffer.Get(), 0); in prepare_shader()
399 *index = index_buffer.Detach(); in prepare_shader()
/third_party/gstreamer/gstplugins_base/tests/examples/gl/sdl/
Dsdlshare.c62 static GLuint index_buffer; variable
166 gl->GenBuffers (1, &index_buffer); in InitGL()
167 gl->BindBuffer (GL_ELEMENT_ARRAY_BUFFER, index_buffer); in InitGL()
193 gl->BindBuffer (GL_ELEMENT_ARRAY_BUFFER, index_buffer); in InitGL()
236 gl->BindBuffer (GL_ELEMENT_ARRAY_BUFFER, index_buffer); in InitGL()
278 gl->DeleteBuffers (1, &index_buffer); in DeinitGL()
/third_party/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.c239 struct pipe_resource *index_buffer, in r300_emit_states() argument
252 index_buffer)) { in r300_emit_states()
302 struct pipe_resource *index_buffer, in r300_prepare_for_rendering() argument
312 return r300_emit_states(r300, flags, index_buffer, buffer_offset, in r300_prepare_for_rendering()
1045 struct pipe_resource *index_buffer = NULL; in r300_render_draw_elements() local
1052 &index_buffer_offset, &index_buffer); in r300_render_draw_elements()
1053 if (!index_buffer) { in r300_render_draw_elements()
1060 index_buffer, 12, 0, 0, -1)) { in r300_render_draw_elements()
1061 pipe_resource_reference(&index_buffer, NULL); in r300_render_draw_elements()
1078 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);
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/
Dgstgloverlaycompositor.c77 GLuint index_buffer; member
144 gl->GenBuffers (1, &overlay->index_buffer); in gst_gl_composition_overlay_init_vertex_buffer()
145 gl->BindBuffer (GL_ELEMENT_ARRAY_BUFFER, overlay->index_buffer); in gst_gl_composition_overlay_init_vertex_buffer()
182 if (overlay->index_buffer) { in gst_gl_composition_overlay_free_vertex_buffer()
183 gl->DeleteBuffers (1, &overlay->index_buffer); in gst_gl_composition_overlay_free_vertex_buffer()
184 overlay->index_buffer = 0; in gst_gl_composition_overlay_free_vertex_buffer()
201 gl->BindBuffer (GL_ELEMENT_ARRAY_BUFFER, overlay->index_buffer); in gst_gl_composition_overlay_bind_vertex_buffer()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_draw.cpp460 struct pipe_resource *index_buffer = NULL; in d3d12_draw_vbo() local
543 if (!util_upload_index_buffer(pctx, dinfo, &draws[0], &index_buffer, in d3d12_draw_vbo()
549 index_buffer = dinfo->index.resource; in d3d12_draw_vbo()
656 if (index_buffer) { in d3d12_draw_vbo()
658 struct d3d12_resource *res = d3d12_resource(index_buffer); in d3d12_draw_vbo()
671 pipe_resource_reference(&index_buffer, NULL); in d3d12_draw_vbo()
751 if (index_buffer) in d3d12_draw_vbo()
/third_party/mesa3d/src/gallium/drivers/swr/
Dswr_scratch.h42 struct swr_scratch_space index_buffer; member
Dswr_scratch.cpp103 AlignedFree(scratch->index_buffer.base); in swr_destroy_scratch_buffers()
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_draw.cpp110 … const struct pipe_draw_indirect_info *dindirect, struct pipe_resource *index_buffer) in barrier_draw_buffers() argument
112 if (index_buffer) in barrier_draw_buffers()
113 …check_buffer_barrier(ctx, index_buffer, VK_ACCESS_INDEX_READ_BIT, VK_PIPELINE_STAGE_VERTEX_INPUT_B… in barrier_draw_buffers()
498 struct pipe_resource *index_buffer = NULL; in zink_draw_vbo() local
501 if (!util_upload_index_buffer(pctx, dinfo, &draws[0], &index_buffer, &index_offset, 4)) { in zink_draw_vbo()
505 zink_batch_reference_resource_move(batch, zink_resource(index_buffer)); in zink_draw_vbo()
507 index_buffer = dinfo->index.resource; in zink_draw_vbo()
508 zink_batch_reference_resource_rw(batch, zink_resource(index_buffer), false); in zink_draw_vbo()
535 barrier_draw_buffers(ctx, dinfo, dindirect, index_buffer); in zink_draw_vbo()
574 struct zink_resource *res = zink_resource(index_buffer); in zink_draw_vbo()
/third_party/mesa3d/src/gallium/tools/trace/
Ddump_state.py450 self._state.index_buffer = ib
458 index_size = self._state.index_buffer.index_size
468 if self._state.index_buffer.buffer is None:
472 data = self._state.index_buffer.buffer.data
478 offset = self._state.index_buffer.offset + i*index_size
/third_party/mesa3d/src/intel/vulkan/
Dgfx7_cmd_buffer.c168 cmd_buffer->state.gfx.gfx7.index_buffer = buffer; in genX()
343 if (cmd_buffer->state.gfx.gfx7.index_buffer && in genX()
347 struct anv_buffer *buffer = cmd_buffer->state.gfx.gfx7.index_buffer; in genX()
/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()

123