zink: free vertex_state_cache on shutdown

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18784>
(cherry picked from commit 903aba413d)
This commit is contained in:
Mike Blumenkrantz
2022-09-23 09:46:43 -04:00
committed by Dylan Baker
parent 380ffeb205
commit cf2be66218
2 changed files with 3 additions and 1 deletions

View File

@@ -616,7 +616,7 @@
"description": "zink: free vertex_state_cache on shutdown",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View File

@@ -1266,6 +1266,8 @@ zink_destroy_screen(struct pipe_screen *pscreen)
VKSCR(DestroyDebugUtilsMessengerEXT)(screen->instance, screen->debugUtilsCallbackHandle, NULL);
}
util_vertex_state_cache_deinit(&screen->vertex_state_cache);
u_transfer_helper_destroy(pscreen->transfer_helper);
#ifdef ENABLE_SHADER_CACHE
if (screen->disk_cache) {