From: Marek Olšák Date: Tue, 1 Sep 2015 02:14:43 +0000 (+0200) Subject: winsys/radeon: remove exported buffers from the cache X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=efea7c3a3f91219db6e2fa3588388b6be4ecfa40;p=mesa.git winsys/radeon: remove exported buffers from the cache Cc: 11.0 Reviewed-by: Alex Deucher --- diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index 600ced924ba..2878c8f5744 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c @@ -1150,6 +1150,9 @@ static boolean radeon_winsys_bo_get_handle(struct pb_buffer *buffer, memset(&flink, 0, sizeof(flink)); + if ((void*)bo != (void*)buffer) + pb_cache_manager_remove_buffer(buffer); + if (whandle->type == DRM_API_HANDLE_TYPE_SHARED) { if (!bo->flink_name) { flink.handle = bo->handle;