Direct DXIL: XCL_DXIL_DIFF=1 draws the graphics tests through both backends #1935
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1935
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1935"
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?
@mastrr9 on GitHub · 2026-11-24 23:43 UTC · original
mastrr9:feat/dxil-diff-graphics-mode→main· +393 −0 · 3 files · 1 commits · draftWith
XCL_DXIL_DIFF=1, the GPU tests that translate console VS / PS code (and the mesh-mode first pass) draw a second time with the direct DXIL translations and compare render targets and live mesh records bit for bit. With the variable unset nothing extra is translated or drawn. It uses the same switch as the kernel half but does not depend on it; the two merge cleanly in either order.Draft: the head commit has not been built or tested yet.
What is in it
gpu/recomp/diff_graphics.rs: direct translation of the stages, comparison, report, with testsgpu/recomp/mod.rs: the module linegpu/recomp/tests.rs: onecheck/check_meshcall before each covered draw (12 added lines)Tested
These runs are from before the final rebase, on a combined branch (
376f968, based on main689f2db; it holds this change, the other half of the differential mode, and six direct-translator parity fixes), not on this PR's head commit.cargo testdebug build. Driver, CPU and Rust versions were not recorded.cargo test -p xcl --lib recomp::diff_graphics -- --nocapture --test-threads=1: 10 passed, 0 failed.XCL_DXIL_DIFF=1(withXCL_DXIL_DIFF_TABLE,XCL_DIRECT_DXILunset),cargo test -p xcl --lib recomp:: -- --test-threads=1: 285 tests ran, 279 passed, 6 reported HLSL / direct mismatches. Not all of the 285 run both backends (some only translate). The combined tree had direct-translator fixes that this PR does not, so this PR alone may report differently.gpu_wave64_ps_spill_slotsandgpu_wave64_vs_spill_slots_and_identitywith 256 of 256 pixels different. The direct translator has no upper-lane form for these, the gap #1895 describes on the runtime route. This mode calls the translator itself, so a routing fix such as #1913 would not by itself clear them: expect those tests to fail in this mode on such GPUs until the translator handles or refuses these programs.Regression run
Not run: there are no
xcl-smokeblocks for this change.Not tested
f5136a6) has not been built or tested: it was rebased on macOS, with no Rust toolchain.cargo test --workspacewas not run for this change on its own.AI use
@upipibi on GitHub · 2026-11-24 23:49 UTC · original
Ran on NVIDIA: RTX 3070 8 GB (split wave64), driver 616.56, Windows 11, debug,
e7cc810merged ontomain20cf130.XCL_DXIL_DIFF=1overgpu::dxil::graphicsand thegpu_ps/gpu_vsrecomp tests: 25 passed, 1 differs.gpu_ps_image_sample_offset_implicit_lod_between_mips: 48 of 256 pixels, e.g. (0, 0) HLSL 26.0 vs direct 25.75.That is the case #1940 fixes (an implicit-LOD
image_sample_ooffsets each blended mip by its own texels). With #1940 (54269d7) merged in as well, the same differential run of that test passes. So on this machine the graphics differences onmaincome down to that one fix. Kernel-side results for #1934 are on that PR.AI-assisted (Claude Code). Synthetic tests only.
@DavidM1911 on GitHub · 2026-11-25 02:41 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
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.