GPU: cap oversized sampler heaps #1032
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Marvisak/VIctory. Originally posted by divyeshganta on 2026-11-24T15:14:02Z.
Caps oversized host sampler heaps at D3D12’s 2,048 descriptor limit and logs when higher slots are unavailable. Addresses #65.
Imported from Marvisak/VIctory. Originally posted by ThomasHFWright on 2026-11-24T15:23:45Z.
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.
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T16:30:33Z.
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).
upstream-sync referenced this pull request2026-11-24 19:03:41 +00:00
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:34:02Z.
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
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.