[host] d12: check if the device was removed during init

This commit is contained in:
Geoffrey McRae 2024-03-11 20:27:36 +11:00
parent dd6c79594b
commit 6e37305765

View File

@ -1014,6 +1014,15 @@ static bool d12_heapTest(ID3D12Device3 * device, ID3D12Heap * heap)
goto exit;
}
/* the above may succeed even if there was a fault, as such we also need to
* check if the device was removed */
hr = ID3D12Device3_GetDeviceRemovedReason(device);
if (hr != S_OK)
{
DEBUG_WINERROR("Device Removed: %s", hr);
goto exit;
}
result = true;
exit: