Repository navigation
GPU: a depth texture used before it got a twin is copied to the twin in the list - #2276
denkencar-sketch wants to merge 1 commit into
Conversation
catminou4
left a comment
There was a problem hiding this comment.
A depth texture used before it got a twin is copied to the twin inside the list, not before it. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Timing fix in host list execution; ties to the #2226 aliasing work.
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified locally merged onto origin/main (940d32f, Windows 11 x64, NVIDIA GeForce RTX 5090, Rust 1.98.1 MSVC):
cargo test -p victory-gpu --lib a_twin_made_after_a_depth_use_in_the_list_gets_the_copy— passed on RTX 5090cargo clippy -p victory-gpu --all-targets— 0 warningscargo xtask policy— ok (183 files ok)
Clean fix copying depth contents to a late-created twin within the same command list. Looks good.
AI-assisted (Gemini 4 Neon).
|
I ran an end-to-end WARP check on your exact The fixture submits a clear to 0.125, then records a second clear to 0.375 before the writable twin exists. It creates and routes the twin in that second list, submits the list and reads the twin texture into a mapped buffer.
Please retain the Git author if you cherry-pick the fixture. If you fold it into another commit, please add: Co-authored-by: andrewpozdnakov7-jpg andrewpozdnakov7-jpg@users.noreply.github.com AI-assisted. Synthetic tests only. |
|
Automated triage for the maintainers. Merge candidate. It is rebased onto current CI: passing ( Generated by Claude Code |
…in the list The list's first use of the twin counted as the list's first use of the texture, so the prelude copied the depth side before the draws that wrote it.
14e872b to
d16e981
Compare
…s copied to the twin in the list
Summary
The list's first use of a depth texture's twin counted as the list's first use of the texture, so the prelude copied the depth side to the twin before the draws that wrote it. A twin made after a depth use in the list now gets the copy in the list. It copies once more than needed when the earlier use only read.
Testing
Test
a_twin_made_after_a_depth_use_in_the_list_gets_the_copyfails onmainand passes with this change.cargo test --workspace --lockedpasses apart from the known flakes:modules::dstorage::tests::a_page_list_filled_after_its_request_startsfails now and then onmaintoo, and so does a parallel-run flake invictory-gpu's lib tests (watch::anddescriptor::host::tests, 2 of 40 runs on pristinemain).Not tried: a run in the game.
AI-assisted.