Direct DXIL: XCL_DXIL_DIFF=1 draws the graphics tests through both backends #1925
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by mastrr9 on 2026-11-24T23:43:46Z.
With
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
Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T23:49:50Z.
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.
upstream-sync referenced this pull request2026-11-25 01:09:12 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T02:41:03Z.
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!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:01:21Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:07:21Z.
Triage (#1607) – head
e7cc810No open or merged PR does the same. #1934 (same author) is the kernel / compute half of
XCL_DXIL_DIFF. This PR is the graphics half (recomp/diff_graphics.rs, hooked into the draw tests inrecomp/tests.rs). It does not depend on #1934 and the two do not overlap, except for duplicatedenabled()/translator_failed()helpers.No problems found in the diff. The head commit has not been built or tested (per the description), and the only failing check is the PR description.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.