fix(agc): keep the color write mask in the pipeline of a fragment shader interlock pipeline #21260

Merged
oneandonlydean merged 1 commit from upstream-pr/21260 into main 2026-11-19 22:18:02 +00:00
oneandonlydean commented 2026-11-16 02:55:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-11-16T02:55:13Z.


What

Carries fernandomcrsilva's fix for #18770 (RDNA3 pixel interlock drops writes), whose author can't open another pull request right now; the commit and its authorship are unchanged. A fragment shader interlock pipeline now keeps its color write mask static in the pipeline instead of setting it with vkCmdSetColorWriteMaskEXT, and the test requires that no dynamic color write mask is used for such a pipeline.

Tested

tablefrogpillow verified the commit on NAVI31: 0 of 60 runs fail against 42 of 50 before, the pixel shader epilog is gone, the vscnt wait is present, and the dynamic mask and blend tests pass.

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: #18770
  • Unblocks: none
  • GPUs tested: AMD NAVI31
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5330203640 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21260). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-11-16T02:55:13Z. --- ### What Carries `fernandomcrsilva`'s fix for #18770 (RDNA3 pixel interlock drops writes), whose author can't open another pull request right now; the commit and its authorship are unchanged. A fragment shader interlock pipeline now keeps its color write mask static in the pipeline instead of setting it with `vkCmdSetColorWriteMaskEXT`, and the test requires that no dynamic color write mask is used for such a pipeline. ### Tested `tablefrogpillow` verified the commit on NAVI31: 0 of 60 runs fail against 42 of 50 before, the pixel shader epilog is gone, the vscnt wait is present, and the dynamic mask and blend tests pass. ### 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: #18770 - [x] Unblocks: none - [x] GPUs tested: AMD NAVI31 - [x] AI-assisted: yes
MarcZX10 commented 2026-11-16 03:52:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T03:52:43Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the inspected code keeps fragment interlock pipelines on static color write masks and includes that choice in pipeline cache keys.

What I ran

Reviewed head d72384275c016480c5d349879d80f1ca7183175b. No build or tests were run. I read review/description.md, review/commits.md, review/manifest.json, review/diff.patch, review/README.md, and both changed files at the added lines and relevant surrounding functions. files.json was not available; the description identifies two rule-excluded files, which were not read.

Results

Check Result Note
Diff and changed lines passed Both changed files inspected
Build and tests not run No local execution performed
Excluded files not run Two files excluded by review preparation

Findings

Blocking

None.

Non-blocking

None.

Not verified

The author reports NAVI31 testing, but I did not verify or rerun it. The excluded core/libs/prx/libSceAgcDriver/tests/execution/PixelInterlock.cpp and docs/dev/debt/changes/fix-agc-interlock-static-color-write-mask.md were not read. Build and automated test results were not verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5914831517 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/21260#pullrequestreview-5914831517). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T03:52:43Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the inspected code keeps fragment interlock pipelines on static color write masks and includes that choice in pipeline cache keys. ## What I ran Reviewed head `d72384275c016480c5d349879d80f1ca7183175b`. No build or tests were run. I read `review/description.md`, `review/commits.md`, `review/manifest.json`, `review/diff.patch`, `review/README.md`, and both changed files at the added lines and relevant surrounding functions. `files.json` was not available; the description identifies two rule-excluded files, which were not read. ## Results | Check | Result | Note | |---|---|---| | Diff and changed lines | passed | Both changed files inspected | | Build and tests | not run | No local execution performed | | Excluded files | not run | Two files excluded by review preparation | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The author reports NAVI31 testing, but I did not verify or rerun it. The excluded `core/libs/prx/libSceAgcDriver/tests/execution/PixelInterlock.cpp` and `docs/dev/debt/changes/fix-agc-interlock-static-color-write-mask.md` were not read. Build and automated test results were not verified. ## To get this to a good state Nothing is required.
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!21260
No description provided.