radv/amdgpu: Fix hash key in radv_amdgpu_winsys_destroy().
Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34774> (cherry picked from commit 96765935e83d6014e2d5f49b4b859afdfd5cb236)
This commit is contained in:

committed by
Eric Engestrom

parent
c42b829ac4
commit
234d66a1e2
@@ -124,7 +124,7 @@
|
||||
"description": "radv/amdgpu: Fix hash key in radv_amdgpu_winsys_destroy().",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
@@ -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. */
|
||||
|
Reference in New Issue
Block a user