Skip to content

d3d12: adapt large shader compile concurrency to available memory - #236

Draft
Valdi320 wants to merge 4 commits into
brcly:mainfrom
Valdi320:work/adaptive-large-compile-budget-20261126
Draft

Valdi320 wants to merge 4 commits into
brcly:mainfrom
Valdi320:work/adaptive-large-compile-budget-20261126

Conversation

@Valdi320

@Valdi320 Valdi320 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Review goal: Bound simultaneous large pipeline compilation under host memory pressure while preserving progress.

Scope: Existing adaptive gate plus the wake-all fix when capacity grows; fixed-budget behavior remains notify-one. Existing environment override remains available.

Evidence: Current head e5f8b58 on main 6ce0aac: Windows provider typecheck, Python suite 404 collected / 27 skipped, 10/10 native gate tests. Earlier negative control: old wake-one admitted 1/3 eligible workers; corrected gate admits 3/3. Previous six no-GPU groups and selected integrated GPU tests are historical; no new full GPU run or actual title RAM/time saving measured.

Review order: fifth, after diagnostics. Independent of other pending PRs. Treat as a candidate until real memory-pressure measurements and full GPU validation are available.

@Valdi320

Copy link
Copy Markdown
Contributor Author

Refresh #236 to 88aea59 on main e76ff6a. Fixed adaptive wakeup under expanding budget: a single released slot can admit several waiters, so the adaptive path now notifies all; fixed-capacity behavior stays notify-one. Regression red/green on the exact compile-gate module: previous code admitted 1/3 and failed, new code admitted 3/3, all 10 native tests pass. Six no-GPU groups (including Windows typecheck) pass. Integrated validation branch https://github.com/Valdi320/TuxBox/tree/d3276e9c692ecafb46de53edb864c6e55cc0d3e3 includes #236, #249, #257, #261, #272, #273 and #275. Rebuilt provider and Lanes fixture, 19/19 isolated D3D12 and 7/7 selected Lanes gates pass on RTX 4080/GE-Proton11-14; actual long-driver-compile memory savings not measured. The integration does not include DrArroway's #258, and does not establish AMD host-memory behavior. Initial isolated runner attempt with an uninitialized Wine prefix hid the NVIDIA adapter; initialized test prefix with NVAPI restored real PCI ID and all cases passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant