fix(victory-gpu): port #447 onto the Vice-Tay base (PSO LogicOpEnable and stale RTFormats) #457

Open
LooperSalty wants to merge 6 commits from upstream-pr/457 into main
LooperSalty commented 2026-11-26 23:28:37 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-26T23:28:37Z.


Ports @mauroalvare's #447 onto the Vice-Tay base (#454): host_blend copied RenderTarget[0] (LogicOpEnable included) to every slot, and GraphicsState::read neither bounded NumRenderTargets nor cleared RTFormats[count..8], so 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 creating the PSOs on the host device.

The #433 part of this branch was dropped when merging main: main already carries its port (replay() also resets recording and window, with the original GPU tests), so main's draw.rs and cut_tables_tests.rs were kept.

Test plan

  • cargo test --release -p victory-gpu (459 passed after merging main)
  • cargo build --release --workspace
  • CI

Source: #447 (mauroalvare)

🤖 Generated with Claude Code

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:5518543948 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/457). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-26T23:28:37Z. --- Ports @mauroalvare's #447 onto the Vice-Tay base (#454): `host_blend` copied RenderTarget[0] (LogicOpEnable included) to every slot, and `GraphicsState::read` neither bounded `NumRenderTargets` nor cleared `RTFormats[count..8]`, so 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 creating the PSOs on the host device. The #433 part of this branch was dropped when merging `main`: `main` already carries its port (`replay()` also resets `recording` and `window`, with the original GPU tests), so `main`'s `draw.rs` and `cut_tables_tests.rs` were kept. ## Test plan - [x] `cargo test --release -p victory-gpu` (459 passed after merging main) - [x] `cargo build --release --workspace` - [ ] CI Source: #447 (mauroalvare) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chatgpt-codex-connector[bot] commented 2026-11-26 23:28:43 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T23:28:43Z.


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.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7205574568 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/457#issuecomment-7205574568). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T23:28:43Z. --- <!-- 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>
chatgpt-codex-connector[bot] commented 2026-11-26 23:28:45 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T23:28:45Z.


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.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7205575039 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/457#issuecomment-7205575039). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T23:28:45Z. --- 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).
LooperSalty commented 2026-11-27 12:24:04 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-27T12:24:04Z.


Review: State::replay drops 'self.recording = 0' (and the port of 433 drops 'self.window = None'). recording keys make_listed / LIST_VIEWS, so listed views from the previous host list persist across a cut. Please restore the reset or justify it with a test through make_listed. Also the GPU tests from 447 (blended value check, PSO creation) were replaced by structure-only asserts; please restore them and cite #447 in the commit trailer.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7218198338 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/457#issuecomment-7218198338). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-27T12:24:04Z. --- Review: State::replay drops 'self.recording = 0' (and the port of 433 drops 'self.window = None'). recording keys make_listed / LIST_VIEWS, so listed views from the previous host list persist across a cut. Please restore the reset or justify it with a test through make_listed. Also the GPU tests from 447 (blended value check, PSO creation) were replaced by structure-only asserts; please restore them and cite #447 in the commit trailer.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/457:upstream-pr/457'
git switch 'upstream-pr/457'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/457'
git switch 'upstream-pr/457'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/457'
git switch 'upstream-pr/457'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/457'
git switch 'main'
git merge --squash 'upstream-pr/457'
git switch 'main'
git merge --ff-only 'upstream-pr/457'
git switch 'main'
git merge 'upstream-pr/457'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LooperSalty/AnyXboxX!457
No description provided.