Module: Mesa Branch: staging/23.2 Commit: 5b8f87622ef53224c47237f27fffa9f347947232 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5b8f87622ef53224c47237f27fffa9f347947232
Author: Tapani Pälli <[email protected]> Date: Mon Sep 25 15:15:05 2023 +0300 anv: fix a leak of fp64_nir shader Fixes: 8c4c4c3ee1a2 ("anv: Add softtp64 workaround") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9846 Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Sagar Ghuge <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25372> (cherry picked from commit 31883b1f5ea3446d193fcd1a69a963a0f851a9e3) --- .pick_status.json | 2 +- src/intel/vulkan/anv_device.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 0fd49fe5d17..e38c31e7e43 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -3554,7 +3554,7 @@ "description": "anv: fix a leak of fp64_nir shader", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "8c4c4c3ee1a24b73fa29f30a05e873e9e13dddc7", "notes": null diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index a28e4deda46..4606a6b3636 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -3621,6 +3621,8 @@ void anv_DestroyDevice( anv_queue_finish(&device->queues[i]); vk_free(&device->vk.alloc, device->queues); + ralloc_free(device->fp64_nir); + anv_device_destroy_context_or_vm(device); if (INTEL_DEBUG(DEBUG_BATCH)) {
