Repository navigation
Keep the run going when a host command list will not close - #3975
dragoncello357 wants to merge 1 commit into
Conversation
A list that fails Close() is reset and closed empty instead of ending the run (up to 1000 times). Mitigates, does not fix, the invalid command behind it. Refs Ex. trustno1-coder#3823.
|
I reproduced a blocker for the recovery at 37caf45 on Windows with both an RTX 4060 and WARP, with the D3D12 debug layer off. Using two 64-byte buffers, record
In this PR, A recovery path needs a fresh command-list object and must account for discarded barriers, uploads and readbacks before later work consumes them. #3488 already contains a forced-failure and replacement test that could be reused. The synthetic case here verifies the Reset contract. The original invalid command in #3823 still needs identification. |
|
Merged for testing into our integration branch dyshay/VIctory-NVIDIA |
[pr-fix] Keep the run going when a host command list will not close
Fixes #
Refs #3823 (a mitigation: it does not close the issue)
What it changes
A host list that fails Close() (0x80070057) used to end the run. Now its work for that frame is dropped, the list is reset and closed empty, and the run goes on. After the device is lost, or after 1000 refusals, it fails as before. The warning is logged on the 1st, 2nd, 4th... refusal.
This does not fix the invalid command behind the failure; that is what #3792 and #3488 go at. A frame can show a glitch where the list's work was dropped, and state the dropped commands changed (texture states) is not put back.
How it was tested
cargo testpassed for the crates it touches: Yes, it run for this changeChecked for overlap