fix: validate the host format of texture UAVs #320
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!320
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-320"
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 02:49 UTC · original
mauroalvare:codex/victory-typed-uav-support→main· +315 −13 · 3 files · 1 commits · openChange
descriptor::host::fitsin Neptune accepted aD32_FLOATUAV on a UAV-enabledR32_TYPELESStexture because the two formats belong to the same family. Both tested D3D12 adapters report thatD32_FLOATlacks typed view and store support. The baseline repro stops at the eligibility assertion before submitting the unsupported descriptor to the native API.Check the device's typed UAV and typed store flags after resolving the actual host view format, including sRGB aliases and target stand-ins. Cache the result per format for the runtime's D3D12 device and route unsupported views to the existing null descriptor fallback. This is in the texture UAV materializer used by the Neptune runtime built by
tools/lancer_victory.ps1. D3D12 format support 1 · D3D12 format support 2The format check adapts the approach from Marvisak/VIctory to Neptune's existing format resolution. The source and licence are recorded in
THIRD_PARTY.mdand the commit trailers.Verification
Base
c4c93bdc413191a9dc909998d2d53080a3f0c880and fix11cc463aeb25d6b79670e963e846e3742c5ad1f7. To reproduce the baseline, addtyped_uav_tests.rsand its#[cfg(test)]module declaration from this PR to the base revision. Run fromthird_party/victory. LeaveVICTORY_D3D12_WARPunset for hardware or set it to1for WARP.fits=true, test failsfits=false, 1 passedfits=true, test failsfits=false, 1 passedBoth adapters reported
D32_FLOAT support1=0x3110b0, support2=0x200. Actual compute readback on the fix returnednull UAV read=0x00000000, valid UAV retained=0x13579bdfon both adapters. The targeted runs had no skips.The
B5G5R5A1_UNORMcase from VIctory has a different host format on these devices. Neptune already resolves it toR8G8B8A8_UNORM(28) on the 5070 Ti, where the original format lacks typed view and store support. WARP retainsB5G5R5A1_UNORM(86), which supports both. The eligibility test passes on the effective format in both cases.cargo build --locked --offline --release -p victorypassed.cargo test --locked --offline -p victory-loader --test load_probereported 2 passed.cargo xtask policyreportedasset policy: 200 files ok.cargo test --locked --offline -p victory-gpu --lib --features diagnostics -- --test-threads=1reported 197 passed, 3 failed, 3 ignored on the fix. The base reported 196 passed, 3 failed, 3 ignored with the new test filtered out. 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.python -m ruff check --select W605,F,E9 PrototypeScarlett tests toolsreportedAll checks passed!.cmake -S runtime -B runtime/build -A x64andcmake --build runtime/build --config Release --parallel 2passed.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 tools/build_tombox.pybuilt all 10 open-source DLLs from the pinned TomBox revisionf89e4106fe8a1728515afa34ceb5097132cadcda.python -m pytest -rswithANYXBOXX_REQUIRE_RUNTIME=1on the configured Python 3.13.15 environment reported1665 passed in 72.88s (0:01:12)with no skips.Oracle and test data
The test creates a 1×1 texture and uses
CheckFeatureSupportas the descriptor eligibility oracle. It then runs a synthetic one-thread compute shader through a valid slot and the null slot from Neptune's descriptor materializer. The readback checks the null read and the retained marker after a write to the null slot. The shader and texture are generated by the test. D3D12 null UAV semanticsChecklist
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.