Home
last modified time | relevance | path

Searched refs:vsrf (Results 1 – 2 of 2) sorted by relevance

/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_surface.c43 struct vmw_svga_winsys_surface *vsrf = vmw_svga_winsys_surface(srf); in vmw_svga_winsys_surface_map() local
47 struct vmw_winsys_screen *vws = vsrf->screen; in vmw_svga_winsys_surface_map()
51 mtx_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 …]
Dvmw_screen_dri.c146 struct vmw_svga_winsys_surface *vsrf; in vmw_drm_gb_surface_from_handle() local
180 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 …]