From 31883b1f5ea3446d193fcd1a69a963a0f851a9e3 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: --- src/intel/vulkan/anv_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 70febb2e7c5..583930ea701 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -3692,6 +3692,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 | DEBUG_BATCH_STATS)) {