d3d12/descriptor: GPU test that a record across two watch pages is mirrored (D3D12-DESCRIPTOR-STRADDLE-GPU-TEST) #3448
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
5 participants
Due date
No due date set.
Reference
leonida/mandy!3448
Loading…
Reference in a new issue
No description provided.
Delete branch "oreofr/descriptor-straddle-gpu-test"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Item: D3D12-DESCRIPTOR-STRADDLE-GPU-TEST (claimed in #3312)
What
This adds one GPU test to
d3d12/crates/leonida-gpu/src/descriptor.rs:dirty_sampler_across_two_watch_pages_is_mirrored. The test:sync_heaps();No code change. The test comes from closed #3431, which #3445 superseded, after Darner (TrustNo1/Darner, GPL-3.0-or-later). MoonEyes asked for it on the bridge.
Why
#3445 fixed the record across a watch page. Its commit says the red case was "by reasoning, not run", and its own test is pure (no GPU). This test checks the fix end to end on a real hardware heap.
Red / green (RTX 4070 Laptop, driver 621.40, Windows 11)
f70caeea4+ this test:test descriptor::tests::dirty_sampler_across_two_watch_pages_is_mirrored ... ok. It ran on a hardware heap and was not skipped.descriptor.rsfrom14e1966f6^(before #3445) + this test: it fails withleft: (false, false),right: (true, false). Without #3445 the straddling sampler is never mirrored.Checks
cargo test --locked -p leonida-gpu: 756 passed, 0 failed, 60 ignored.check_no_game_dataon the changed file: clean.cargo clippy -p leonida-gpu --all-targets -- -D warningsreports 4 errors, all in code already on main, none in this test:list.rs:2993,enginenever used;list.rs:3120, too many arguments;list/values.rs:249, comparison withfalse;descriptor.rs:464, unneeded late initialization.Clippy is report-only in this repo's CI.
Tested on an RTX 4070 Laptop. Unit/GPU test only, with no in-game run: it changes no runtime code.
AI-assisted.
🤖 Generated with Claude Code
RUN — Real-GPU Unit Test Gate (NVIDIA RTX 5070 12 GB, Windows 11)
Tested PR head
b88cde67emerged cleanly ontomain(bba262b94):cargo test -p leonida-gpu --lib --locked descriptor::tests::dirty_sampler_across_two_watch_pages_is_mirrored -- --exact --nocapture— PASS (1/1on a real D3D12 device)cargo test -p leonida-gpu --lib --locked each_planned_part_starts_on_a_record_and_reads_the_straddler_whole— PASS (1/1)cargo clippy -p leonida-gpu --all-targets --locked -- -D warnings—0warningspython -I tools/d3d12_switches.py --check d3d12/docs/switches.md— PASSpython -I scripts/check_no_game_data.py— PASSClean merge and green real-GPU verification. Ready for merge.
AI-assisted.
A separate hand-generated 4x4 BC7 replacement fixture returned the new texels after a successful upload and kept the old texels after a short read. A follow-up could run this PR's generated page-straddle test on software and hardware D3D12 backends and check the two slots separately. Slot 0 should be mirrored and slot 1 should remain unchanged.
AI-assisted with OpenAI Codex.
Test report from another card (I changed no code). Not a review of the code.
b88cde67emerged ontomain93b9d90a2: clean merge.cargo test -p leonida-gpu --lib --locked descriptor::tests::dirty_sampler_across_two_watch_pages_is_mirrored -- --exact --nocapture: passed (1 passed; 0 failed; 0 ignored).GPUs tested: RTX 3060 Ti 8 GB, driver 610.88. No game files were used.
AI-assisted: yes (Claude Code, Claude Fable 5.2; verification only).
Merged by Moon's agent, on Moon's written authorization (two maintainers). Checked before merging:
cargo test --locked -p leonida-gpu -p leonida-shader -p xtaskgreen on main + this test (1247 passed, 0 failed, Windows 11, RTX 4060;dirty_sampler_across_two_watch_pages_is_mirroredok),check_no_game_data.pyclean, and a separate reviewer agent returned ACCEPT. The new headfd351cad5is a clean merge of the tested head with main and adds only the test. Main is now03d3b7600a.