Tests: check producer metadata in direct DXIL shaders #1471
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!1471
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1471/head"
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?
@philip-roy-jones on GitHub · 2026-11-24 16:37 UTC · original
philip-roy-jones:dxil-ident-rx580→main· +19483 −30 · 74 files · 19 commits · closed without mergingThis PR is closed. The runtime fix for producer metadata in direct-DXIL shaders shipped in upstream
mainatc160d86. That commit can be used for driver verification. Merged PR #1426Stacked on #1426. Only the top commit,
3c64cae, belongs to this PR. Review the 20-line patchPart of #1269. Direct compute shaders without LLVM producer metadata validated on the Radeon RX 580, then the driver exited during pipeline creation. #1426 now emits the metadata separately for compute and graphics. I verified its clean head
bc93a3aruns the compute kernel and draws the VS/PS triangle. Parent's driver fixWhat is in it
!llvm.identreferences a nonempty producer string.XCL_DIRECT_DXILswitches in the README.Tested
3c64cae02baadbf6d42ec654fbc118426926bfdb, Radeon RX 580 (31.0.21925.1001, native wave64), Ryzen 7 7700X, Windows 11 Pro 26200.9974, Rust 1.100.0 MSVC, DXC 1.9.2609.5. Debug tests and release smoke builds.cargo test -p xcl --lib direct_shaders_identify_their_producer -- --nocapturefailed on065aef3withCS has no llvm.identand passed on this head with both DXC 1.9 and Windows SDK DXC 1.8.2502.11.cargo test -p xcl --lib gpu::dxil:: -- --test-threads=4 --nocapturereported 74 passed, 0 failed and 2 ignored, including 15 wave32 and 2 mesh hardware skips. WithXCL_DIRECT_DXIL=1, the EXEC-divergence and scalar-loop tests both passed without skips.cargo build --workspacesucceeded.cargo test --workspace --no-fail-fast -- --test-threads=4lost its library process. Running its 514 unreported cases separately completed the suite. 805 reported passing, 21 failed, 1 crashed and 43 were ignored. 19 passes were hardware skips (15 wave32, 4 mesh). All 22 unsuccessful cases had the same outcomes individually on cleanbc93a3a..\scripts\test.ps1 --skip test_title_runs_and_game_folder_is_untouchedpassed locally with hardware adapter selection disabled. It reported 826 passed, 0 failed, 43 ignored and 1 filtered. 231 passes were explicit skips.pso::console_to_dxil_inand selected the first four distinct native-wave64 programs with 64–4096 input bytes. The RX 580 created every pipeline. Direct output totalled 361,960 bytes, HLSL-derived output 62,208 bytes. Pipeline creation was outside the timer.Regression run
scripts/smoke.ps1 -Game <retail folder> -Xcl <release exe> -Seconds 60on the RX 580 withXCL_ASYNC_PSO=0(synchronous pipeline creation), no input and fresh writable game data each time. For each revision and backend, the first run started with an empty shader cache and the second reused it. All eight runs completed without crashes or device removal.The default HLSL runs cleared the project's frame and memory thresholds. With
XCL_DIRECT_DXIL=1, cold-cache frames fell below 80% of main. Warm-cache frames were comparable while peak commit exceeded the 125% limit. The two blocks below are the warm default HLSL comparison.Upstream main
PR head
Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 18:54 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
mainincrates/xcl/src/gpu/recomp/tests.rs— needs a rebase before it can be tested.Pull request closed