revert: start the color masks and viewport control at their reset values (#16053) #20845

Closed
oneandonlydean wants to merge 2 commits from upstream-pr/20845 into main
oneandonlydean commented 2026-11-15 16:55:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-11-15T16:55:03Z.


What

Exact inverse revert of #16053 (merge 83d984dff5). It started PA_CL_VTE_CNTL at 0 instead of 0x43f and accepted 0 as "no viewport transform", so a title that never writes the register now draws without the viewport transform. PPSA01825 renders upside down and aborts on garbage descriptors since it merged; the reporter of #20835 shows main with #16053 reverted rendering correctly. The color mask part can come back on its own; the viewport control reset needs the console's real reset behaviour first.

Tested

The reporter's run of PPSA01825 with #16053 reverted renders correctly (#20835). This PR needs the full suite and a boot of PPSA01825.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: #20835
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5324969868 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20845). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-11-15T16:55:03Z. --- ### What Exact inverse revert of #16053 (merge 83d984dff5f). It started `PA_CL_VTE_CNTL` at 0 instead of `0x43f` and accepted 0 as "no viewport transform", so a title that never writes the register now draws without the viewport transform. PPSA01825 renders upside down and aborts on garbage descriptors since it merged; the reporter of #20835 shows main with #16053 reverted rendering correctly. The color mask part can come back on its own; the viewport control reset needs the console's real reset behaviour first. ### Tested The reporter's run of PPSA01825 with #16053 reverted renders correctly (#20835). This PR needs the full suite and a boot of PPSA01825. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: #20835 - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-16 19:12:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T19:12:45Z.

Review: APPROVED


Reviewed — looks good

The changed initialization and decode paths consistently require homogeneous viewport mode, and the review found no verified blocking defect.

What I ran

Reviewed head 456302a8bd093c72dfdfcea200384196e0909c54. No build or tests were run; the PR description says the full suite and a PPSA01825 boot remain needed.

Results

Check Result Note
Changed code review passed Three changed files inspected
Build and tests not run Runtime behavior remains unconfirmed

Findings

Blocking

None.

Non-blocking

The PR description identifies an outstanding full-suite run and PPSA01825 boot, which would provide useful runtime confirmation.

Not verified

The test file was read only around InitialContextTests; its full text was excluded as too large. No build, test suite, or console boot was performed. files.json was not available in the prepared review bundle; file inclusion status was taken from manifest.json. Read files: description.md, commits.md, manifest.json, diff.patch, QueueState.hpp, State.cpp, and the Graphics.cpp range around InitialContextTests. Graphics.cpp was excluded from the full-text bundle.

To get this to a good state

Nothing is required. The full suite and PPSA01825 boot are optional follow-up evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5925899217 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20845#pullrequestreview-5925899217). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T19:12:45Z. **Review:** APPROVED --- # Reviewed — looks good The changed initialization and decode paths consistently require homogeneous viewport mode, and the review found no verified blocking defect. ## What I ran Reviewed head `456302a8bd093c72dfdfcea200384196e0909c54`. No build or tests were run; the PR description says the full suite and a PPSA01825 boot remain needed. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Three changed files inspected | | Build and tests | not run | Runtime behavior remains unconfirmed | ## Findings ### Blocking None. ### Non-blocking The PR description identifies an outstanding full-suite run and PPSA01825 boot, which would provide useful runtime confirmation. ## Not verified The test file was read only around `InitialContextTests`; its full text was excluded as too large. No build, test suite, or console boot was performed. `files.json` was not available in the prepared review bundle; file inclusion status was taken from `manifest.json`. Read files: `description.md`, `commits.md`, `manifest.json`, `diff.patch`, `QueueState.hpp`, `State.cpp`, and the `Graphics.cpp` range around `InitialContextTests`. `Graphics.cpp` was excluded from the full-text bundle. ## To get this to a good state Nothing is required. The full suite and PPSA01825 boot are optional follow-up evidence.
Jazeupoi commented 2026-11-18 12:38:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Jazeupoi on 2026-11-18T12:38:22Z.

Review: COMMENTED


SuperTuxKart (PPSA69421 00.001.000) shows the same flat purple screen on Windows with NVIDIA on current main, so this is not macOS-specific.

Setup: Windows 11 Pro (build 26300), NVIDIA GeForce RTX 2060 (driver 621.24), WinLibs GCC 15.2.0, Release, main 648ba19b3e (none of this PR's files have changed in main since). Converted with --windows --trap-sdk-syscall-stubs --registry. The title runs at 80 to 94 presents per 10 s, and every dumped frame (APS5_DUMP_FRAMES) is a single purple colour.

I could not test this PR on Windows, as it no longer merges cleanly. Once it is rebased I'll rerun it there.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5956673540 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20845#pullrequestreview-5956673540). Originally posted by [Jazeupoi](https://github.com/Jazeupoi) on 2026-11-18T12:38:22Z. **Review:** COMMENTED --- SuperTuxKart (PPSA69421 00.001.000) shows the same flat purple screen on Windows with NVIDIA on current `main`, so this is not macOS-specific. Setup: Windows 11 Pro (build 26300), NVIDIA GeForce RTX 2060 (driver 621.24), WinLibs GCC 15.2.0, Release, `main` `648ba19b3e` (none of this PR's files have changed in `main` since). Converted with `--windows --trap-sdk-syscall-stubs --registry`. The title runs at 80 to 94 presents per 10 s, and every dumped frame (`APS5_DUMP_FRAMES`) is a single purple colour. I could not test this PR on Windows, as it no longer merges cleanly. Once it is rebased I'll rerun it there. AI-assisted: yes (Claude Code)

Pull request closed

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
boykopovar/AnyPS5!20845
No description provided.