[pr-tests][shaders] Write SV_Depth in the early-depth test fixture #227

Open
superhero-520 wants to merge 1 commit from superhero-520/Darner:test-sv-depth-export into main
First-time contributor

Contributor role (optional)

Role already held.

What it changes

The depth-export case declared SV_Depth but only wrote color. On main, Microsoft DXC rejects the fixture with “Not all elements of output SV_Depth were written.” The fixture now writes depth from v4 before its final color export. It checks that early depth stays off and that sampled-resource tracking stays active.

How it was tested

  • Tested contents match fork commit 69b769d97d6554c13639ccd06bfdb10485447ace, based on f3840d73d3504c30218debfbc8795b9225447317.
  • On Windows with Microsoft DXC 1.8.2505.32, cargo +1.98.1 test --locked --offline -j 2 -p darner-shader --lib emit::waterfall_tests::sampled_marks_restore_early_depth_only_when_safe_in_pixel_shaders -- --exact --nocapture reproduced the validation error on main and passed with the fix.
  • Ran all 11 emit::waterfall_tests serially. All passed. As a negative control, forcing early depth back on made the repaired test fail at assert!(!early_depth).
  • On the same revision and DXC 1.8.2505.32, cargo +1.98.1 test --offline --locked -j 2 -p darner-shader --lib -- --test-threads=2 completed in 2569.74 s. The full shader library suite reported 558 passed, 0 failed and 16 ignored, including a pass for the exhaustive oracle64::legacy_mul_forms_are_exact test. Cargo exited 0.
  • cargo xtask policy passed (555 files). Both workspace Clippy gates passed with warnings denied, including the all-features gate.
  • Two runs of cargo +1.98.1 test --workspace --locked at default test concurrency exited 101. The first stopped in darner-loader at console_insn::tests::clzero_on_a_guarded_line_goes_through_the_guard. The same loader test binary then passed all 92 tests in isolation, as did the loader suite on parent f3840d73. The second workspace run stopped in darner-gpu at watch::watch_pipe_epoch_tests::ask_once_delta_reask_direct_carves_refreshes_and_updates_page_epochs. That same GPU test binary had passed 1,773 tests with 81 ignored in the first run. The full workspace gate remains failing on this host.
  • This is a synthetic shader test. It changes no runtime default and makes no performance claim. Gameplay and cross-GPU comparisons were not run.

Checklist

  • Gameplay exemption: tests only.
  • One change based on main.
  • The diff follows docs/asset-policy.md.
  • Depends on: none.

Checked for overlap

  • Searched open PRs for this failure and the changed file.
  • Related reports include #163, #186, #213 and #217.
  • No overlapping fix found.
## Contributor role (optional) Role already held. ## What it changes The depth-export case declared SV_Depth but only wrote color. On main, Microsoft DXC rejects the fixture with “Not all elements of output SV_Depth were written.” The fixture now writes depth from v4 before its final color export. It checks that early depth stays off and that sampled-resource tracking stays active. ## How it was tested - Tested contents match fork commit `69b769d97d6554c13639ccd06bfdb10485447ace`, based on `f3840d73d3504c30218debfbc8795b9225447317`. - On Windows with Microsoft DXC 1.8.2505.32, `cargo +1.98.1 test --locked --offline -j 2 -p darner-shader --lib emit::waterfall_tests::sampled_marks_restore_early_depth_only_when_safe_in_pixel_shaders -- --exact --nocapture` reproduced the validation error on main and passed with the fix. - Ran all 11 `emit::waterfall_tests` serially. All passed. As a negative control, forcing early depth back on made the repaired test fail at `assert!(!early_depth)`. - On the same revision and DXC 1.8.2505.32, `cargo +1.98.1 test --offline --locked -j 2 -p darner-shader --lib -- --test-threads=2` completed in 2569.74 s. The full shader library suite reported 558 passed, 0 failed and 16 ignored, including a pass for the exhaustive `oracle64::legacy_mul_forms_are_exact` test. Cargo exited 0. - `cargo xtask policy` passed (555 files). Both workspace Clippy gates passed with warnings denied, including the all-features gate. - Two runs of `cargo +1.98.1 test --workspace --locked` at default test concurrency exited 101. The first stopped in `darner-loader` at `console_insn::tests::clzero_on_a_guarded_line_goes_through_the_guard`. The same loader test binary then passed all 92 tests in isolation, as did the loader suite on parent `f3840d73`. The second workspace run stopped in `darner-gpu` at `watch::watch_pipe_epoch_tests::ask_once_delta_reask_direct_carves_refreshes_and_updates_page_epochs`. That same GPU test binary had passed 1,773 tests with 81 ignored in the first run. The full workspace gate remains failing on this host. - This is a synthetic shader test. It changes no runtime default and makes no performance claim. Gameplay and cross-GPU comparisons were not run. ## Checklist - [x] Gameplay exemption: tests only. - [x] One change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] Depends on: none. ## Checked for overlap - [x] Searched open PRs for this failure and the changed file. - Related reports include #163, #186, #213 and #217. - No overlapping fix found.
Owner

Review of 69b769d9 (read only, not built or run):

  • Right fix: case 5 declared SV_Depth but its shader never wrote depth, so DXC rejected the fixture. Its own shader now exports depth before the colour export. exp mrtz decodes correctly (target 8, one channel from v4, 0xF8000081 / 0x04), and the colour export keeps done, so the order is valid.
  • The test now checks more than before: early depth stays off, and sampled-resource tracking (SLOT_SAMPLED) is still there with a depth export. The negative control (forcing early depth back on makes it fail) shows it tests what it claims.
  • Test only: no runtime change. It merges cleanly with main (f3840d73).

Ready to merge. There is nothing for players to test in game, so this one needs no test call.

Review of 69b769d9 (read only, not built or run): - Right fix: case 5 declared `SV_Depth` but its shader never wrote depth, so DXC rejected the fixture. Its own shader now exports depth before the colour export. `exp mrtz` decodes correctly (target 8, one channel from v4, 0xF8000081 / 0x04), and the colour export keeps `done`, so the order is valid. - The test now checks more than before: early depth stays off, and sampled-resource tracking (`SLOT_SAMPLED`) is still there with a depth export. The negative control (forcing early depth back on makes it fail) shows it tests what it claims. - Test only: no runtime change. It merges cleanly with main (f3840d73). Ready to merge. There is nothing for players to test in game, so this one needs no test call.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'test-sv-depth-export:superhero-520-test-sv-depth-export'
git switch 'superhero-520-test-sv-depth-export'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'superhero-520-test-sv-depth-export'
git switch 'superhero-520-test-sv-depth-export'
git rebase 'main'
git switch 'main'
git merge --ff-only 'superhero-520-test-sv-depth-export'
git switch 'superhero-520-test-sv-depth-export'
git rebase 'main'
git switch 'main'
git merge --no-ff 'superhero-520-test-sv-depth-export'
git switch 'main'
git merge --squash 'superhero-520-test-sv-depth-export'
git switch 'main'
git merge --ff-only 'superhero-520-test-sv-depth-export'
git switch 'main'
git merge 'superhero-520-test-sv-depth-export'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!227
No description provided.