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

Open
github-bot wants to merge 1 commit from github-bot/gh-556 into main AGit
Owner

@⁠pug205gti6 on GitHub · 2026-11-25 02:08 UTC · original
pug205gti6:pr/421-shaders-dxil → main · +22 −6 · 1 files · 1 commits · open

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)

**@⁠pug205gti6** on GitHub · 2026-11-25 02:08 UTC · [original](https://github.com/fxceless/victory-fork/pull/556) `pug205gti6:pr/421-shaders-dxil` → `main` · +22 −6 · 1 files · 1 commits · open 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)
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)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:46:16 +00:00
Author
Owner

@⁠Headache3318 on GitHub · 2026-11-25 04:47 UTC · original

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.

**@⁠Headache3318** on GitHub · 2026-11-25 04:47 UTC · [original](https://github.com/fxceless/victory-fork/pull/556#issuecomment-7153168661) 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.
Author
Owner

@⁠Revens2 on GitHub · 2026-11-25 07:38 UTC · original

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.

**@⁠Revens2** on GitHub · 2026-11-25 07:38 UTC · [original](https://github.com/fxceless/victory-fork/pull/556#issuecomment-7156087406) 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 can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/556/head:github-bot/gh-556'
git switch 'github-bot/gh-556'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-556'
git switch 'github-bot/gh-556'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-556'
git switch 'github-bot/gh-556'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-556'
git switch 'main'
git merge --squash 'github-bot/gh-556'
git switch 'main'
git merge --ff-only 'github-bot/gh-556'
git switch 'main'
git merge 'github-bot/gh-556'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.