fix: keep A8_UNORM out of the R8 texture format family #330
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!330
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@mauroalvare on GitHub · 2026-11-26 03:37 UTC · original
mauroalvare:codex/victory-a8-format-family→main· +227 −1 · 4 files · 1 commits · openChange
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.
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.