D3D12.X: canonicalize inactive two-pass stream descriptors #2448
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!2448
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2448"
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?
@ZekkJJ on GitHub · 2026-11-25 19:19 UTC · original
ZekkJJ:codex/two-pass-empty-descriptors→main· +64 −2 · 1 files · 1 commits · openCanonicalize inactive two-pass stream descriptors when building the mesh pipeline cache identity. Empty optional shader bytecode contributes the same key as an omitted stage. Active unsupported state, duplicates, and malformed streams still fail closed.
What is in it
crates/xcl/src/hle/d3d12x/real/two_pass_identity.rsignores inert pointers and padding on inactive stream-output, input-layout and view-instancing descriptors.Tested
d61ffdc435d5b7c71f4635e4fb06b28eed1328a3on Windows 11 build 26200.9974, Ryzen 7 8845HS, NVIDIA GeForce RTX 4060 Laptop GPU (616.56), Rust 1.98.1 MSVC, debug.cargo test --offline --locked -p xcl --lib two_pass_identity -- --nocapture --test-threads=1passed 5 tests with zero failures, ignores or runtime skips.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output. There were 26 explicit GPU skip markers (21 no native wave64, 3 refused wave32 per-lane operation, 1 Windows Developer Mode unavailable, 1 no heap windows). Clean main atb49be183passed 1,435 with 0 failures, 47 ignores, and 26 runtime skip markers.Regression run
Clean release builds on the same RTX 4060 Laptop GPU and retail workload. XCL used a separate title state and DXIL cache for each run.
Main
PR head
Not tested
AI use
OpenAI Codex (gpt-6.2-sol) rebased, expanded coverage, ran tests, and prepared this description.
@SlopTart on GitHub · 2026-11-25 20:02 UTC · original
gpu_suite (cold cache): 160 passed / 4 failed, no crashes. The four are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, depth-buffer state refusal, andgpu_promoted_uav_clear_values_pass_create_committed_resource(report); none caused by this PR.Targeted run of the stream-related tests: 24 passed.
@DavidM1911 on GitHub · 2026-11-25 20:29 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.Thanks!
01cb4892f4tod61ffdc435@bmjask on GitHub · 2026-11-25 21:03 UTC · original · reviewed
No concrete correctness defect found. Inactive descriptor canonicalization keys semantic count/flags rather than pointers/padding while retaining active/duplicate/unknown rejection; current Windows CI is green. This runtime change is not merge-ready because paired retail smoke runs are explicitly pending and description checks fail. Nonblocking coverage gap: regression uses only zero-length VS; broader optional-stage cases would strengthen it.
@Lum7nt on GitHub · 2026-11-26 09:03 UTC · original
Tested on \
d61ffdc435\ (\d61ffdc4, clean PR head):ustc 1.100.0\ (\x86_64-pc-windows-msvc), DXC \1.8.2502.11\ (Windows SDK \10.0.26100.0), debug profile, \XCL_ADAPTER=nvidia.
o wave64, 3 per-lane #1426\ refusals, 2 no D3D12 debug layer, 1 \cannot disable the driver cache (0x887A002D), 1
o heap windows.
Not tested
AI use
d61ffdc4, ran \ wo_pass_identity\ and the workspace suite on this machine, and drafted this report.@ZekkJJ on GitHub · 2026-11-26 09:07 UTC · original
@bmjask The rebased head is
d61ffdc4. The regression now covers zero-length VS, PS, DS, HS, GS, CS and AS, and still rejects an empty required MS. All 5 identity tests passed.The RTX 4060 Laptop full-suite rerun passed 1,436 with 0 failures, 47 ignores, and 26 runtime skip markers. The initial asynchronous dispatch assertion passed in isolation on clean main and this head, and passed in both full suites on rerun. The paired retail smoke recorded 620 frames against main's 560, peak commit 15,263 MB against 14,812 MB, and zero crashes or device removals. Both unedited blocks are in the description.
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.