GPU: say in device-removed reports which user data is a table #427
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/427"
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 GamingRipperDoc on 2026-11-24T03:15:29Z.
The device-removed report (
op_textincrates/victory-gpu/src/draw.rs) prints[heap N: …]after every user-data value, constants included. That is easy to misread: on #304 I readu13=0x0 [heap 0: Shader(0, Some([42, 2, …]))]as "this mesh draw reads heap slot 0, a null 1D texture view", and it took a diagnostic run to find thatu13is a constant in all 144 shaders that use it (RootType::Constants), so the slot was unrelated.Each value now says which it is:
The view after a constant is kept, labelled
as heap index, since a shader with dynamic resources may index the heap with a constant. Only diagnostics builds change; one file, nothing else reads this text.Checked:
cargo build --profile diag -p victory --features diagnostics;cargo clippy -p victory-gpu --features diagnostics --all-targets(one existing warning, inhost.rs);cargo test -p victory-gpu43 passed;rustfmt --checkondraw.rsreports the same 4 places asmainand none in the changed lines;cargo xtask policyok. Windows 10, RX 9070 XT.Not checked: a device removal with this exact build. The root types were confirmed with a local variant that printed
u13=0x0(Constants)in a real report (#304, third run); this PR's wording has not appeared in one.No game data used.
AI-assisted (Claude Code); I ran the checks above on my machine.
🤖 Generated with Claude Code
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T05:11:43Z.
Review: APPROVED
Tested
57b8bf5on Windows 11, RTX 5070, MSVC:cargo test --workspace --no-fail-fastpasses (264 passed, 0 failed).cargo check -p victory-gpu --features diagnosticsis clean. That matters because the changed code only builds with that feature, which the default workspace test never compiles.tableorconst, and a constant's view is shown asas heap index. Table values still usev / 32as before. Only diagnostics builds change.let (kind, index)shadows the function'skind: Stringparameter. That is harmless here, since the parameter is only used before the loop, but a different name such asrootwould read better.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-24T03:38:47Z.
Verified
57b8bf5on Arch Linux x86_64, Windows MSVC release build under Wine 11.22 (victory-gpu,--test-threads=1): 43 passed, 0 failed, 1 ignored.Not covered: the wording in a real device-removed report (not reproducible on this RADV/vkd3d setup) and title behaviour (no game data).
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T07:16:14Z.
Review: APPROVED
Tested
16d395con Windows 11, RTX 5070, MSVC:cargo test --workspace --no-fail-fastpasses (264 passed, 0 failed), andcargo check -p victory-gpu --features diagnosticsis clean.This commit is just the rename I suggested (
kind→root), so the loop no longer shadows thekind: Stringparameter. No behaviour change.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by sennecools on 2026-11-24T10:29:16Z.
Checked in real device-removed reports on an RX 9070 XT (RDNA 4), Windows 11 Pro 26300.
The build was a diag build of
main8e79c80+ this PR at16d395c. It also included #493 and #537. #537 only changes report text. #493 does not touchop_text's user-data loop. There were six offline runs withVICTORY_D3D12_DRED=1, and each ended in a device removal with breadcrumbs.tablevalues and 18 to 44constvalues. 12 to 35 of theconstvalues carry a view, shown as[as heap index N: …].uN=0x… [heap).cargo build --profile diag -p victory --features diagnosticsbuilds cleanly with the three merged together.No game data is in this comment.
AI-assisted (Claude Code).
upstream-sync referenced this pull request2026-11-24 19:03:41 +00:00
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:17:19Z.
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:crates/victory-gpu/src/draw.rs.The content has not been reviewed yet; it will be once the branch is rebased onto
main.Generated by Claude Code
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.