GPU: say in device-removed reports which user data is a table #427
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!427
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@GamingRipperDoc on GitHub · 2026-11-24 03:15 UTC · original
GamingRipperDoc:gpu/dred-user-data-kinds→main· +13 −5 · 1 files · 2 commits · openThe 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
root, notkind, in op_text 16d395ccc0@DaviTostes on GitHub · 2026-11-24 03:38 UTC · original
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).
@sennecools on GitHub · 2026-11-24 10:29 UTC · original
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).
@Marvisak on GitHub · 2026-11-25 00:17 UTC · original
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
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.