summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2023-09-25 15:15:05 +0300
committerDylan Baker <dylan.c.baker@intel.com>2023-10-05 09:35:04 -0700
commit5b8f87622ef53224c47237f27fffa9f347947232 (patch)
treeb391c192d7ad5a95f9752c57546c1b1b82c9b157
parent5b9a71c45837628cab351957b2a967b7120f8dbe (diff)
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 <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 31883b1f5ea3446d193fcd1a69a963a0f851a9e3)
-rw-r--r--.pick_status.json2
-rw-r--r--src/intel/vulkan/anv_device.c2
2 files changed, 3 insertions, 1 deletions
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)) {