Repository navigation
Conversation
Prepared with the help of Codex 6.2 Astra Max.
Prepared with the help of Codex 6.2 Astra Max.
triippywhale
pushed a commit
to triippywhale/victory-fork
that referenced
this pull request
Nov 25, 2026
Prepared with the help of Codex 6.2 Astra Max. (cherry picked from commit 9576cc2) fxceless#662. Conflict only in the tests: its test sits beside fxceless#684's in descriptor/host.rs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On my RTX 2060 SUPER, startup tried to create a shader-visible CBV/SRV/UAV heap with 2,097,152 descriptors. The device reported a maximum of 1,000,000. Heap creation failed and D3D12 emitted error 645 (
CREATE_DESCRIPTOR_HEAP_INVALID_DESC). The fallback still rendered all 16 expected pixels, so checking the image alone missed the error.probe_view_limitnow queriesD3D12_FEATURE_D3D12_OPTIONS19once. It uses the smaller of the reported capacity and the existing target size, with the final slot reserved for the null descriptor. Runtimes that do not return a usable capacity retain the allocation probe. There is no additional per-draw work.I compared
310c6ebwith this commit in separate Windows builds. In two runs per adapter with GPU-based validation, synchronized queue validation and full state tracking, the RTX reported 645 twice on main and zero times here. WARP reported no errors in either build. The five draw cases still produced 16/16 green pixels and three input vertices each on both adapters. The older-runtime fallback was not exercised on this hardware.The checked-in limit test runs with
cargo test --locked -p victory-gpu --features diagnostics --lib shader_view_limit_fits_the_reported_heap. To reproduce the debug-layer difference, run themainandview-heapcases in the independent harness. Source, commands and transcriptsOn the clean PR head, Windows workspace tests passed (511 default, 519 with all features, 9 ignored in each configuration). The release workspace build and repository asset-policy test passed. Both Clippy configurations reported the same lints as on the base commit. Applying this change and #663 to #642 passed both Clippy commands. The workspace formatting check also failed on both. Commands and diagnostics
Prepared with the help of Codex 6.2 Astra Max.