Searched refs:vsrf (Results 1 – 2 of 2) sorted by relevance
43 struct vmw_svga_winsys_surface *vsrf = vmw_svga_winsys_surface(srf); in vmw_svga_winsys_surface_map() local47 struct vmw_winsys_screen *vws = vsrf->screen; in vmw_svga_winsys_surface_map()51 pipe_mutex_lock(vsrf->mutex); in vmw_svga_winsys_surface_map()53 if (vsrf->mapcount) { in vmw_svga_winsys_surface_map()58 (vsrf->map_mode & PIPE_TRANSFER_WRITE)) in vmw_svga_winsys_surface_map()61 data = vsrf->data; in vmw_svga_winsys_surface_map()65 vsrf->rebind = FALSE; in vmw_svga_winsys_surface_map()71 if (flags & PIPE_TRANSFER_READ || vsrf->shared) in vmw_svga_winsys_surface_map()87 p_atomic_read(&vsrf->validated)) { in vmw_svga_winsys_surface_map()101 if (!p_atomic_read(&vsrf->validated)) { in vmw_svga_winsys_surface_map()[all …]
178 struct vmw_svga_winsys_surface *vsrf; in vmw_drm_gb_surface_from_handle() local212 vsrf = CALLOC_STRUCT(vmw_svga_winsys_surface); in vmw_drm_gb_surface_from_handle()213 if (!vsrf) in vmw_drm_gb_surface_from_handle()216 pipe_reference_init(&vsrf->refcnt, 1); in vmw_drm_gb_surface_from_handle()217 p_atomic_set(&vsrf->validated, 0); in vmw_drm_gb_surface_from_handle()218 vsrf->screen = vws; in vmw_drm_gb_surface_from_handle()219 vsrf->sid = handle; in vmw_drm_gb_surface_from_handle()220 vsrf->size = vmw_region_size(desc.region); in vmw_drm_gb_surface_from_handle()229 pb_buf = provider->create_buffer(provider, vsrf->size, &desc.pb_desc); in vmw_drm_gb_surface_from_handle()230 vsrf->buf = vmw_svga_winsys_buffer_wrap(pb_buf); in vmw_drm_gb_surface_from_handle()[all …]