anv: Release correct bo for RT scratch

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33850>
This commit is contained in:
Lucas Fryzek
2025-03-03 14:03:43 +00:00
committed by Marge Bot
parent 8fb80834ed
commit 08483e9bfa

View File

@@ -1453,7 +1453,7 @@ void anv_CmdSetRayTracingPipelineStackSizeKHR(
bo = p_atomic_cmpxchg(&device->rt_scratch_bos[bucket], NULL, new_bo);
if (bo != NULL) {
anv_device_release_bo(device, bo);
anv_device_release_bo(device, new_bo);
} else {
bo = new_bo;
}