/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_screen.c | 110 get_float_cap(struct svga_winsys_screen *sws, SVGA3dDevCapIndex cap, in get_float_cap() argument 114 if (sws->get_cap(sws, cap, &result)) in get_float_cap() 123 get_uint_cap(struct svga_winsys_screen *sws, SVGA3dDevCapIndex cap, in get_uint_cap() argument 127 if (sws->get_cap(sws, cap, &result)) in get_uint_cap() 136 get_bool_cap(struct svga_winsys_screen *sws, SVGA3dDevCapIndex cap, in get_bool_cap() argument 140 if (sws->get_cap(sws, cap, &result)) in get_bool_cap() 151 struct svga_winsys_screen *sws = svgascreen->sws; in svga_get_paramf() local 165 return (float) get_uint_cap(sws, SVGA3D_DEVCAP_MAX_TEXTURE_ANISOTROPY, 4); in svga_get_paramf() 186 struct svga_winsys_screen *sws = svgascreen->sws; in svga_get_param() local 200 return sws->have_vgpu10 ? 1 : 0; in svga_get_param() [all …]
|
D | svga_screen_cache.c | 98 struct svga_winsys_screen *sws = svgascreen->sws; in svga_screen_cache_lookup() local 127 sws->fence_signalled(sws, entry->fence, 0) == 0) { in svga_screen_cache_lookup() 130 assert(sws->surface_is_flushed(sws, entry->handle)); in svga_screen_cache_lookup() 180 struct svga_winsys_screen *sws = svgascreen->sws; in svga_screen_cache_shrink() local 193 sws->surface_reference(sws, &entry->handle, NULL); in svga_screen_cache_shrink() 218 struct svga_winsys_screen *sws = svgascreen->sws; in svga_screen_cache_add() local 235 sws->surface_reference(sws, &handle, NULL); in svga_screen_cache_add() 253 sws->surface_reference(sws, &handle, NULL); in svga_screen_cache_add() 278 sws->surface_reference(sws, &entry->handle, NULL); in svga_screen_cache_add() 302 sws->surface_reference(sws, &handle, NULL); in svga_screen_cache_add() [all …]
|
D | svga_winsys.h | 353 (*query_bind)(struct svga_winsys_context *sws, 469 (*destroy)(struct svga_winsys_screen *sws); 472 (*get_hw_version)(struct svga_winsys_screen *sws); 475 (*get_cap)(struct svga_winsys_screen *sws, 490 (*context_create)(struct svga_winsys_screen *sws); 531 (*surface_create)(struct svga_winsys_screen *sws, 545 (*surface_from_handle)(struct svga_winsys_screen *sws, 554 (*surface_get_handle)(struct svga_winsys_screen *sws, 563 (*surface_is_flushed)(struct svga_winsys_screen *sws, 571 (*surface_reference)(struct svga_winsys_screen *sws, [all …]
|
D | svga_pipe_query.c | 94 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in define_query_vgpu9() local 103 sws->buffer_map(sws, sq->hwbuf, PIPE_TRANSFER_WRITE); in define_query_vgpu9() 105 sws->buffer_destroy(sws, sq->hwbuf); in define_query_vgpu9() 116 sws->buffer_unmap(sws, sq->hwbuf); in define_query_vgpu9() 124 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in begin_query_vgpu9() local 141 sws->fence_reference(sws, &sq->fence, NULL); in begin_query_vgpu9() 171 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in get_query_result_vgpu9() local 194 sws->fence_finish(sws, sq->fence, PIPE_TIMEOUT_INFINITE, in get_query_result_vgpu9() 454 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in destroy_gb_query_obj() local 470 sws->query_destroy(sws, svga->gb_query); in destroy_gb_query_obj() [all …]
|
D | svga_resource_texture.c | 107 struct svga_winsys_screen *sws = screen->sws; in svga_transfer_dma() local 131 sws->fence_finish(sws, fence, PIPE_TIMEOUT_INFINITE, 0); in svga_transfer_dma() 132 sws->fence_reference(sws, &fence, NULL); in svga_transfer_dma() 169 hw = sws->buffer_map(sws, st->hwbuf, usage); in svga_transfer_dma() 173 sws->buffer_unmap(sws, st->hwbuf); in svga_transfer_dma() 190 sws->fence_finish(sws, fence, PIPE_TIMEOUT_INFINITE, 0); in svga_transfer_dma() 192 hw = sws->buffer_map(sws, st->hwbuf, PIPE_TRANSFER_READ); in svga_transfer_dma() 196 sws->buffer_unmap(sws, st->hwbuf); in svga_transfer_dma() 210 struct svga_winsys_screen *sws = svga_winsys_screen(texture->screen); in svga_texture_get_handle() local 219 return sws->surface_get_handle(sws, svga_texture(texture)->handle, in svga_texture_get_handle() [all …]
|
D | svga_resource_buffer.h | 257 return svga_screen(sbuf->b.b.screen)->sws; in svga_buffer_winsys_screen() 283 struct svga_winsys_screen *sws = svga_buffer_winsys_screen(sbuf); in svga_buffer_hw_storage_map() local 287 if (sws->have_gb_objects) { in svga_buffer_hw_storage_map() 291 return sws->buffer_map(sws, sbuf->hwbuf, flags); in svga_buffer_hw_storage_map() 302 struct svga_winsys_screen *sws = svga_buffer_winsys_screen(sbuf); in svga_buffer_hw_storage_unmap() local 304 if (sws->have_gb_objects) { in svga_buffer_hw_storage_unmap() 319 sws->buffer_unmap(sws, sbuf->hwbuf); in svga_buffer_hw_storage_unmap()
|
D | svga_pipe_flush.c | 90 struct svga_winsys_screen *sws = svga_winsys_screen(pipe->screen); in svga_create_fence_fd() local 92 sws->fence_create_fd(sws, fence, fd); in svga_create_fence_fd() 106 struct svga_winsys_screen *sws = svga_winsys_screen(pipe->screen); in svga_fence_server_sync() local 109 sws->fence_server_sync(sws, &svga->swc->imported_fence_fd, fence); in svga_fence_server_sync()
|
D | svga_pipe_blit.c | 137 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in copy_region_fallback() local 139 SVGA_STATS_TIME_PUSH(sws, SVGA_STATS_TIME_COPYREGIONFALLBACK); in copy_region_fallback() 142 SVGA_STATS_TIME_POP(sws); in copy_region_fallback() 143 (void) sws; in copy_region_fallback() 472 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in try_blit() local 482 SVGA_STATS_TIME_PUSH(sws, SVGA_STATS_TIME_BLITBLITTER); in try_blit() 566 SVGA_STATS_COUNT_INC(sws, SVGA_STATS_COUNT_BLITBLITTERCOPY); in try_blit() 615 SVGA_STATS_COUNT_INC(sws, SVGA_STATS_COUNT_BLITBLITTERCOPY); in try_blit() 639 SVGA_STATS_TIME_POP(sws); /* SVGA_STATS_TIME_BLITBLITTER */ in try_blit() 640 (void) sws; in try_blit() [all …]
|
D | svga_resource_buffer_upload.c | 71 struct svga_winsys_screen *sws = svgascreen->sws; in svga_winsys_buffer_create() local 75 buf = sws->buffer_create(sws, alignment, usage, size); in svga_winsys_buffer_create() 82 buf = sws->buffer_create(sws, alignment, usage, size); in svga_winsys_buffer_create() 97 struct svga_winsys_screen *sws = ss->sws; in svga_buffer_destroy_hw_storage() local 102 sws->buffer_destroy(sws, sbuf->hwbuf); in svga_buffer_destroy_hw_storage() 121 if (ss->sws->have_gb_objects) { in svga_buffer_create_hw_storage() 126 struct svga_winsys_screen *sws = ss->sws; in svga_buffer_create_hw_storage() local 131 sbuf->hwbuf = sws->buffer_create(sws, alignment, usage, size); in svga_buffer_create_hw_storage() 902 struct svga_winsys_screen *sws = ss->sws; in svga_buffer_upload_piecewise() local 926 hwbuf = sws->buffer_create(sws, alignment, usage, size); in svga_buffer_upload_piecewise() [all …]
|
D | svga_resource.c | 83 struct svga_winsys_screen *sws = svgascreen->sws; in svga_can_create_resource() local 112 return sws->surface_can_create(sws, format, base_level_size, in svga_can_create_resource()
|
D | svga_shader.c | 301 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in define_gb_shader_vgpu9() local 309 variant->gb_shader = sws->shader_create(sws, type, in define_gb_shader_vgpu9() 492 struct svga_winsys_screen *sws = svga_screen(svga->pipe.screen)->sws; in svga_destroy_shader_variant() local 493 sws->shader_destroy(sws, variant->gb_shader); in svga_destroy_shader_variant()
|
D | svga_context.c | 133 SVGA_STATS_TIME_PUSH(svgascreen->sws, SVGA_STATS_TIME_CREATECONTEXT); in svga_context_create() 157 svga->swc = svgascreen->sws->context_create(svgascreen->sws); in svga_context_create() 333 SVGA_STATS_TIME_POP(svgascreen->sws); in svga_context_create() 406 svgascreen->sws->fence_reference(svgascreen->sws, pfence, fence); in svga_context_flush() 408 svgascreen->sws->fence_reference(svgascreen->sws, &fence, NULL); in svga_context_flush()
|
D | svga_context.h | 701 return svga_screen(svga->pipe.screen)->sws; in svga_sws() 707 return svga_screen(svga->pipe.screen)->sws->have_gb_objects; in svga_have_gb_objects() 713 return svga_screen(svga->pipe.screen)->sws->have_gb_dma; in svga_have_gb_dma() 719 return svga_screen(svga->pipe.screen)->sws->have_vgpu10; in svga_have_vgpu10() 725 return svga_screen(svga->pipe.screen)->sws->need_to_rebind_resources; in svga_need_to_rebind_resources()
|
/external/mesa3d/src/gallium/winsys/svga/drm/ |
D | vmw_screen_svga.c | 62 vmw_svga_winsys_buffer_create(struct svga_winsys_screen *sws, in vmw_svga_winsys_buffer_create() argument 67 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_buffer_create() 103 vmw_svga_winsys_fence_reference(struct svga_winsys_screen *sws, in vmw_svga_winsys_fence_reference() argument 107 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_fence_reference() 114 vmw_svga_winsys_fence_signalled(struct svga_winsys_screen *sws, in vmw_svga_winsys_fence_signalled() argument 118 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_fence_signalled() 125 vmw_svga_winsys_fence_finish(struct svga_winsys_screen *sws, in vmw_svga_winsys_fence_finish() argument 130 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_fence_finish() 137 vmw_svga_winsys_fence_get_fd(struct svga_winsys_screen *sws, in vmw_svga_winsys_fence_get_fd() argument 149 vmw_svga_winsys_fence_create_fd(struct svga_winsys_screen *sws, in vmw_svga_winsys_fence_create_fd() argument [all …]
|
D | vmw_query.c | 36 vmw_svga_winsys_query_create(struct svga_winsys_screen *sws, in vmw_svga_winsys_query_create() argument 39 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_query_create() 66 vmw_svga_winsys_query_destroy(struct svga_winsys_screen *sws, in vmw_svga_winsys_query_destroy() argument 69 vmw_svga_winsys_buffer_destroy(sws, query->buf); in vmw_svga_winsys_query_destroy() 76 vmw_svga_winsys_query_init(struct svga_winsys_screen *sws, in vmw_svga_winsys_query_init() argument 83 state = (SVGA3dQueryState *) vmw_svga_winsys_buffer_map(sws, in vmw_svga_winsys_query_init() 95 vmw_svga_winsys_buffer_unmap(sws, query->buf); in vmw_svga_winsys_query_init() 103 vmw_svga_winsys_query_get_result(struct svga_winsys_screen *sws, in vmw_svga_winsys_query_get_result() argument 111 state = (SVGA3dQueryState *) vmw_svga_winsys_buffer_map(sws, in vmw_svga_winsys_query_get_result() 132 vmw_svga_winsys_buffer_unmap(sws, query->buf); in vmw_svga_winsys_query_get_result()
|
D | vmw_query.h | 41 vmw_svga_winsys_query_create(struct svga_winsys_screen *sws, 45 vmw_svga_winsys_query_destroy(struct svga_winsys_screen *sws, 49 vmw_svga_winsys_query_init(struct svga_winsys_screen *sws, 55 vmw_svga_winsys_query_get_result(struct svga_winsys_screen *sws,
|
D | vmw_screen_dri.c | 54 vmw_drm_surface_from_handle(struct svga_winsys_screen *sws, 59 vmw_drm_gb_surface_from_handle(struct svga_winsys_screen *sws, 63 vmw_drm_surface_get_handle(struct svga_winsys_screen *sws, 142 vmw_drm_gb_surface_from_handle(struct svga_winsys_screen *sws, in vmw_drm_gb_surface_from_handle() argument 148 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_drm_gb_surface_from_handle() 214 vmw_drm_surface_from_handle(struct svga_winsys_screen *sws, in vmw_drm_surface_from_handle() argument 220 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_drm_surface_from_handle() 325 vmw_drm_surface_get_handle(struct svga_winsys_screen *sws, in vmw_drm_surface_get_handle() argument 330 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_drm_surface_get_handle()
|
D | vmw_shader.c | 51 struct svga_winsys_screen *sws = &dst->screen->base; in vmw_svga_winsys_shader_reference() local 53 if (!sws->have_vgpu10) in vmw_svga_winsys_shader_reference() 60 sws->buffer_destroy(sws, dst->buf); in vmw_svga_winsys_shader_reference()
|
D | vmw_buffer.c | 326 vmw_svga_winsys_buffer_destroy(struct svga_winsys_screen *sws, in vmw_svga_winsys_buffer_destroy() argument 330 (void)sws; in vmw_svga_winsys_buffer_destroy() 339 vmw_svga_winsys_buffer_map(struct svga_winsys_screen *sws, in vmw_svga_winsys_buffer_map() argument 345 (void)sws; in vmw_svga_winsys_buffer_map() 361 vmw_svga_winsys_buffer_unmap(struct svga_winsys_screen *sws, in vmw_svga_winsys_buffer_unmap() argument 364 (void)sws; in vmw_svga_winsys_buffer_unmap()
|
D | vmw_buffer.h | 78 vmw_svga_winsys_buffer_destroy(struct svga_winsys_screen *sws, 81 vmw_svga_winsys_buffer_map(struct svga_winsys_screen *sws, 86 vmw_svga_winsys_buffer_unmap(struct svga_winsys_screen *sws,
|
D | vmw_screen.h | 228 void vmw_winsys_destroy(struct vmw_winsys_screen *sws); 242 vmw_svga_winsys_shader_create(struct svga_winsys_screen *sws, 247 vmw_svga_winsys_shader_destroy(struct svga_winsys_screen *sws,
|
/external/mesa3d/src/gallium/targets/pipe-loader/ |
D | pipe_r300.c | 10 struct radeon_winsys *sws; in create_screen() local 12 sws = radeon_drm_winsys_create(fd, config, r300_screen_create); in create_screen() 13 return sws ? debug_screen_wrap(sws->screen) : NULL; in create_screen()
|
D | pipe_vmwgfx.c | 10 struct svga_winsys_screen *sws; in create_screen() local 13 sws = svga_drm_winsys_screen_create(fd); in create_screen() 14 if (!sws) in create_screen() 17 screen = svga_screen_create(sws); in create_screen()
|
/external/mesa3d/src/gallium/winsys/virgl/vtest/ |
D | virgl_vtest_winsys.c | 123 vtws->sws->displaytarget_destroy(vtws->sws, res->dt); in virgl_hw_res_destroy() 227 res->dt = vtws->sws->displaytarget_create(vtws->sws, bind, format, in virgl_vtest_winsys_resource_create() 265 return vtws->sws->displaytarget_map(vtws->sws, res->dt, 0); in virgl_vtest_resource_map() 280 vtws->sws->displaytarget_unmap(vtws->sws, res->dt); in virgl_vtest_resource_unmap() 602 map = vtws->sws->displaytarget_map(vtws->sws, res->dt, 0); in virgl_vtest_flush_frontbuffer() 609 vtws->sws->displaytarget_unmap(vtws->sws, res->dt); in virgl_vtest_flush_frontbuffer() 611 vtws->sws->displaytarget_display(vtws->sws, res->dt, winsys_drawable_handle, in virgl_vtest_flush_frontbuffer() 627 virgl_vtest_winsys_wrap(struct sw_winsys *sws) in virgl_vtest_winsys_wrap() argument 636 vtws->sws = sws; in virgl_vtest_winsys_wrap()
|
/external/mesa3d/src/gallium/auxiliary/target-helpers/ |
D | drm_helper.h | 221 struct svga_winsys_screen *sws; in pipe_vmwgfx_create_screen() local 224 sws = svga_drm_winsys_screen_create(fd); in pipe_vmwgfx_create_screen() 225 if (!sws) in pipe_vmwgfx_create_screen() 228 screen = svga_screen_create(sws); in pipe_vmwgfx_create_screen()
|