anv: fix a leak of fp64_nir shader

Fixes: 8c4c4c3ee1 ("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>
(cherry picked from commit 31883b1f5e)
This commit is contained in:
Tapani Pälli 2023-09-25 15:15:05 +03:00 committed by Eric Engestrom
parent 254ba0ecd3
commit 8d227f1420
2 changed files with 3 additions and 1 deletions

View file

@ -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"
},

View file

@ -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)) {