Replay: under Wine the recorder sends lists to vkd3d-proton with their own method tables #312

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

@⁠Serph91P on GitHub · 2026-11-26 15:48 UTC · original
Serph91P:linux-recorder-own-tables → main · +55 −1 · 2 files · 1 commits · open

With VICTORY_RECORD set, the title ended at its first ExecuteCommandLists under Wine. One commit, two files, on c9c932c.

What was wrong: the recorder points each command list at a method table of its own. vkd3d-proton takes a list for its own only if it points at vkd3d-proton's table; otherwise it read through a null list (d3d12core.dll, called from replay::snap::submit / record::execute) and the process ended.

What this does: under Wine only, record::execute points the lists at their own tables while they are sent (hook::own_table) and at the recorder's again afterwards (hook::put_table). The lists are closed, so nothing else calls them meanwhile. A small on_wine() in record.rs does the lookup xmem does; with #166's crate::wine in, it can use that instead.

Windows is unchanged: the tables are not touched there.

Tested (RX 7900 XTX, RADV Mesa 26.3.1, vkd3d-proton 71cae091, Proton Experimental 11.0-20261112, with this change on top of other local commits):

  • Two captures of one frame each completed in the world (about 10 and 12 GB; 37 and 42 submissions). The watchdog did not end the title either time.
  • victory replay reproduces both frames (PSNR 73-74 dB against the presented picture).
  • This branch alone builds for x86_64-pc-windows-msvc (cargo-xwin); cargo xtask policy and cargo test -p xtask pass; both files stay rustfmt-clean.

Not tested: Windows, NVIDIA under Proton.

No game data in the commit.

🤖 Generated with Claude Code

**@⁠Serph91P** on GitHub · 2026-11-26 15:48 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/312) `Serph91P:linux-recorder-own-tables` → `main` · +55 −1 · 2 files · 1 commits · open With `VICTORY_RECORD` set, the title ended at its first `ExecuteCommandLists` under Wine. One commit, two files, on c9c932c. **What was wrong:** the recorder points each command list at a method table of its own. vkd3d-proton takes a list for its own only if it points at vkd3d-proton's table; otherwise it read through a null list (`d3d12core.dll`, called from `replay::snap::submit` / `record::execute`) and the process ended. **What this does:** under Wine only, `record::execute` points the lists at their own tables while they are sent (`hook::own_table`) and at the recorder's again afterwards (`hook::put_table`). The lists are closed, so nothing else calls them meanwhile. A small `on_wine()` in `record.rs` does the lookup `xmem` does; with #166's `crate::wine` in, it can use that instead. Windows is unchanged: the tables are not touched there. **Tested** (RX 7900 XTX, RADV Mesa 26.3.1, vkd3d-proton 71cae091, Proton Experimental 11.0-20261112, with this change on top of other local commits): - Two captures of one frame each completed in the world (about 10 and 12 GB; 37 and 42 submissions). The watchdog did not end the title either time. - `victory replay` reproduces both frames (PSNR 73-74 dB against the presented picture). - This branch alone builds for `x86_64-pc-windows-msvc` (cargo-xwin); `cargo xtask policy` and `cargo test -p xtask` pass; both files stay rustfmt-clean. **Not tested:** Windows, NVIDIA under Proton. No game data in the commit. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With VICTORY_RECORD set, the title ended at its first ExecuteCommandLists under Wine: the recorder
points each list at a method table of its own, and vkd3d-proton takes a list for its own only if
it points at vkd3d-proton's table (it then read through a null list). Under Wine the lists point
at their own tables while they are sent and at the recorder's again afterwards; they are closed,
so nothing else calls them meanwhile. Windows is unchanged.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 15:54:06 +00:00
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/312/head:github-bot/gh-312'
git switch 'github-bot/gh-312'

Merge

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