GPU: an unimplemented method logs the four argument registers #1839
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!1839
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1839/head"
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?
@pablogonz12 on GitHub · 2026-11-24 23:11 UTC · original
pablogonz12:fix/829-missing-args→main· +31 −3 · 1 files · 1 commits · merged 2026-11-25 21:51 UTCRefs #829 (the ask two reporters made there, and in the #417 thread).
What
The stub behind every slot a table does not fill (
crates/victory-gpu/src/object.rs) logged the object kind, the slot and the caller's offset. It could not say what the call carried, which is what #829 asked for: two reporters on two platforms patched it locally to logrcx/rdx/r8/r9to tell which console method a slot is.The stub now takes the receiver and the next three argument registers and logs them as
args=in the same line, still once per slot:(Those values are the ones #829 measured, used here as an example of the line's shape only.)
On win64 all four arguments are registers, so reading them never touches the caller's stack; a call made with fewer real arguments shows whatever those registers held, which is the same thing a local patch shows today. Nothing else changes: the tables, the once-per-slot reporting and the
E_NOTIMPLreturn are as before.This does not fix the #829 crash (that turned out to be the builtin dxgi, see the reporter's own follow-up); it removes the need to rebuild with a local patch before a missing-slot report can be read.
Why
Every "method not implemented" line in an issue today names a slot and a caller offset but not the arguments, so identifying the method needs another round trip with an instrumented build. With the registers in the line, a GUID pointer (a module address) is visibly different from flags, a count or an out pointer.
Tested with
cargo xwin clippy --workspace --all-targets --target x86_64-pc-windows-msvc -- -D warnings: cleancargo xwin clippy --workspace --all-targets --all-features --target x86_64-pc-windows-msvc -- -D warnings: cleancargo xwin test -p victory-gpu --lib --target x86_64-pc-windows-msvcrun under Wine 11.0 (vkd3d-proton, RADV, RX 9070 XT): 79 passed, 0 failed, 1 ignored (80 tests; origin/main is 79 with 0 of the new ones) — the newobject::tests::unimplemented_calls_report_their_argument_registerspasses, plus the existingguids_round_trip_through_textcargo test -p xtask policy: 4 passedrustfmt --edition 2024 --check crates/victory-gpu/src/object.rs: cleanNot tested
method not implementedslot fires in this change's unit tests, so the new field is verified on the formatting function, not on a live slot line. The register plumbing is the same ABI the local patches in #829 used.AI-assisted (Claude); measurements and commands above are from this machine.
🤖 Generated with Claude Code
@Marvisak on GitHub · 2026-11-25 07:25 UTC · original
Automated triage for the maintainers.
The
missing::<KIND, SLOT>stub incrates/victory-gpu/src/object.rsnow takes the four win64 argument registers (thisplus threeusize) and adds them asargs=to the once-per-slot "method not implemented" warning. On x64 all four are registers, so declaring them is harmless even for calls with fewer real arguments;caller()still skips the same two frames, and theE_NOTIMPLreturn and once-per-slot reporting stay as they were. This is a small diagnostic gain that saves a rebuild when a missing slot gets reported. The new test only checks theformat!helper, so it adds little. CI: not run on this head.Generated by Claude Code