d3d12x, gpu: Intel Arc dynamic depth bias fallback and hardware recompiler fixes #927
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!927
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@UnkwnDev on GitHub · 2026-11-24 08:29 UTC · original
UnkwnDev:arc-optimizations→main· +108 −20 · 6 files · 2 commits · openThis 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
@dcastell1 on GitHub · 2026-11-24 08:40 UTC · original
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.
@eizispark on GitHub · 2026-11-24 08:45 UTC · original
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.@Diskuss on GitHub · 2026-11-24 08:34 UTC · original · edited 2026-11-24 09:29 UTC
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.@SlopTart on GitHub · 2026-11-24 10:37 UTC · original
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.
@JJAutoCompare on GitHub · 2026-11-25 00:47 UTC · original
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.@DavidM1911 on GitHub · 2026-11-25 09:17 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
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.