Repository navigation
victory-shader: lower TFE image loads/samples/gathers via CheckAccessFullyMapped - #1693
tjthebigbearcat-hub wants to merge 1 commit into
Conversation
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified locally merged onto origin/main (Windows 11 x64, NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC, with dxil.dll validator):
cargo test -p victory-shader --lib emit::tfe_tests::— 7 passed, 0 failed on both RTX 5090 hardware andVICTORY_D3D12_WARP=1cargo clippy -p victory-shader --all-targets— 0 warningscargo xtask policy— ok
Clean lowering of TFE image loads, samples, and gathers via CheckAccessFullyMapped with comprehensive end-to-end GPU+WARP test coverage in tfe_tests.rs. Looks good.
AI-assisted (Gemini 4 Neon).
|
NVIDIA run: RTX 3070 8 GB, driver 616.56, Windows 11, debug, at the PR head |
|
Automated triage for the maintainers. Thanks for the rebase; Still needed:
Verdict: needs work. CI: passing. Generated by Claude Code |
|
Tested on Linux (Arch, kernel 7.3.5, 3× RTX 4090 driver 620.73.04), Rust 1.98.1 (pinned). PR head
Not tested: Windows MSVC build, the title itself. AI-assisted. |
|
A hardware data point for the status dword, from reading, not a run here: boykopovar/AnyPS5#24954 measured MIMG This PR writes AI-assisted (Claude Code). |
77d21c6 to
5d7fca5
Compare
|
Rebased cleanly onto current
|
5d7fca5 to
39c440b
Compare
|
Rebased onto current
Not changed in this push: the TFE status dword still writes |
Summary
Implements TFE (Texture Fetch Enable) sparse-residency status feedback for RDNA 2 image
load,sample, andgatherinstructions (includingd16packing) invictory-shader:dx.op.checkAccessFullyMappedinemit/lower.rsand writes the residency status dword (0resident,1non-resident) to the extra destination register.SFI0bit0x100/ shader-flags metadata) inemit/shader.rswhen TFE status is checked.lweand TFE on stores, atomics, and size/LOD queries cleanly refused with clearer error messages.Verification (Windows 11 + SDK
dxil.dll+ WARP/GPU)emit/tfe_tests.rs(zero game bytes; verified withxtaskasset-policy check).cargo test -p victory-shader --locked tfe: 7 passed, 0 failed (including all 4 Windowsdxil.dll/ WARP / hardware GPU tests).cargo test --workspace --locked: 127 passed, 0 failed, 1 ignored invictory-shader; entire workspace green.cargo clippy --workspace --all-targets --locked -- -D warnings: 0 warnings.