GPU: return the caller’s output pointer from four GetDesc methods #818
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/819"
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 fxceless/victory-fork. Originally posted by MichaelSmithAI on 2026-11-25T08:46:32Z.
This ports BlueDragonReal’s four-method fix from Marvisak/VIctory#1093 to
9376fd6, preserving the original commit author. The guest implementations of GetDesc for a resource, heap, descriptor heap and command queue fill the caller’s buffer. Returning the same buffer pointer in RAX completes the Windows x64 ABI for these struct-returning methods. A caller that uses the returned address can then read the descriptor it supplied storage for.I built the Windows GPU crate and ran all four affected vtable tests under Wine 11.22 with the GE vkd3d-proton 3.2 runtime. Each returned the exact caller pointer, preserved the tested descriptor fields, and returned null for a null output. These are synthetic ABI checks. Title progress and frame time were not measured.
AI-assisted port and verification.
Imported from fxceless/victory-fork. Originally posted by MamaLeVrai on 2026-11-25T09:54:03Z.
Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head
d1ba720intomain9376fd6in a throwaway tree (no conflict).cargo clippy --workspace --all-targets --locked -- -D warningsfails, with the same two errors asmainitself on this machine (function placed_filler_twins is never used,field depth_written is never read,victory-gpu): this PR adds none and removes none.cargo test --workspace --locked: 542 passed, 0 failed, 10 ignored, two runs (mainalone: 540 passed). The title was not run, so this says nothing about in-game effect. No game data.AI-assisted (Claude Code); no game data.
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.