GPU: say in device-removed reports which user data is a table #556

Open
pug205gti6 wants to merge 1 commit from upstream-pr/556 into main
pug205gti6 commented 2026-11-25 02:08:32 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by pug205gti6 on 2026-11-25T02:08:32Z.


The device-removed report printed [heap N: …] after every user-data value, constants included, so a constant 0 next to slot 0's view read as a draw using slot 0. Each value is now marked table or const; a table is followed by [heap N: …] as before, a constant by [as heap index N: …], kept because dynamic resources may index the heap with one.

Ported onto fxceless/victory-fork, where this loop also reads host-computed words (RootType::Other, through host_word): those are labelled host and get no view, since they are addresses, not heap indices. The tuple is named root (the review fix from Marvisak/VIctory#427, 16d395c) so it does not shadow the kind: String parameter.

(cherry picked from commits 57b8bf5 and 16d395c, Marvisak/VIctory#427)

<!-- greyfinch-sync:fxceless/victory-fork:issue:6595515334 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/556). Originally posted by [pug205gti6](https://github.com/pug205gti6) on 2026-11-25T02:08:32Z. --- The device-removed report printed `[heap N: …]` after every user-data value, constants included, so a constant 0 next to slot 0's view read as a draw using slot 0. Each value is now marked `table` or `const`; a table is followed by `[heap N: …]` as before, a constant by `[as heap index N: …]`, kept because dynamic resources may index the heap with one. Ported onto fxceless/victory-fork, where this loop also reads host-computed words (RootType::Other, through host_word): those are labelled `host` and get no view, since they are addresses, not heap indices. The tuple is named `root` (the review fix from Marvisak/VIctory#427, 16d395c) so it does not shadow the `kind: String` parameter. (cherry picked from commits 57b8bf5 and 16d395c, Marvisak/VIctory#427)
Headache3318 commented 2026-11-25 05:09:02 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Headache3318 on 2026-11-25T04:47:36Z.


Independent verification: PR #556 merges cleanly onto main (no conflicts), single commit. Build: success. Tests: fail to compile on Linux due to pre-existing windows_sys issue in victory-loader — same failures on unmodified main, unrelated to this PR. PR touches only crates/victory-gpu/src/draw.rs. Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7153168661 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/556#issuecomment-7153168661). Originally posted by [Headache3318](https://github.com/Headache3318) on 2026-11-25T04:47:36Z. --- Independent verification: PR #556 merges cleanly onto main (no conflicts), single commit. Build: success. Tests: fail to compile on Linux due to pre-existing windows_sys issue in victory-loader — same failures on unmodified main, unrelated to this PR. PR touches only crates/victory-gpu/src/draw.rs. Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted.
Revens2 commented 2026-11-25 08:09:02 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Revens2 on 2026-11-25T07:38:27Z.


Duplicate of #421: @GamingRipperDoc opened this patch 1h32 earlier, and gh pr diff returns the same bytes for both (+22/-6 on 1 file(s), same title).

Please continue in #421 so the review history and any test data stay in one place.
Thanks.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7156087406 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/556#issuecomment-7156087406). Originally posted by [Revens2](https://github.com/Revens2) on 2026-11-25T07:38:27Z. --- Duplicate of #421: @GamingRipperDoc opened this patch 1h32 earlier, and `gh pr diff` returns the same bytes for both (+22/-6 on 1 file(s), same title). Please continue in #421 so the review history and any test data stay in one place. Thanks.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/556:upstream-pr/556'
git switch 'upstream-pr/556'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/556'
git switch 'upstream-pr/556'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/556'
git switch 'upstream-pr/556'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/556'
git switch 'main'
git merge --squash 'upstream-pr/556'
git switch 'main'
git merge --ff-only 'upstream-pr/556'
git switch 'main'
git merge 'upstream-pr/556'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!556
No description provided.