/external/mesa3d/src/gallium/winsys/svga/drm/ |
D | vmw_screen_pools.c | 41 vmw_pools_cleanup(struct vmw_winsys_screen *vws) in vmw_pools_cleanup() argument 43 if (vws->pools.mob_shader_slab_fenced) in vmw_pools_cleanup() 44 vws->pools.mob_shader_slab_fenced->destroy in vmw_pools_cleanup() 45 (vws->pools.mob_shader_slab_fenced); in vmw_pools_cleanup() 46 if (vws->pools.mob_shader_slab) in vmw_pools_cleanup() 47 vws->pools.mob_shader_slab->destroy(vws->pools.mob_shader_slab); in vmw_pools_cleanup() 48 if (vws->pools.mob_fenced) in vmw_pools_cleanup() 49 vws->pools.mob_fenced->destroy(vws->pools.mob_fenced); in vmw_pools_cleanup() 50 if (vws->pools.mob_cache) in vmw_pools_cleanup() 51 vws->pools.mob_cache->destroy(vws->pools.mob_cache); in vmw_pools_cleanup() [all …]
|
D | vmw_screen.c | 68 struct vmw_winsys_screen *vws; in vmw_winsys_create() local 80 vws = util_hash_table_get(dev_hash, &stat_buf.st_rdev); in vmw_winsys_create() 81 if (vws) { in vmw_winsys_create() 82 vws->open_count++; in vmw_winsys_create() 83 return vws; in vmw_winsys_create() 86 vws = CALLOC_STRUCT(vmw_winsys_screen); in vmw_winsys_create() 87 if (!vws) in vmw_winsys_create() 90 vws->device = stat_buf.st_rdev; in vmw_winsys_create() 91 vws->open_count = 1; in vmw_winsys_create() 92 vws->ioctl.drm_fd = fcntl(fd, F_DUPFD_CLOEXEC, 3); in vmw_winsys_create() [all …]
|
D | vmw_screen_svga.c | 67 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_buffer_create() local 77 if (vws->pools.query_fenced == NULL && !vmw_query_pools_init(vws)) in vmw_svga_winsys_buffer_create() 79 provider = vws->pools.query_fenced; in vmw_svga_winsys_buffer_create() 81 provider = vws->pools.mob_shader_slab_fenced; in vmw_svga_winsys_buffer_create() 83 provider = vws->pools.gmr_fenced; in vmw_svga_winsys_buffer_create() 88 if(!buffer && provider == vws->pools.gmr_fenced) { in vmw_svga_winsys_buffer_create() 91 provider = vws->pools.gmr_slab_fenced; in vmw_svga_winsys_buffer_create() 107 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_fence_reference() local 109 vmw_fence_reference(vws, pdst, src); in vmw_svga_winsys_fence_reference() 118 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_fence_signalled() local [all …]
|
D | vmw_screen_ioctl.c | 79 vmw_ioctl_context_create(struct vmw_winsys_screen *vws) in vmw_ioctl_context_create() argument 86 ret = drmCommandRead(vws->ioctl.drm_fd, DRM_VMW_CREATE_CONTEXT, in vmw_ioctl_context_create() 97 vmw_ioctl_extended_context_create(struct vmw_winsys_screen *vws, in vmw_ioctl_extended_context_create() argument 106 ret = drmCommandWriteRead(vws->ioctl.drm_fd, in vmw_ioctl_extended_context_create() 118 vmw_ioctl_context_destroy(struct vmw_winsys_screen *vws, uint32 cid) in vmw_ioctl_context_destroy() argument 127 (void)drmCommandWrite(vws->ioctl.drm_fd, DRM_VMW_UNREF_CONTEXT, in vmw_ioctl_context_destroy() 133 vmw_ioctl_surface_create(struct vmw_winsys_screen *vws, in vmw_ioctl_surface_create() argument 182 ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_CREATE_SURFACE, in vmw_ioctl_surface_create() 195 vmw_ioctl_gb_surface_create(struct vmw_winsys_screen *vws, in vmw_ioctl_gb_surface_create() argument 235 if (vws->base.have_vgpu10) { in vmw_ioctl_gb_surface_create() [all …]
|
D | vmw_screen.h | 119 vmw_ioctl_context_create(struct vmw_winsys_screen *vws); 122 vmw_ioctl_extended_context_create(struct vmw_winsys_screen *vws, 126 vmw_ioctl_context_destroy(struct vmw_winsys_screen *vws, 130 vmw_ioctl_surface_create(struct vmw_winsys_screen *vws, 139 vmw_ioctl_gb_surface_create(struct vmw_winsys_screen *vws, 151 vmw_ioctl_gb_surface_ref(struct vmw_winsys_screen *vws, 160 vmw_ioctl_surface_destroy(struct vmw_winsys_screen *vws, 164 vmw_ioctl_command(struct vmw_winsys_screen *vws, 174 vmw_ioctl_region_create(struct vmw_winsys_screen *vws, uint32_t size); 189 vmw_ioctl_fence_finish(struct vmw_winsys_screen *vws, [all …]
|
D | vmw_screen_dri.c | 97 struct vmw_winsys_screen *vws; in svga_drm_winsys_screen_create() local 114 vws = vmw_winsys_create(fd); in svga_drm_winsys_screen_create() 115 if (!vws) in svga_drm_winsys_screen_create() 119 vws->base.surface_from_handle = vws->base.have_gb_objects ? in svga_drm_winsys_screen_create() 121 vws->base.surface_get_handle = vmw_drm_surface_get_handle; in svga_drm_winsys_screen_create() 123 return &vws->base; in svga_drm_winsys_screen_create() 148 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_drm_gb_surface_from_handle() local 152 struct pb_manager *provider = vws->pools.gmr; in vmw_drm_gb_surface_from_handle() 163 ret = vmw_ioctl_gb_surface_ref(vws, whandle, &flags, format, in vmw_drm_gb_surface_from_handle() 186 vsrf->screen = vws; in vmw_drm_gb_surface_from_handle() [all …]
|
D | vmw_fence.c | 43 struct vmw_winsys_screen *vws; member 253 vmw_fence_reference(struct vmw_winsys_screen *vws, in vmw_fence_reference() argument 261 struct vmw_fence_ops *ops = vmw_fence_ops(vws->fence_ops); in vmw_fence_reference() 264 vmw_ioctl_fence_unref(vws, vfence->handle); in vmw_fence_reference() 296 vmw_fence_signalled(struct vmw_winsys_screen *vws, in vmw_fence_signalled() argument 322 ret = vmw_ioctl_fence_signalled(vws, vfence->handle, vflags); in vmw_fence_signalled() 345 vmw_fence_finish(struct vmw_winsys_screen *vws, in vmw_fence_finish() argument 375 ret = vmw_ioctl_fence_finish(vws, vfence->handle, vflags); in vmw_fence_finish() 417 struct vmw_winsys_screen *vws = vmw_fence_ops(ops)->vws; in vmw_fence_ops_fence_reference() local 419 vmw_fence_reference(vws, ptr, fence); in vmw_fence_ops_fence_reference() [all …]
|
D | vmw_context.c | 97 struct vmw_winsys_screen *vws; member 182 struct vmw_winsys_screen *vws = vswc->vws; in vmw_swc_flush() local 199 mtx_lock(&vws->cs_mutex); in vmw_swc_flush() 203 cnd_wait(&vws->cs_cond, &vws->cs_mutex); in vmw_swc_flush() 207 cnd_broadcast(&vws->cs_cond); in vmw_swc_flush() 209 mtx_unlock(&vws->cs_mutex); in vmw_swc_flush() 238 vmw_ioctl_command(vws, in vmw_swc_flush() 248 mtx_lock(&vws->cs_mutex); in vmw_swc_flush() 249 cnd_broadcast(&vws->cs_cond); in vmw_swc_flush() 250 mtx_unlock(&vws->cs_mutex); in vmw_swc_flush() [all …]
|
D | vmw_surface.c | 47 struct vmw_winsys_screen *vws = vsrf->screen; in vmw_svga_winsys_surface_map() local 102 data = vmw_svga_winsys_buffer_map(&vws->base, vsrf->buf, in vmw_svga_winsys_surface_map() 111 provider = vws->pools.mob_fenced; in vmw_svga_winsys_surface_map() 119 data = vmw_svga_winsys_buffer_map(&vws->base, vbuf, pb_flags); in vmw_svga_winsys_surface_map() 128 vmw_svga_winsys_buffer_destroy(&vws->base, vsrf->buf); in vmw_svga_winsys_surface_map() 132 vmw_svga_winsys_buffer_destroy(&vws->base, vbuf); in vmw_svga_winsys_surface_map() 148 data = vmw_svga_winsys_buffer_map(&vws->base, vsrf->buf, pb_flags); in vmw_svga_winsys_surface_map()
|
D | vmw_fence.h | 44 vmw_fence_finish(struct vmw_winsys_screen *vws, 53 vmw_fence_signalled(struct vmw_winsys_screen *vws, 57 vmw_fence_reference(struct vmw_winsys_screen *vws, 62 vmw_fence_ops_create(struct vmw_winsys_screen *vws);
|
D | vmw_buffer.c | 85 struct vmw_winsys_screen *vws; member 199 struct vmw_winsys_screen *vws = mgr->vws; in vmw_gmr_bufmgr_create_buffer() local 217 buf->region = vmw_ioctl_region_create(vws, size); in vmw_gmr_bufmgr_create_buffer() 246 vmw_gmr_bufmgr_create(struct vmw_winsys_screen *vws) in vmw_gmr_bufmgr_create() argument 258 mgr->vws = vws; in vmw_gmr_bufmgr_create()
|
D | vmw_query.c | 39 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_query_create() local 40 struct pb_manager *provider = vws->pools.gmr; in vmw_svga_winsys_query_create()
|
/external/mesa3d/src/gallium/winsys/virgl/vtest/ |
D | virgl_vtest_socket.c | 77 static int virgl_vtest_send_init(struct virgl_vtest_winsys *vws) in virgl_vtest_send_init() argument 99 virgl_block_write(vws->sock_fd, &buf, sizeof(buf)); in virgl_vtest_send_init() 100 virgl_block_write(vws->sock_fd, (void *)cmdline, strlen(cmdline) + 1); in virgl_vtest_send_init() 104 int virgl_vtest_connect(struct virgl_vtest_winsys *vws) in virgl_vtest_connect() argument 124 vws->sock_fd = sock; in virgl_vtest_connect() 125 virgl_vtest_send_init(vws); in virgl_vtest_connect() 129 int virgl_vtest_send_get_caps(struct virgl_vtest_winsys *vws, in virgl_vtest_send_get_caps() argument 139 virgl_block_write(vws->sock_fd, &get_caps_buf, sizeof(get_caps_buf)); in virgl_vtest_send_get_caps() 141 ret = virgl_block_read(vws->sock_fd, resp_buf, sizeof(resp_buf)); in virgl_vtest_send_get_caps() 145 ret = virgl_block_read(vws->sock_fd, &caps->caps, sizeof(union virgl_caps)); in virgl_vtest_send_get_caps() [all …]
|
D | virgl_vtest_winsys.c | 33 static void *virgl_vtest_resource_map(struct virgl_winsys *vws, 35 static void virgl_vtest_resource_unmap(struct virgl_winsys *vws, 68 virgl_vtest_transfer_put(struct virgl_winsys *vws, in virgl_vtest_transfer_put() argument 74 struct virgl_vtest_winsys *vtws = virgl_vtest_winsys(vws); in virgl_vtest_transfer_put() 85 ptr = virgl_vtest_resource_map(vws, res); in virgl_vtest_transfer_put() 87 virgl_vtest_resource_unmap(vws, res); in virgl_vtest_transfer_put() 92 virgl_vtest_transfer_get(struct virgl_winsys *vws, in virgl_vtest_transfer_get() argument 98 struct virgl_vtest_winsys *vtws = virgl_vtest_winsys(vws); in virgl_vtest_transfer_get() 111 ptr = virgl_vtest_resource_map(vws, res); in virgl_vtest_transfer_get() 114 virgl_vtest_resource_unmap(vws, res); in virgl_vtest_transfer_get() [all …]
|
D | virgl_vtest_winsys.h | 108 int virgl_vtest_connect(struct virgl_vtest_winsys *vws); 109 int virgl_vtest_send_get_caps(struct virgl_vtest_winsys *vws, 112 int virgl_vtest_send_resource_create(struct virgl_vtest_winsys *vws, 124 int virgl_vtest_send_resource_unref(struct virgl_vtest_winsys *vws, 129 int virgl_vtest_send_transfer_cmd(struct virgl_vtest_winsys *vws, 137 int virgl_vtest_send_transfer_put_data(struct virgl_vtest_winsys *vws, 140 int virgl_vtest_recv_transfer_get_data(struct virgl_vtest_winsys *vws, 147 int virgl_vtest_busy_wait(struct virgl_vtest_winsys *vws, int handle,
|
/external/mesa3d/src/gallium/drivers/virgl/ |
D | virgl_winsys.h | 48 void (*destroy)(struct virgl_winsys *vws); 50 int (*transfer_put)(struct virgl_winsys *vws, 56 int (*transfer_get)(struct virgl_winsys *vws, 62 struct virgl_hw_res *(*resource_create)(struct virgl_winsys *vws, 70 void (*resource_unref)(struct virgl_winsys *vws, struct virgl_hw_res *res); 72 void *(*resource_map)(struct virgl_winsys *vws, struct virgl_hw_res *res); 73 void (*resource_wait)(struct virgl_winsys *vws, struct virgl_hw_res *res); 75 struct virgl_hw_res *(*resource_create_from_handle)(struct virgl_winsys *vws, 77 boolean (*resource_get_handle)(struct virgl_winsys *vws, 85 …void (*emit_res)(struct virgl_winsys *vws, struct virgl_cmd_buf *buf, struct virgl_hw_res *res, bo… [all …]
|
D | virgl_screen.c | 538 struct virgl_winsys *vws = vscreen->vws; in virgl_flush_frontbuffer() local 541 if (vws->flush_frontbuffer) in virgl_flush_frontbuffer() 542 vws->flush_frontbuffer(vws, vres->hw_res, level, layer, winsys_drawable_handle, in virgl_flush_frontbuffer() 551 struct virgl_winsys *vws = vscreen->vws; in virgl_fence_reference() local 553 vws->fence_reference(vws, ptr, fence); in virgl_fence_reference() 562 struct virgl_winsys *vws = vscreen->vws; in virgl_fence_finish() local 564 return vws->fence_wait(vws, fence, timeout); in virgl_fence_finish() 577 struct virgl_winsys *vws = vscreen->vws; in virgl_destroy_screen() local 581 if (vws) in virgl_destroy_screen() 582 vws->destroy(vws); in virgl_destroy_screen() [all …]
|
D | virgl_buffer.c | 37 vs->vws->resource_unref(vs->vws, vbuf->base.hw_res); in virgl_buffer_destroy() 80 …vs->vws->transfer_get(vs->vws, vbuf->base.hw_res, box, trans->base.stride, trans->base.layer_strid… in virgl_buffer_transfer_map() 86 vs->vws->resource_wait(vs->vws, vbuf->base.hw_res); in virgl_buffer_transfer_map() 88 ptr = vs->vws->resource_map(vs->vws, vbuf->base.hw_res); in virgl_buffer_transfer_map() 111 vs->vws->transfer_put(vs->vws, vbuf->base.hw_res, in virgl_buffer_transfer_unmap() 167 …buf->base.hw_res = vs->vws->resource_create(vs->vws, template->target, template->format, vbind, te… in virgl_buffer_create()
|
D | virgl_context.c | 73 rs->vws->transfer_put(rs->vws, vbuf->base.hw_res, in virgl_buffer_flush() 81 struct virgl_winsys *vws = virgl_screen(vctx->base.screen)->vws; in virgl_attach_res_framebuffer() local 90 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE); in virgl_attach_res_framebuffer() 97 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE); in virgl_attach_res_framebuffer() 105 struct virgl_winsys *vws = virgl_screen(vctx->base.screen)->vws; in virgl_attach_res_sampler_views() local 116 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE); in virgl_attach_res_sampler_views() 122 struct virgl_winsys *vws = virgl_screen(vctx->base.screen)->vws; in virgl_attach_res_vertex_buffers() local 129 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE); in virgl_attach_res_vertex_buffers() 136 struct virgl_winsys *vws = virgl_screen(vctx->base.screen)->vws; in virgl_attach_res_index_buffer() local 141 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE); in virgl_attach_res_index_buffer() [all …]
|
D | virgl_texture.c | 191 vs->vws->transfer_get(vs->vws, hw_res, box, trans->base.stride, l_stride, offset, level); in virgl_texture_transfer_map() 194 vs->vws->resource_wait(vs->vws, vtex->base.hw_res); in virgl_texture_transfer_map() 196 ptr = vs->vws->resource_map(vs->vws, hw_res); in virgl_texture_transfer_map() 229 vs->vws->transfer_put(vs->vws, vtex->base.hw_res, in virgl_texture_transfer_unmap() 288 return vs->vws->resource_get_handle(vs->vws, vtex->base.hw_res, vtex->stride[0], whandle); in virgl_texture_get_handle() 296 vs->vws->resource_unref(vs->vws, vtex->base.hw_res); in virgl_texture_destroy() 324 tex->base.hw_res = vs->vws->resource_create_from_handle(vs->vws, whandle); in virgl_texture_from_handle() 344 …tex->base.hw_res = vs->vws->resource_create(vs->vws, template->target, template->format, vbind, te… in virgl_texture_create()
|
D | virgl_resource.c | 34 …if ((!(usage & PIPE_TRANSFER_UNSYNCHRONIZED)) && vs->vws->res_is_referenced(vs->vws, vctx->cbuf, r… in virgl_res_needs_flush_wait()
|
D | virgl_public.h | 30 virgl_create_screen(struct virgl_winsys *vws);
|
/external/mesa3d/src/gallium/winsys/virgl/drm/ |
D | virgl_drm_winsys.c | 250 virgl_bo_transfer_put(struct virgl_winsys *vws, in virgl_bo_transfer_put() argument 256 struct virgl_drm_winsys *vdws = virgl_drm_winsys(vws); in virgl_bo_transfer_put() 275 virgl_bo_transfer_get(struct virgl_winsys *vws, in virgl_bo_transfer_get() argument 281 struct virgl_drm_winsys *vdws = virgl_drm_winsys(vws); in virgl_bo_transfer_get() 702 static int virgl_drm_get_caps(struct virgl_winsys *vws, in virgl_drm_get_caps() argument 705 struct virgl_drm_winsys *vdws = virgl_drm_winsys(vws); in virgl_drm_get_caps() 729 virgl_cs_create_fence(struct virgl_winsys *vws) in virgl_cs_create_fence() argument 733 res = virgl_drm_winsys_resource_cache_create(vws, in virgl_cs_create_fence() 742 static bool virgl_fence_wait(struct virgl_winsys *vws, in virgl_fence_wait() argument 746 struct virgl_drm_winsys *vdws = virgl_drm_winsys(vws); in virgl_fence_wait() [all …]
|
/external/mesa3d/src/gallium/auxiliary/target-helpers/ |
D | sw_helper.h | 44 struct virgl_winsys *vws; in sw_screen_create_named() local 45 vws = virgl_vtest_winsys_wrap(winsys); in sw_screen_create_named() 46 screen = virgl_create_screen(vws); in sw_screen_create_named()
|
D | inline_sw_helper.h | 42 struct virgl_winsys *vws; in sw_screen_create_named() local 43 vws = virgl_vtest_winsys_wrap(winsys); in sw_screen_create_named() 44 screen = virgl_create_screen(vws); in sw_screen_create_named()
|