Module: Mesa Branch: master Commit: efea7c3a3f91219db6e2fa3588388b6be4ecfa40 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=efea7c3a3f91219db6e2fa3588388b6be4ecfa40
Author: Marek Olšák <[email protected]> Date: Tue Sep 1 04:14:43 2015 +0200 winsys/radeon: remove exported buffers from the cache Cc: 11.0 <[email protected]> Reviewed-by: Alex Deucher <[email protected]> --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index 600ced9..2878c8f 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; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
