Tests: cover D3D12.X pipeline hooks and device extensions #1921
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!1921
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1921"
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?
@Vadson159 on GitHub · 2026-11-24 23:12 UTC · original
Vadson159:tests/d3d12-pipelines-and-extensions→main· +649 −0 · 1 files · 1 commits · openAdd host-driver parity, live GPU rendering/compute dispatch, and contract tests for XCL's ID3D12Device / ID3D12Device2 pipeline hooks and console device extensions without requiring console game files. Part of #480.
What is in it
eal::create_device + synthetic mapped caller trampolines (RtlLookupFunctionEntry + modules::register_mapped) covering:
Tested
ustc 1.100.0 (0ef1bc386 2026-11-09) (stable-x86_64-pc-windows-msvc), debug & release.
o heap windows, gpu_pso_e2e 7, heap_probe 0 passed / 4 ignored, low_va 1, pls_quota 1, predication_e2e 1,
pf_e2e 2, shaders_e2e 4, sparse_reinit 1, exture_states 1, xg_oracle 6 passed / 12 ignored).
Regression run
Not needed (crates/xcl/src/ outside tests is untouched; this PR adds only crates/xcl/tests/d3d12_pipelines_and_extensions.rs).
Not tested
AI use
@fromthemoonx on GitHub · 2026-11-24 23:43 UTC · original
Passes on NVIDIA (RTX 3060, wave32), 10 of 10 and under the debug layer. The live derived-PSO test catches a dropped sample-mask or rasterizer patch, but not a misplaced rasterizer patch.
Tested
stable-x86_64-pc-windows-msvc; DXC 1.9.2602.17; debug0c8f2928e93882fda7c65238c5768ccbec974bd1:cargo test -p xcl --test d3d12_pipelines_and_extensions: 3 passed, 10 of 10 runs. WithXCL_D3D12_DEBUG=1 ... -- --test-threads=1: 3 passed, 3 of 3 runs.cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4: 978 passed, 0 failed, 45 ignored. Merged onto currentmain20cf130(no conflict): 979 passed, 0 failed, 45 ignored. Both runs: 21SKIPPED ... no wave64/ per-lane refusals ingpu::recomp::{lower,lower_dxil,tests}andheap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows.apply_patchinhle/d3d12x/device_x.rs(no other test references it):derived_pipeline_state_patches_render_state_on_gpu_and_validates_errorsfails at line 591.0x1C8instead of0x1C4): still passes.FillMode(SOLID= 3) lands inCullMode(=BACK) andCULL_MODE_FRONT(2) lands inFrontCounterClockwise(true), so the clockwise triangle is still culled. The offset assertion at line 520 checks thewindowscrate's layout, not the offsetsapply_patchuses. A second rasterizer patch that must keep the triangle would catch this:CULL_MODE_FRONTwithFrontCounterClockwise = trueshould draw, but shifted by 4 bytes it becomesCULL_MODE_BACKwith the same winding and culls it.Not tested
AI use
@raylitebull on GitHub · 2026-11-25 01:54 UTC · original
Audit & CI note on
0c8f292:crates/xcl/tests/d3d12_pipelines_and_extensions.rsadds thorough live-GPU parity & contract tests acrossCreateGraphicsPipelineState(#10/#60),CreateComputePipelineState(#11/#62),CreatePipelineState(#47/#86),CreateDerivedPipelineStateX(#55), serialization stubs, and page-pool registration (#74/#75).CIworkflow approved (running).Remaining before merge:
Build and testfinishing green plus an AMD verification pass on0c8f292.@raylitebull on GitHub · 2026-11-25 02:14 UTC · original
Thanks @fromthemoonx for the RTX 3060 verification and mutation check! Holding merge on the one test-gap item from that review: the current rasterizer patch test does not catch a 4-byte offset shift in
apply_patch(0x1C8vs0x1C4).@Vadson159 — could you add a second rasterizer patch assertion (
CULL_MODE_FRONTwithFrontCounterClockwise = true, which draws when unshifted and culls if shifted by 4 bytes)? Everything else on this PR looks solid and ready once that assertion lands and passes CI.@DavidM1911 on GitHub · 2026-11-25 02:24 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!
@JJAutoCompare on GitHub · 2026-11-25 02:55 UTC · original
PR #1921 compatibility verification
Tested
0c8f2928e93882fda7c65238c5768ccbec974bd1on STOR-WINLAB, Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X. Intel Arc A770 16 GiB, driver 32.0.101.9175, wave range 8–32,DoublePrecisionFloatShaderOps=0, and nod3d12SDKLayers.dll.0ef1bc386, 2026-11-09), DXC/DXIL 1.9.2609.5, unoptimized profiles with debug info disabled, andXCL_ADAPTER=A770. Bothcargo build --workspaceandcargo test --workspace --no-runsucceeded outside the GPU lock.cargo test -p xcl --test d3d12_pipelines_and_extensions <filter> -- --nocapture. All three passed on the real Arc backend with zero skips, both individually and in the full suite.graphics_and_compute_pso_match_host_driver_and_fallbackschecked PSO creation and stream parity, invalid descriptors, unknown-IID fallback, and compute readback.derived_pipeline_state_patches_render_state_on_gpu_and_validates_errorschecked pixel readback for blend, culling, sample mask, and depth patches, plus chaining and error contracts.console_pipeline_serialization_and_device_extensions_follow_contractchecked serialization and deserialization return codes, debug flags, and page-pool registration and removal.cargo test --workspace --no-fail-fast -- --test-threads=4exited 101. The 21 harness summaries total 953 passed, 25 failed, 45 ignored. The log contains 22SKIPPEDlines. These record cases that provide no coverage and may count toward libtest's raw pass total.Failures and skips
0x80070057) across DXIL fuzzing and shader tests, including FP64. Four were mismatches in fused FMA overflow, implicit texture LOD, f16 high-half preservation, and pixel-wave reduction. The unchanged synthetic title e2e test failed its dynamic depth bias check (blue pixel, expected green).Not tested
Main baseline, retail-title smoke, AMD or NVIDIA hardware, and D3D12 debug-layer behavior.
AI use
T3 Code / Codex (
gpt-6.2-sol,reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified counts againstpr1921-suite.logand published this report.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.