/external/mesa3d/src/gallium/winsys/svga/drm/ |
D | vmw_screen_pools.c | 48 vmw_pools_cleanup(struct vmw_winsys_screen *vws) in vmw_pools_cleanup() argument 50 if(vws->pools.gmr_fenced) in vmw_pools_cleanup() 51 vws->pools.gmr_fenced->destroy(vws->pools.gmr_fenced); in vmw_pools_cleanup() 52 if (vws->pools.query_fenced) in vmw_pools_cleanup() 53 vws->pools.query_fenced->destroy(vws->pools.query_fenced); in vmw_pools_cleanup() 57 if (vws->pools.gmr_slab_fenced) in vmw_pools_cleanup() 58 vws->pools.gmr_slab_fenced->destroy(vws->pools.gmr_slab_fenced); in vmw_pools_cleanup() 60 if(vws->pools.gmr) in vmw_pools_cleanup() 61 vws->pools.gmr->destroy(vws->pools.gmr); in vmw_pools_cleanup() 62 if(vws->pools.query) in vmw_pools_cleanup() [all …]
|
D | vmw_screen_svga.c | 58 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_buffer_create() local 68 if (vws->pools.query_fenced == NULL && !vmw_query_pools_init(vws)) in vmw_svga_winsys_buffer_create() 70 provider = vws->pools.query_fenced; in vmw_svga_winsys_buffer_create() 72 provider = vws->pools.gmr_fenced; in vmw_svga_winsys_buffer_create() 77 if(!buffer && provider == vws->pools.gmr_fenced) { in vmw_svga_winsys_buffer_create() 80 provider = vws->pools.gmr_slab_fenced; in vmw_svga_winsys_buffer_create() 125 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_fence_reference() local 127 vmw_fence_reference(vws, pdst, src); in vmw_svga_winsys_fence_reference() 136 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_fence_signalled() local 138 return vmw_fence_signalled(vws, fence, flag); in vmw_svga_winsys_fence_signalled() [all …]
|
D | vmw_screen.c | 42 struct vmw_winsys_screen *vws = CALLOC_STRUCT(vmw_winsys_screen); in vmw_winsys_create() local 43 if (!vws) in vmw_winsys_create() 46 vws->ioctl.drm_fd = fd; in vmw_winsys_create() 47 vws->use_old_scanout_flag = use_old_scanout_flag; in vmw_winsys_create() 49 if (!vmw_ioctl_init(vws)) in vmw_winsys_create() 52 if(!vmw_pools_init(vws)) in vmw_winsys_create() 55 if (!vmw_winsys_screen_init_svga(vws)) in vmw_winsys_create() 58 return vws; in vmw_winsys_create() 60 vmw_pools_cleanup(vws); in vmw_winsys_create() 62 vmw_ioctl_cleanup(vws); in vmw_winsys_create() [all …]
|
D | vmw_screen.h | 90 vmw_ioctl_context_create(struct vmw_winsys_screen *vws); 93 vmw_ioctl_context_destroy(struct vmw_winsys_screen *vws, 97 vmw_ioctl_surface_create(struct vmw_winsys_screen *vws, 105 vmw_ioctl_surface_destroy(struct vmw_winsys_screen *vws, 109 vmw_ioctl_command(struct vmw_winsys_screen *vws, 117 vmw_ioctl_region_create(struct vmw_winsys_screen *vws, uint32_t size); 132 vmw_ioctl_fence_finish(struct vmw_winsys_screen *vws, 136 vmw_ioctl_fence_signalled(struct vmw_winsys_screen *vws, 140 vmw_ioctl_fence_unref(struct vmw_winsys_screen *vws, 146 boolean vmw_ioctl_init(struct vmw_winsys_screen *vws); [all …]
|
D | vmw_fence.c | 49 struct vmw_winsys_screen *vws; member 120 vmw_fence_reference(struct vmw_winsys_screen *vws, in vmw_fence_reference() argument 128 vmw_ioctl_fence_unref(vws, vfence->handle); in vmw_fence_reference() 154 vmw_fence_signalled(struct vmw_winsys_screen *vws, in vmw_fence_signalled() argument 174 ret = vmw_ioctl_fence_signalled(vws, vfence->handle, vflags); in vmw_fence_signalled() 199 vmw_fence_finish(struct vmw_winsys_screen *vws, in vmw_fence_finish() argument 218 ret = vmw_ioctl_fence_finish(vws, vfence->handle, vflags); in vmw_fence_finish() 243 struct vmw_winsys_screen *vws = vmw_fence_ops(ops)->vws; in vmw_fence_ops_fence_reference() local 245 vmw_fence_reference(vws, ptr, fence); in vmw_fence_ops_fence_reference() 258 struct vmw_winsys_screen *vws = vmw_fence_ops(ops)->vws; in vmw_fence_ops_fence_signalled() local [all …]
|
D | vmw_screen_ioctl.c | 70 vmw_ioctl_context_create(struct vmw_winsys_screen *vws) in vmw_ioctl_context_create() argument 77 ret = drmCommandRead(vws->ioctl.drm_fd, DRM_VMW_CREATE_CONTEXT, in vmw_ioctl_context_create() 89 vmw_ioctl_context_destroy(struct vmw_winsys_screen *vws, uint32 cid) in vmw_ioctl_context_destroy() argument 98 (void)drmCommandWrite(vws->ioctl.drm_fd, DRM_VMW_UNREF_CONTEXT, in vmw_ioctl_context_destroy() 104 vmw_ioctl_surface_create(struct vmw_winsys_screen *vws, in vmw_ioctl_surface_create() argument 123 if (vws->use_old_scanout_flag && in vmw_ioctl_surface_create() 160 ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_CREATE_SURFACE, in vmw_ioctl_surface_create() 172 vmw_ioctl_surface_destroy(struct vmw_winsys_screen *vws, uint32 sid) in vmw_ioctl_surface_destroy() argument 181 (void)drmCommandWrite(vws->ioctl.drm_fd, DRM_VMW_UNREF_SURFACE, in vmw_ioctl_surface_destroy() 186 vmw_ioctl_command(struct vmw_winsys_screen *vws, int32_t cid, in vmw_ioctl_command() argument [all …]
|
D | vmw_screen_dri.c | 89 struct vmw_winsys_screen *vws; in svga_drm_winsys_screen_create() local 106 vws = vmw_winsys_create( fd, FALSE ); in svga_drm_winsys_screen_create() 107 if (!vws) in svga_drm_winsys_screen_create() 111 vws->base.surface_from_handle = vmw_drm_surface_from_handle; in svga_drm_winsys_screen_create() 112 vws->base.surface_get_handle = vmw_drm_surface_get_handle; in svga_drm_winsys_screen_create() 114 return &vws->base; in svga_drm_winsys_screen_create() 159 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_drm_surface_from_handle() local 174 ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_REF_SURFACE, in vmw_drm_surface_from_handle() 206 vsrf->screen = vws; in vmw_drm_surface_from_handle() 214 vmw_ioctl_surface_destroy(vws, whandle->handle); in vmw_drm_surface_from_handle()
|
D | vmw_buffer.c | 85 struct vmw_winsys_screen *vws; member 173 struct vmw_winsys_screen *vws = mgr->vws; in vmw_gmr_bufmgr_create_buffer() local 187 buf->region = vmw_ioctl_region_create(vws, size); in vmw_gmr_bufmgr_create_buffer() 222 vmw_gmr_bufmgr_create(struct vmw_winsys_screen *vws) in vmw_gmr_bufmgr_create() argument 234 mgr->vws = vws; in vmw_gmr_bufmgr_create()
|
D | vmw_fence.h | 43 vmw_fence_finish(struct vmw_winsys_screen *vws, 47 vmw_fence_signalled(struct vmw_winsys_screen *vws, 51 vmw_fence_reference(struct vmw_winsys_screen *vws, 56 vmw_fence_ops_create(struct vmw_winsys_screen *vws);
|
D | vmw_context.c | 60 struct vmw_winsys_screen *vws; member 155 vmw_ioctl_command(vswc->vws, in vmw_swc_flush() 192 vmw_fence_reference(vswc->vws, pfence, fence); in vmw_swc_flush() 194 vmw_fence_reference(vswc->vws, &fence, NULL); in vmw_swc_flush() 359 vmw_ioctl_context_destroy(vswc->vws, swc->cid); in vmw_swc_destroy() 367 struct vmw_winsys_screen *vws = vmw_winsys_screen(sws); in vmw_svga_winsys_context_create() local 381 vswc->base.cid = vmw_ioctl_context_create(vws); in vmw_svga_winsys_context_create() 383 vswc->vws = vws; in vmw_svga_winsys_context_create()
|
D | vmw_buffer.h | 58 vmw_gmr_bufmgr_create(struct vmw_winsys_screen *vws);
|