[pr-tests][shaders] Write SV_Depth in the early-depth test fixture #227
Loading…
Reference in a new issue
No description provided.
Delete branch "superhero-520/Darner:test-sv-depth-export"
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?
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
69b769d97d6554c13639ccd06bfdb10485447ace, based onf3840d73d3504c30218debfbc8795b9225447317.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 --nocapturereproduced the validation error on main and passed with the fix.emit::waterfall_testsserially. All passed. As a negative control, forcing early depth back on made the repaired test fail atassert!(!early_depth).cargo +1.98.1 test --offline --locked -j 2 -p darner-shader --lib -- --test-threads=2completed in 2569.74 s. The full shader library suite reported 558 passed, 0 failed and 16 ignored, including a pass for the exhaustiveoracle64::legacy_mul_forms_are_exacttest. Cargo exited 0.cargo xtask policypassed (555 files). Both workspace Clippy gates passed with warnings denied, including the all-features gate.cargo +1.98.1 test --workspace --lockedat default test concurrency exited 101. The first stopped indarner-loaderatconsole_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 parentf3840d73. The second workspace run stopped indarner-gpuatwatch::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.Checklist
main.docs/asset-policy.md.Checked for overlap
Review of
69b769d9(read only, not built or run):SV_Depthbut its shader never wrote depth, so DXC rejected the fixture. Its own shader now exports depth before the colour export.exp mrtzdecodes correctly (target 8, one channel from v4, 0xF8000081 / 0x04), and the colour export keepsdone, so the order is valid.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.f3840d73).Ready to merge. There is nothing for players to test in game, so this one needs no test call.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.