test(victory-gpu): verify the fallback for an R8 view of A8 #330
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/330"
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?
Imported from LooperSalty/AnyXboxX. Originally posted by mauroalvare on 2026-11-26T03:37:42Z.
Vice-Tay
Vice-Tay already keeps
A8_UNORMoutside theR8_TYPELESSfamily. The GPU regression checks the descriptor path end to end. A compatible alpha view returned the stored alpha value and the rejected R8 view returned zero on the RTX 5070 Ti.DXGI format support
Earlier Neptune description
Change
Neptune's format-family table treated
A8_UNORMas part ofR8_TYPELESS. The shader-view materializer matched anR8_UNORMrequest to anA8_UNORMtexture and substituted the alpha format. A shader then read alpha from the slot that should have received the incompatible-view fallback.Keep
A8_UNORMin its own family so the existing D3D12 view check rejects that pairing and emits a null SRV. This is in the resource and descriptor path of the Neptune runtime built bytools/lancer_victory.ps1. Microsoft lists casting within the bit layout as unavailable forA8_UNORM, and specifies zero reads from a null SRV. Format support at feature level 12.0 · CreateShaderResourceViewThe change adapts AnoHunted's format-family fix from VIctory. The commit trailer and
THIRD_PARTY.mdrecord the source and licence. VIctory source commitVerification
Base
c4c93bdc413191a9dc909998d2d53080a3f0c880and fix9d50884cf96bc5fe7e3ec6f0743f1897a57b996c. For the baseline, add the GPU test file, its module declaration, and the family-boundary unit test from this PR. Run fromthird_party/victory, withVICTORY_D3D12_WARPunset for NVIDIA or set to1for WARP.0.2509804, accepted as format 650, rejected and null0.2509804on both revisions0.2509804, accepted as format 650, rejected and null0.2509804on both revisionsThe baseline readback assertion failed on each adapter. The fix reported
1 passed; 0 failed; 0 ignoredwith actual GPU readback on each.cargo test --locked --offline -p victory-gpu --lib --features diagnostics resource::tests::alpha_format_stands_outside_the_red_typeless_family -- --exact --test-threads=1failed on the base with family 60 forA8_UNORM. It passed with the fix.cargo test --locked --offline -p victory-gpu --lib --features diagnostics -- --test-threads=1reported 198 passed, 3 failed, 3 ignored. The matchingmainbaseline had 196 passed, 3 failed, 3 ignored. The same assertions failed inspans_say_the_next_start_and_the_lowest_level_viewed,warp_card_fetch_copies_flagged_pieces_to_their_slots, andwarp_card_patch_writes_the_masked_bytes_and_no_others.cargo test --locked --offline -p victory-loader --test load_probereported 2 passed.cargo build --locked --offline --release -p victorypassed.cargo xtask policyreportedasset policy: 200 files ok.cargo build --release --locked --offline --manifest-path rust/Cargo.tomlpassed.cargo test --release --locked --offline --manifest-path rust/Cargo.tomlreported 12 passed in total.python -m ruff check --select W605,F,E9 PrototypeScarlett tests toolsreportedAll checks passed!.python -m pytest -rswithANYXBOXX_REQUIRE_RUNTIME=1on Python 3.13.15 reported1665 passed in 77.14s (0:01:17)with no skips.Oracle and test data
The fixture clears one texel of a synthetic
A8_UNORMtexture to alpha64/255. It materializes a matching A8 view and a cross-family R8 request, then reads the alpha channel from both descriptor slots in one dispatch. An accepted baseline slot is checked for coercion to A8 before submission. The matching view identifies the initialized texel and the cross-family slot exercises the existing null SRV fallback.Checklist
AI assistance was used for investigation, implementation, and verification with OpenAI Codex.
Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-27T13:03:15Z.
Rebase on current main (
fa6b209e) is needed: recent merges into main now conflict with this PR. Please rebase and push so the PR can be reviewed again.Imported from LooperSalty/AnyXboxX. Originally posted by mauroalvare on 2026-11-27T17:02:15Z.
Updated this PR to
a4453083and registered both GPU test modules. The A8/R8 view regression ran on the RTX 5070 Ti and passed.