radv/amdgpu: Fix hash key in radv_amdgpu_winsys_destroy().

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34774>
This commit is contained in:
Paul Gofman
2025-04-30 12:26:03 -06:00
committed by Marge Bot
parent ec3011ed04
commit 96765935e8
@@ -155,7 +155,7 @@ radv_amdgpu_winsys_destroy(struct radeon_winsys *rws)
simple_mtx_lock(&winsys_creation_mutex);
if (!--ws->refcount) {
_mesa_hash_table_remove_key(winsyses, ws->dev);
_mesa_hash_table_remove_key(winsyses, (void *)ac_drm_device_get_cookie(ws->dev));
/* Clean the hashtable up if empty, though there is no
* empty function. */