fix(victory-gpu): port #447 and #433 onto the Vice-Tay base #457

Open
github-bot wants to merge 2 commits from github-bot/gh-457 into main AGit
Owner

@⁠LooperSalty on GitHub · 2026-11-26 23:28 UTC · original
LooperSalty:fix/vicetay-gpu-ports → main · +263 −19 · 3 files · 2 commits · open

Summary

Ports two victory-gpu fixes by @⁠mauroalvare onto the Vice-Tay base (#454); their original PRs were written against the Neptune base and no longer apply.

  • #447 — host_blend copied RenderTarget[0] (LogicOpEnable included) to every slot, and GraphicsState::read neither bounded NumRenderTargets nor cleared RTFormats[count..8]: D3D12 refused the PSO with E_INVALIDARG and the draws were lost. LogicOpEnable is now off on integer targets and whenever independent blend is on, slots past the count get no blend, and stale formats become DXGI_FORMAT_UNKNOWN. Three tests, one of them creating the PSOs on the host device.
  • #433 — when a list is cut and replayed onto a new host list, fresh_tables kept tables whose CBVs live in the earlier part's scratch; replay() now forgets them (Vice-Tay keeps "ready" inside each entry, and window is already reset per host list). Test cut_list_does_not_reuse_the_earlier_parts_cbv_table: without the fix the second part reused slot 2048 of the first.

Test plan

  • cargo test --release -p victory-gpu (425 passed, 41 ignored)
  • cargo build --release --workspace
  • New tests fail without the fixes and pass with them
  • CI

Source: #447, #433 (mauroalvare)

🤖 Generated with Claude Code

**@⁠LooperSalty** on GitHub · 2026-11-26 23:28 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/457) `LooperSalty:fix/vicetay-gpu-ports` → `main` · +263 −19 · 3 files · 2 commits · open ## Summary Ports two victory-gpu fixes by @⁠mauroalvare onto the Vice-Tay base (#454); their original PRs were written against the Neptune base and no longer apply. - **#447** — `host_blend` copied RenderTarget[0] (LogicOpEnable included) to every slot, and `GraphicsState::read` neither bounded `NumRenderTargets` nor cleared `RTFormats[count..8]`: D3D12 refused the PSO with `E_INVALIDARG` and the draws were lost. LogicOpEnable is now off on integer targets and whenever independent blend is on, slots past the count get no blend, and stale formats become `DXGI_FORMAT_UNKNOWN`. Three tests, one of them creating the PSOs on the host device. - **#433** — when a list is cut and replayed onto a new host list, `fresh_tables` kept tables whose CBVs live in the earlier part's scratch; `replay()` now forgets them (Vice-Tay keeps "ready" inside each entry, and `window` is already reset per host list). Test `cut_list_does_not_reuse_the_earlier_parts_cbv_table`: without the fix the second part reused slot 2048 of the first. ## Test plan - [x] `cargo test --release -p victory-gpu` (425 passed, 41 ignored) - [x] `cargo build --release --workspace` - [x] New tests fail without the fixes and pass with them - [ ] CI Source: #447, #433 (mauroalvare) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
host_blend copied render target 0 (LogicOpEnable included) to every slot
and turned on IndependentBlendEnable without clearing LogicOpEnable, and
GraphicsState::read neither bounded NumRenderTargets nor cleared
RTFormats[NumRenderTargets..8]. D3D12 rejects both with E_INVALIDARG, so
the draws were lost.

host_blend now clears LogicOpEnable on every slot whenever
IndependentBlendEnable is on (and on integer targets), and read() clamps
the count to 8 and sets unused formats to DXGI_FORMAT_UNKNOWN.

Ported by hand from PR #447 by mauroalvare onto the Vice-Tay base. Tests
check the blend description, the stream read, and PSO creation on the
host device.

Source: https://github.com/LooperSalty/AnyXboxX/pull/447
Co-authored-by: mauroalvare <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
When a title list is cut at a wait for a memory value, State::replay set
the pipeline, roots and heaps again on the new host list but kept
fresh_tables. A constant buffer view of such a table points into the
scratch memory of the earlier host list, filled from the title's memory
when that part is submitted, so the part after the cut reused a table
holding what the title held at the earlier submission, not at its own.

replay now clears fresh_tables (the dynamic slots stay until the list has
run or is reset). The other per-list caches of the PR do not exist or
need nothing here: the table readiness lives inside each FreshTable, and
the indirect window already ends on a new host list through first_use.

Ported by hand from PR #433 by mauroalvare onto the Vice-Tay base. The
test cuts a list onto a second host list and checks the table is made
again there, and reused within one part.

Source: https://github.com/LooperSalty/AnyXboxX/pull/433
Co-authored-by: mauroalvare <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:35:17 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-26 23:28 UTC · original

Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-26T23:28:40.703064Z
We couldn’t complete this review. Comment @codex review to try again.
ad9b80d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 23:28 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/457#issuecomment-7205574568) <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"ad9b80d2964aa0719db360b00f32a95c56f35e65","has_any_findings":true,"has_unresolved_findings":true,"status":"failed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ❌ Failed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ❌ **Failed** <relative-time datetime="2026-11-26T23:28:40.703064Z">2026-11-26T23:28:40.703064Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `ad9b80d` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-26 23:28 UTC · original

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-26 23:28 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/457#issuecomment-7205575039) You have reached your Codex usage limits for code reviews. You can see your limits in the [Codex usage dashboard](https://chatgpt.com/codex/cloud/settings/usage). To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your [settings](https://chatgpt.com/settings/code-review).
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/457/head:github-bot/gh-457'
git switch 'github-bot/gh-457'

Merge

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