Don't treat missing BLASs as fatal

* It's possible to create a TLAS referencing a BLAS, destroy the buffer backing
  the BLAS, and we won't know the TLAS is invalid and will try to serialise it.
This commit is contained in:
baldurk
2024-05-22 16:01:45 +01:00
parent 9332bd34f9
commit c59f46e8dc
+3 -5
View File
@@ -1218,11 +1218,9 @@ bool D3D12ResourceManager::Serialise_InitialState(SerialiserType &ser, ResourceI
if(blasId == ResourceId() || blas == NULL)
{
RDResult err;
SET_ERROR_RESULT(err, ResultCode::APIDataCorrupted,
"BLAS referenced by TLAS is not available on replay");
m_Device->ReportFatalError(err);
return false;
RDCWARN("BLAS referenced by TLAS is not available on replay - possibly stale TLAS");
blasAddrs[i] = 0;
continue;
}
blasAddrs[i] = blas->GetGPUVirtualAddress() + blasOffs;