Fix root-indexed descriptors in rebuilt resource tables #1170
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!1170
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1170/head"
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?
@draggygaggy-maker on GitHub · 2026-11-24 16:19 UTC · original
draggygaggy-maker:fix/root-indexed-descriptor-tables→main· +438 −24 · 10 files · 1 commits · closed without mergingProblem
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.
@pablogonz12 on GitHub · 2026-11-24 17:27 UTC · original
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.
@Zipettte on GitHub · 2026-11-24 18:00 UTC · original
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).
@Marvisak on GitHub · 2026-11-25 00:33 UTC · original
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