GPU: say in device-removed reports which user data is a table #421
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!421
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-421"
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?
@GamingRipperDoc on GitHub · 2026-11-25 00:36 UTC · original
GamingRipperDoc:dred-user-data-kinds→main· +22 −6 · 1 files · 1 commits · openDevice-removed reports: say which user data is a table. Ported from upstream Marvisak/VIctory#427 (two approvals there, checked in real reports by a tester).
Why
op_textprints[heap N: …]after every user-data value, whatever the shader does with it. On upstream Marvisak/VIctory#304 that madeu13=0x0 [heap 0: … TEXTURE1D …]read as "this mesh draw reads heap slot 0", whenu13is a plain constant (RootType::Constants) in every shader that has it; it took a diagnostic run to find out.What
Each user-data value is labelled:
The
hostcase is new in this port: this tree's loop also reads host-computed words (RootType::Other, throughhost_word, e.g. the title-memory base), which are addresses, not heap indices, so they get no view. The tuple is namedroot, notkind(the upstream review fix), so it doesn't shadowop_text'skind: String. Only diagnostics builds change; one file.Tested
Windows 10, AMD RX 9070 XT, on
main31714de:cargo clippy -p victory-gpu --all-targets --features diagnostics -- -D warningsclean;rustfmt --checkondraw.rsreports the same places asmain, none in the changed lines. The upstream version was confirmed in six real device-removed reports on an RX 9070 XT (all values labelled, none in the old form); thehostlabel hasn't appeared in a real report here yet.No game data used.
AI-assisted (Claude Code); I ran the checks above on my machine.
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.