Searched refs:vsrf (Results 1 – 2 of 2) sorted by relevance
42 struct vmw_svga_winsys_surface *vsrf = vmw_svga_winsys_surface(srf); in vmw_svga_winsys_surface_init() local46 struct vmw_winsys_screen *vws = vsrf->screen; in vmw_svga_winsys_surface_init()52 mtx_lock(&vsrf->mutex); in vmw_svga_winsys_surface_init()53 data = vmw_svga_winsys_buffer_map(&vws->base, vsrf->buf, pb_flags); in vmw_svga_winsys_surface_init()60 pb_buf = provider->create_buffer(provider, vsrf->size, &desc); in vmw_svga_winsys_surface_init()67 vsrf->rebind = TRUE; in vmw_svga_winsys_surface_init()68 if (vsrf->buf) in vmw_svga_winsys_surface_init()69 vmw_svga_winsys_buffer_destroy(&vws->base, vsrf->buf); in vmw_svga_winsys_surface_init()70 vsrf->buf = vbuf; in vmw_svga_winsys_surface_init()83 mtx_unlock(&vsrf->mutex); in vmw_svga_winsys_surface_init()[all …]
146 struct vmw_svga_winsys_surface *vsrf; in vmw_drm_gb_surface_from_handle() local180 vsrf = CALLOC_STRUCT(vmw_svga_winsys_surface); in vmw_drm_gb_surface_from_handle()181 if (!vsrf) in vmw_drm_gb_surface_from_handle()184 pipe_reference_init(&vsrf->refcnt, 1); in vmw_drm_gb_surface_from_handle()185 p_atomic_set(&vsrf->validated, 0); in vmw_drm_gb_surface_from_handle()186 vsrf->screen = vws; in vmw_drm_gb_surface_from_handle()187 vsrf->sid = handle; in vmw_drm_gb_surface_from_handle()188 vsrf->size = vmw_region_size(desc.region); in vmw_drm_gb_surface_from_handle()197 pb_buf = provider->create_buffer(provider, vsrf->size, &desc.pb_desc); in vmw_drm_gb_surface_from_handle()198 vsrf->buf = vmw_svga_winsys_buffer_wrap(pb_buf); in vmw_drm_gb_surface_from_handle()[all …]