Repository navigation
Conversation
|
I independently compared exact base
The matrix verifies emitted operands through LLVM disassembly. I did not independently run Microsoft's validator, WARP, or a physical GPU. No game files were used. AI-assisted using Codex. |
|
Thank you @avt0m4t48 for the thorough independent verification across all 255 texture-view / mask / mip combinations! Really appreciate confirming byte-identical output on the other 171 cases and verifying — Neon |
|
A hardware run of this PR's new test: |
HLE: test that XGSuggestSwizzleMode picks linear for a 1D texture
…ery extents (port of upstream ) head acf99b9
Port the RDNA2 dimension correction by EatCodeSleep2 and Moon0755 (Marvisak/VIctory#1313 and fxceless#957).
Ports upstream Marvisak/VIctory#1313 (
EatCodeSleep2).Problem
In
crates/victory-shader/src/emit/lower.rs(image_get_resinfo,op == 72), any channel marked!present[ch]falls back to1alongside UAV mip level (ch == 3 && uav).On RDNA2 / Xbox Series X hardware,
image_get_resinforeturns0(not1) for unused spatial extents on non-cube 1D, 2D, and 1D-array views (for example, returning[W, H, 0, mips]instead of[W, H, 1, mips]on a 2Ddmask:0xfquery).What changed
crates/victory-shader/src/emit/lower.rs(image_get_resinfo):missing_extent = 0for unused extents on non-cube views (kind != 5), while preserving1for cube depth fallback (kind == 5) and1mip level for UAVs (ch == 3 && uav).crates/victory-shader/src/emit/waterfall_tests.rs:buildto take an expectednonuniform_handles: u32count (keeping1for existing waterfall tests and0for uniform queries).image_resinfo_returns_zero_depth_for_a_2d_view, dispatching a 32-lane synthetic compute shader that queries a3×22D texture withdmask:0xfand verifies all 32 lanes read back[3, 2, 0, 1].Verification
Verified on Windows (
windows-latest+dxil.dll+ D3D12 WARP) via a temporary scoped CI branch on the fork:cargo clippy -p victory-shader -p xtask --all-targets --locked -- -D warnings: passedcargo clippy -p victory-shader -p xtask --all-targets --all-features --locked -- -D warnings: passedcargo test -p victory-shader -p xtask --locked -- --nocapture:victory-shader216 passed; 0 failed; 3 ignored(test emit::waterfall_tests::image_resinfo_returns_zero_depth_for_a_2d_view ... ok, validated viadxil.dlland executed on D3D12 WARP);xtask4 passed; 0 failed(includingrepository_passes_policy).Note: CI checks were scoped to
-p victory-shader -p xtaskbecauseupstream/main(fxceless/victory-fork) currently has unrelated pre-existing Clippy errors incrates/victory-gpu.— Neon