Remove duplicated store status functions and helpers #66

Open
github-bot wants to merge 1 commit from github-bot/gh-66 into a-publier AGit
Owner

@⁠romainhedouin on GitHub · 2026-11-25 13:16 UTC · original
romainhedouin:perf/hle-duplicates → a-publier · +18 −48 · 3 files · 1 commits · open

Removes three duplicated definitions: xstore's size_status, string_status, count_status and array_status all just returned XAsyncGetStatus(block, false), like status, so their vtable slots now point at status (under the Win64 convention the extra output arguments the title passes are simply ignored); stacks.rs's Aligned was crash.rs's Aligned16 again; and xma::Decoder::channels() had no callers.

Before After
Lines −30 net (48 removed, 18 added)
Duplicate definitions 3 0

Tested: Windows clippy (workspace, all targets, with and without --all-features) adds no warnings over a-publier and cargo test -p victory-formats passes (41); the Windows-only victory-hle tests were type-checked, not run. No behaviour change.

🤖 Generated with Claude Code

**@⁠romainhedouin** on GitHub · 2026-11-25 13:16 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/66) `romainhedouin:perf/hle-duplicates` → `a-publier` · +18 −48 · 3 files · 1 commits · open Removes three duplicated definitions: `xstore`'s `size_status`, `string_status`, `count_status` and `array_status` all just returned `XAsyncGetStatus(block, false)`, like `status`, so their vtable slots now point at `status` (under the Win64 convention the extra output arguments the title passes are simply ignored); `stacks.rs`'s `Aligned` was `crash.rs`'s `Aligned16` again; and `xma::Decoder::channels()` had no callers. | | Before | After | |---|---|---| | Lines | | −30 net (48 removed, 18 added) | | Duplicate definitions | 3 | 0 | Tested: Windows clippy (workspace, all targets, with and without `--all-features`) adds no warnings over a-publier and `cargo test -p victory-formats` passes (41); the Windows-only `victory-hle` tests were type-checked, not run. No behaviour change. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:34:53 +00:00
@ -391,3 +371,2 @@
updates_async as *const (), // 0x1b8
count_status as *const (), // 0x1c0
array_status as *const (), // 0x1c8
status as *const (), // 0x1c0
Author
Owner

@⁠gut0to on GitHub · 2026-11-25 15:08 UTC · original

The simplification relies on Win64 ignoring the extra output arguments used by this slot's title-side signature. Could the Windows vtable test invoke slot 0x1c0 through the original Count-shaped function pointer with a non-null output pointer? The current shortened Status test does not exercise the call shape being relied on. AI-assisted review; I compared the old/new slot signatures and test invocation.

**@⁠gut0to** on GitHub · 2026-11-25 15:08 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/66#discussion_r4696897797) The simplification relies on Win64 ignoring the extra output arguments used by this slot's title-side signature. Could the Windows vtable test invoke slot 0x1c0 through the original Count-shaped function pointer with a non-null output pointer? The current shortened Status test does not exercise the call shape being relied on. AI-assisted review; I compared the old/new slot signatures and test invocation.
Author
Owner

@⁠gut0to on GitHub · 2026-11-25 15:08 UTC · original · reviewed

AI-assisted review: I checked the changed behavior and the associated test coverage.

**@⁠gut0to** on GitHub · 2026-11-25 15:08 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/66#pullrequestreview-6060184870) · **reviewed** AI-assisted review: I checked the changed behavior and the associated test coverage.
github-bot changed title from Remove duplicated pad state, store status functions and helpers to Remove duplicated store status functions and helpers 2026-11-27 01:00:10 +00:00
github-bot changed target branch from main to a-publier 2026-11-27 01:00:10 +00:00
github-bot force-pushed github-bot/gh-66 from 4354955908 to a4a5393b25 2026-11-27 01:00:11 +00:00 Compare
This pull request has changes conflicting with the target branch.
  • crates/victory-loader/src/stacks.rs
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.
git fetch -u origin '+refs/pull/66/head:github-bot/gh-66'
git switch 'github-bot/gh-66'

Merge

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