From 8d227f1420d799a74a44d80eb51c95ad142b5cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Mon, 25 Sep 2023 15:15:05 +0300 Subject: [PATCH] anv: fix a leak of fp64_nir shader MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: 8c4c4c3ee1a2 ("anv: Add softtp64 workaround") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9846 Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Reviewed-by: Sagar Ghuge Part-of: (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 2eae331897a..e91b58f67f7 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -418,7 +418,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" }, diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index e512394c7a3..b317b78dbbd 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -3552,6 +3552,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)) {