GPU: cap oversized sampler heaps #1032
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!1032
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1032"
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?
@divyeshganta on GitHub · 2026-11-24 15:14 UTC · original
divyeshganta:fix/sampler-heap-limit→main· +15 −3 · 1 files · 2 commits · openCaps oversized host sampler heaps at D3D12’s 2,048 descriptor limit and logs when higher slots are unavailable. Addresses #65.
@ThomasHFWright on GitHub · 2026-11-24 15:23 UTC · original
Independent Wine/hardware validation of
392b86f50af9fd20ab899985cff39811ee3360c2, baseffe310e. This reproduces the oversized sampler-heap failure and confirms that the cap avoids it on this setup.A temporary test inside
descriptor::host::testsrequired the hardware device, created sampler heaps with the following requested counts, and checkedGetDesc().NumDescriptors, the tracked count,made/keptlengths, zero dynamic slots, and no device removal:All checks passed. Negative control: retaining the test but replacing
count.min(PORTABLE_SAMPLERS)withcountmakesHostHeap::new(true, 2049)returnNone, failing after the first two cases. The test/control edits were removed before the full suite.Full workspace unit/integration suite, all features, all 14 generated Windows MSVC test executables: 341 passed, 5 failed, 6 ignored, identical to the matched
ffe310ebaseline. The five failures remain the empty pipeline library (#347), missing Wine Winsock export (#217), shader-checksum rejection expectation, nested Cargo fixture build, and Windows xtask attempting to launch host Git. Native Linux xtask separately passes all 4 tests. Windows-target workspace Clippy with all targets/features and-D warnings, and nativecargo xtask policy, pass.Environment: Rust 1.98.1, Wine 11.22, RTX 5090 / NVIDIA 620.73.04, vkd3d-proton
30b0eb9bc12dc9f, natived3dcompiler_47for GPU fixtures; same runtime DLLs as baseline. Offline, offscreen, no game data. This establishes heap-creation behavior only: it does not establish correct rendering for titles using sampler slots above 2,047, which remain unavailable. No gameplay, native Windows/WARP, or Wine doctests were run. Aggregate counts include existing early-return tests when optional console compilers or the DXIL validator are unavailable.AI-assisted testing with Codex.
@Zipettte on GitHub · 2026-11-24 16:30 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
b38a3c9:cargo test -p victory-gpupasses, 50 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
@Marvisak on GitHub · 2026-11-25 00:34 UTC · original
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:crates/victory-gpu/src/descriptor/host.rs.The content has not been reviewed yet; it will be once the branch is rebased onto
main.Generated by Claude Code
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.