aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-01-27 17:40:32 -0500
committerMarek Olšák <[email protected]>2020-01-27 17:48:25 -0500
commitba06c7620f3eac333b58542bf01e1586d6346a61 (patch)
tree87970d05f91abf406f4fd025f8723cbb72483787 /src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
parent993f866d2e31c06462b49d760debf64d14e54a68 (diff)
Revert "winsys/amdgpu: Close KMS handles for other DRM file descriptions"
This reverts commit 552028c013cc1d49a2b61ebe0fc3a3781a9ba826. Required by the next reverted commit.
Diffstat (limited to 'src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c')
-rw-r--r--src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
index 13a4b3ab7f1..8fadf584e3f 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c
@@ -304,15 +304,8 @@ static bool amdgpu_winsys_unref(struct radeon_winsys *rws)
simple_mtx_unlock(&aws->sws_list_lock);
- if (ret && sws->kms_handles) {
- struct drm_gem_close args;
-
- hash_table_foreach(sws->kms_handles, entry) {
- args.handle = (uintptr_t)entry->data;
- drmIoctl(sws->fd, DRM_IOCTL_GEM_CLOSE, &args);
- }
+ if (ret && sws->kms_handles)
_mesa_hash_table_destroy(sws->kms_handles, NULL);
- }
return ret;
}