anv: fix a leak of fp64_nir shader
authorTapani Pälli <tapani.palli@intel.com>
Mon, 25 Sep 2023 12:15:05 +0000 (15:15 +0300)
committerMarge Bot <emma+marge@anholt.net>
Tue, 26 Sep 2023 03:24:42 +0000 (03:24 +0000)
Fixes: 8c4c4c3ee1a2 ("anv: Add softtp64 workaround")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9846
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25372>

src/intel/vulkan/anv_device.c

index 70febb2..583930e 100644 (file)
@@ -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)) {