D3D12.X: gate 128-256 KiB compute driver compiles in MEDIUM_COMPILES #2726
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!2726
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2726"
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?
@Saksukella on GitHub · 2026-11-26 08:59 UTC · original
Saksukella:fix/gate-medium-compute-pso→amd-dev· +71 −6 · 1 files · 1 commits · openWhat is in it
crates/xcl/src/hle/d3d12x/real.rs:MEDIUM_COMPUTE_DRIVER_COMPILE = 128 << 10(128 KiB) anddriver_compile_gate_bytes(compute, big_compute_limit)so medium-sized (128–256 KiB) translated compute PSOs enter theMEDIUM_COMPILESconcurrency gate instead of compiling ungated across all worker threads on AMD's driver (amdxc64).< 128 KiB) compute PSOs ungated, keep>= 256 KiBcompute PSOs onMEDIUM_COMPILESand>= 1 MiBonGIANT_COMPILES(unchanged), and keep title-thread binds ungated (driver_compile_identifiedonly gates background worker compiles).GLOBAL_SLOTS_TEST_LOCKand unit testsmedium_compute_driver_compiles_gate_at_128_kibandgraphics_driver_compiles_ignore_128_kib_compute_gate.amd-dev(whereMEDIUM_COMPILESanddriver_compile_identifiedlive).Tested
32.0.32029.2010), 24-thread x86_64 CPU, 32 GB RAM, Windows;rustc 1.100.0 (0ef1bc386 2026-11-09); debug (tests) and release (xcl.exe).cargo test -p xcl --lib hle::d3d12x::real::tests::big_compile_tests: 14 passed, 1 failed (0.30s; both new tests andsmall_and_title_thread_compiles_bypass_the_gatepassed; the single failuregiant_driver_compiles_have_their_own_laneis pre-existing onamd-devb5c0275fbecauseparse_rt_skip_hashesparses"bad"as hex0xbad).Regression run
Not tested
AI use
web-server-mcpagent team): assisted with profiling179–217 KiBcompute PSO driver-compile stalls, designing the128 KiBMEDIUM_COMPILESgate, authoring unit tests, and running local tests and smoke verification. All diffs and measurements were verified locally on hardware.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.