GPU: Graceful degradation and dynamic recycling for descriptor heaps exceeding 1,000,000 slots #2189
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2189
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2189"
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?
@Xvania7 on GitHub · 2026-11-25 07:21 UTC · original
Xvania7:fix/issue-887-descriptor-heap-limit→main· +133 −5 · 2 files · 4 commits · openFixes #887 (supersedes tracking issue #902; related to #871, #876, #562).
Summary
Verification
@MamaLeVrai on GitHub · 2026-11-25 08:52 UTC · original
Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present, so the hardware-only shader checks run. I merged this PR's head
7e1292d6intomain940d32fin a throwaway tree (no conflict).cargo clippy --workspace --all-targets --locked -- -D warnings: clean; the same with--all-features: clean.cargo test --workspace --locked: 704 passed, 0 failed, 10 ignored, two runs (mainalone on the same machine: 701 passed, 0 failed, 10 ignored). The title was not run, so this says nothing about in-game effect. No game data.AI-assisted (Claude Code); no game data.
@Marvisak on GitHub · 2026-11-25 13:28 UTC · original · edited 2026-11-25 16:02 UTC
Automated triage for the maintainers.
This pull request no longer merges cleanly into
main(conflicts incrates/victory-gpu/src/descriptor/host.rs). It will be reviewed once it is rebased onto the currentmain. The earlier verdict (needs-work) was for an older state ofmain.Generated by Claude Code
@Xvania7 on GitHub · 2026-11-25 14:16 UTC · original
Addressed the triage points in (
364c675):Removed the 500k/250k loops. The cap is anchored directly to D3D12 Tier 1 limits (
D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_1 = 1_000_000) enforced by NVIDIA drivers (Ampere, Ada, Blackwell). KeepingPORTABLE_VIEWS = 1_000_000preserves the invariant that translated shaders can safely clamp belowHEAP_VIEWS.Restored
return Noneon plain allocation failure (Err(e)whencount + MIN_DYNAMIC <= PORTABLE_VIEWS), avoiding retrying larger heaps when the device ran out of memory.Updated
heap_request_over_one_million_caps_gracefullyto assert both the zero-tag fallback and theVIEW_TAGbranch without host heap indexing.All checks pass cleanly: unit tests 148 passed, Clippy 0 warnings, asset policy ok.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.