Repository navigation
Conversation
The page-table readback test assumes every persistent descriptor pair starts at or above slot 2^18. A capped view heap can reserve only 2^16 dynamic slots, and its persistent pairs can come from that same pool. Check the allocator's invariant by reserving a draw-table allocation alongside the two live pairs, then check that all three spans are disjoint and the pairs are outside the title slots. The existing readbacks still check that the pairs remain stable across submissions. Based-on: Marvisak@6d021fe Tested-on: AMD Radeon RX 6800, Fedora Linux 45 (Wine/vkd3d-proton, DXC test build) Assisted-by: gpt-6.2 sol xhigh
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 memory::tests::— 3 passed, 0 failed on NVIDIA RTX 5090! Directly fixeslists_share_a_table_and_copies_keep_their_viewson capped NVIDIA view heaps!cargo clippy -p victory-gpu --all-targets— 0 warningscargo xtask policy— ok (183 files ok)
Clean check for live page-table allocations on capped view heaps. Looks great.
AI-assisted (Gemini 4 Neon).
catminou4
left a comment
There was a problem hiding this comment.
Test-only: strengthen lists_share_a_table_and_copies_keep_their_views to verify disjoint live allocations on capped heaps (dynamic-slot assumption removed). 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.
|
Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present, so the hardware-only shader checks run. I merged this PR's head AI-assisted (Claude Code); no game data. |
|
Heads-up: #2251 touches the same assertion in this test ( |
|
NVIDIA test report: RTX 4070, driver 621.01, Windows 11, Rust 1.98.1 MSVC. This host has a real capped view heap (NVIDIA's 1,000,000-descriptor limit), not a forced one. I ran head
So the relaxed check holds on a real capped heap as well as the Wine run with a forced 2^16 heap. No game data; the title was not run. AI-assisted. |
The page-table readback test assumes persistent view pairs start at or above slot 2^18. On a capped heap, the allocator can put those pairs in the smaller dynamic pool.
Keep the readback and pair-stability checks. While both pairs are live, reserve a draw-table allocation and assert that their two-slot ranges neither overlap each other nor the draw-table allocation. Also check that both pairs are outside the title slots.
The readback test passed on the default heap and with a locally forced 2^16-slot heap. FXC rejected the shader flags on this Wine setup, so I compiled the same HLSL with DXC for these runs. The DXC workaround and forced heap are local test changes.
Based-on: 6d021fe
Tested-on: AMD Radeon RX 6800, Fedora Linux 45 (Wine/vkd3d-proton, DXC test build)
Assisted-by: gpt-6.2 sol xhigh