Fix root-indexed descriptors in rebuilt resource tables #1170
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1170"
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 draggygaggy-maker on 2026-11-24T16:19:28Z.
Problem
Fresh descriptor tables are sized using statically listed resources. When a shader selects a descriptor through a root constant, the selected resource may fall outside the rebuilt table or remain unprepared for GPU access.
Solution
Validation
Tested on an NVIDIA RTX 4060 Ti against upstream commit
ffe310e.Scope
This PR is limited to root-indexed descriptor tracking and rebuilt table binding. It does not include unrelated experimental rendering changes or game assets.
The synthetic regression is resolved. Impact on in-game world rendering has not yet been established.
AI Assistance Disclosure
This contribution was developed with assistance from OpenAI Codex (GPT-6.2 Astra) and ChatGPT through iterative debugging, implementation, code review, and regression testing.
All reported test results were obtained locally on physical hardware. The contribution was isolated from a larger experimental branch and independently tested against upstream main.
Imported from Marvisak/VIctory. Originally posted by pablogonz12 on 2026-11-24T17:27:27Z.
Setup: Linux, RX 9070 XT, RADV (Mesa 26.3.1), dxil-spirv master, spirv-val 1.3. Your head folded onto a base of origin/main
ffe310eplus #1017 (main's host build fails without it:E0425 host_resource), then the four-stage offline check over 768 programs (751-program world dump + 52-program BVH capture, 35 duplicate containers skipped).No program gained or lost and the failure table is identical to the base, reason for reason: nothing in this capture reaches the class you handle, so this is a no-regression result only (same 10 SPIR-V validation failures as the base).
Not tested: in-game.
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:00:51Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
9b1a0fe:cargo test -p victory-gpu -p victory-shaderpasses, 170 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:33:43Z.
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #420.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed