d3d12x, gpu: Intel Arc dynamic depth bias fallback and hardware recompiler fixes #921
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/927"
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 UnkwnDev on 2026-11-24T08:29:19Z.
This pull request ports Intel Arc DG2 hardware fixes and recompiler improvements:
Dynamic depth bias patched-PSO fallback for Intel adapters:
Intel Arc DG2 drivers (Vendor 0x8086) advertise DynamicDepthBiasSupported via OPTIONS16, but ID3D12GraphicsCommandList9::RSSetDepthBias is a no-op on DG2 hardware rasterizers, causing dynamic depth bias overrides to be dropped. In crates/xcl/src/hle/d3d12x/device_x.rs, probe_dynamic_depth_bias checks adapter vendor and marks native dynamic depth bias unsupported on Intel hardware, correctly directing lists to the patched-PSO derivation path.
Hardware recompiler capabilities and tolerances:
Tested
cargo test --workspace(672 passed, 0 failed, 21 ignored in lib; 13/13 console_dlls_e2e passed; 3/3 console_shaders passed; 1/1 disasm_e2e passed; 3/3 e2e passed including test_title_runs_and_game_folder_is_untouched and test_title_draws_with_a_root_signature_under_the_debug_layer)Regression run
main(beaa245):PR (
970c05e):Not tested
AI use
Imported from ivall/xcl. Originally posted by Diskuss on 2026-11-24T08:34:58Z.
Tested on AMD Radeon RX 9070 XT (RDNA4) at
970c05e1f2ab1755fe90091ac9c18ef24d86d1acAMD Radeon RX 9070 XT (RDNA4), driver 32.0.32015.7029; Ryzen 7 5700X3D; 32 GB RAM; Windows 11 Pro build 26300.9974; Rust 1.100.0 x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug build.
Note: this PR has only been tested on Intel Arc so far, and this is an AMD run.
Tested:
cargo build --workspace: OKcargo test --workspace --no-fail-fast -- --test-threads=4: 713 passed, 0 failed, 41 ignoredcargo test -p xcl --lib <filter> -- --test-threads=1):gpu::recomp: 188 passed, 0 failed (18 ignored)readback_routing_tests: 4 passed, 0 failed1ec4c98) gave 715 passed, 0 failed, 41 ignored. The 2-test difference is expected: the branch is 4 commits behind main.Not tested: retail title /
scripts/smoke.ps1(no game files), release build.Report written by Claude Code (Claude Sonnet 5.5) from a real run on this machine.
Correction (hidden skips): "0 SKIPPED" above means no
SKIPPEDline appeared in the normal run. A later-- --nocapturerun on this machine shows that two tests skip silently, because the D3D12 debug layer is not installed (no Graphics Tools /d3d12SDKLayers.dll). libtest captures their output, so they show asok:e2e::test_title_draws_with_a_root_signature_under_the_debug_layerandtexture_states::uploads_start_from_each_subresources_state. Neither is related to this change, and all other GPU tests ran on the RX 9070 XT.Imported from ivall/xcl. Originally posted by dcastell1 on 2026-11-24T08:40:57Z.
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on clean
main@beaa245(713 passed, 0 failed, 41 ignored on this box):Same count as main, and the Intel-Arc depth-bias fallback obviously does not take effect on this NVIDIA device — what matters is that it changes no verdict. One earlier run of the same patch died in the sparse-window tests with
memory allocation of 3145728 bytes failedwhile this box was busy with another build; a clean re-run is green, so that was the host, not the change.Tree restored afterwards (md5 and a full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.
Imported from ivall/xcl. Originally posted by eizispark on 2026-11-24T08:45:32Z.
Hardware check of
970c05e1f2ab1755fe90091ac9c18ef24d86d1ac(verified clean merge withmain077ce40): pass.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), release + test profilecargo test --workspace -- --test-threads=4:713 passed, 0 failed, 41 ignored(GPU tests skipped on this adapter:none)gpu::recomp(188 passed, 0 failed, 18 ignored, includingupper_lanes::tests9 passedand allfp64_ready()tests executing natively),hle::d3d12x::device_x::tests(5 passed), andhle::d3d12x::real::readback_routing_tests(4 passed)Regression run
main(beaa245):PR (
970c05e):Not tested
0x8086dynamic depth bias fallback and non-fp64 skip paths are not exercised on AMD RDNA4); gameplay past the menusAI use
scripts/smoke.ps1harness on this machine and formatted this report.Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T10:37:36Z.
Linux / AMD RDNA3 datapoint.
Merged state: head
970c05eonto main9aec53d, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 714 passed, 10 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows plus this rig's title-textures flake family (see #718). Intel Arc depth-bias fallback path compiles/runs clean here; the Arc gate is inert on RADV as expected.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T00:47:15Z.
Intel Arc A770 focused test report
Tested by the Codex workstream at clean PR head
970c05e1f2ab1755fe90091ac9c18ef24d86d1acon Intel Arc A770 (driver32.0.101.9175), Ryzen 7 3800X, Windows 11 Enterprise Evaluation26200.9974, Rust1.100.0x86_64-pc-windows-msvc debug, DXC/DXIL1.9.2609.5,XCL_ADAPTER=A770.cargo test -p xcl --lib gpu_float_compares_random -- --nocapture --test-threads=1exited 0 with 1 passed, 0 failed, 0 ignored. At wave32, F32 and F16 each exercised 1,600 lanes × 33 comparisons with 0 distinct failures. The test accepted 527 F32 and 326 F16 results with subnormal flushing. F64 comparisons were omitted on this adapter, which reports no shader FP64.cargo build -p xcl -p xcl-testtitle -p testgame-mwsucceeded. Incargo test -p xcl --test e2e test_title_runs_and_game_folder_is_untouched -- --exact --nocapture --test-threads=1, the bundled title passed theRSSetDepthBiasXcheck, with XCL logging the patched-PSO fallback. The outer e2e test failed (0 passed, 1 failed, 0 ignored, exit 101) at the presentation assertion. In Windows Session 0 the swap-chain call returned0x887A0022and the report recorded 0 presents. The title skipped audio voices because there was no audio device.XCL_REQUIRE_GPU=fp64,cargo test -p xcl --lib gpu_f64_class_compare -- --nocapture --test-threads=1emittedSKIPPED …: no fp64and exited 0 (1 passed, 0 failed, 0 ignored in libtest). This was a whole-test skip.Not tested native FP64 or wave64, visible presentation, the PR base, the full workspace suite, or a retail smoke run.
AI use Codex (
gpt-6.2-sol) in T3 Code ran these checks and wrote the test report. The coordinator verified the raw logs and exact PR head before posting.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T09:17:18Z.
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-12-01T02:32:28Z.
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-01T04:30:54Z.
Triage (#1607) – head
970c05eNo other PR overlaps. Problems in the diff:
xcl_x_thread: every hardware wave now takesnthreads from 0 (InterlockedAdd(XCL_XW, n, base)). A partial wave that arrives first takes threads 0..n-1, so later full waves start at a base that is not a multiple of 32 and straddle console wave halves. main gives full waves 32-aligned chunks and the partial wave the tail.gpu_clamp_and_omod_per_instructionandgpu_valu_16_and_64_bitare now skipped entirely without fp64, which also drops their non-f64 coverage.Recommendation: close (bad: weakened assertions and a broken xcl_x_thread mapping; split the Intel depth-bias fallback into its own PR).
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.