diff options
author | Marek Olšák <[email protected]> | 2015-09-01 04:14:43 +0200 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-09-06 19:01:19 +0100 |
commit | eef8258a86b6df103cb31cfa6feeddc32ac4eb95 (patch) | |
tree | 10a4137767c6359ad33013ed0e91f7bc7b40822e /src/gallium | |
parent | 747cd2c27382f4cdd1cb9149447b677af340335e (diff) |
winsys/radeon: remove exported buffers from the cache
Cc: 11.0 <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
(cherry picked from commit efea7c3a3f91219db6e2fa3588388b6be4ecfa40)
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index 3a9ac445b24..7c1987638a1 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c @@ -1126,6 +1126,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; |