fix(shader): fold current s_wqm pixel lane #4033

Merged
MarcZX10 merged 1 commit from upstream-pr/4033 into main 2026-10-12 05:19:43 +00:00
MarcZX10 commented 2026-10-11 21:41:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T21:41:52Z.


What

Fold the current lane’s s_wqm bit to true for the supported pixel shader pattern, allowing the constant folder to remove the pixel ancillary select chain. Regression cases ensure unsupported patterns remain unchanged. This carries the fix for #2548; the original commit author is preserved.

Tested

  • Linux GCC Release/Ninja: built pixel_ancillary_tests.
  • CTest pixel_ancillary passed (1/1) on the rebased commit.

Checklist

  • Based on current main
  • One topic per PR
  • No new third-party code
  • Depends on: none
  • AI-assisted: yes

Provenance: carries ThatsLeo’s fix from #2548; the commit author remains ThatsLeo.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4822578876 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4033). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-11T21:41:52Z. --- ### What Fold the current lane’s s_wqm bit to true for the supported pixel shader pattern, allowing the constant folder to remove the pixel ancillary select chain. Regression cases ensure unsupported patterns remain unchanged. This carries the fix for #2548; the original commit author is preserved. ### Tested - Linux GCC Release/Ninja: built pixel_ancillary_tests. - CTest pixel_ancillary passed (1/1) on the rebased commit. ### Checklist - [x] Based on current main - [x] One topic per PR - [x] No new third-party code - [x] Depends on: none - [x] AI-assisted: yes Provenance: carries ThatsLeo’s fix from #2548; the commit author remains ThatsLeo.
MarcZX10 commented 2026-10-11 21:42:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T21:42:01Z.


Linux validation report: pixel_ancillary_tests built successfully with GCC 12.2 / Ninja in Release mode, and CTest pixel_ancillary passed (1/1) on the latest rebased commit. This validates the positive and negative cases in the suite; I did not run a game or PS5 hardware test.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114099290 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4033#issuecomment-6114099290). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-11T21:42:01Z. --- Linux validation report: `pixel_ancillary_tests` built successfully with GCC 12.2 / Ninja in Release mode, and CTest `pixel_ancillary` passed (1/1) on the latest rebased commit. This validates the positive and negative cases in the suite; I did not run a game or PS5 hardware test.
github-actions[bot] commented 2026-10-11 21:52:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T21:52:11Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#3891 core/shader/recompiler/Optimization/src/ConstantFolder.cpp L655-656
#4031 core/libs/tests/PixelAncillary.cpp L429, L478
#4156 core/shader/recompiler/Optimization/src/ConstantFolder.cpp L655-656
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114202577 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4033#issuecomment-6114202577). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T21:52:11Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #3891 | `core/shader/recompiler/Optimization/src/ConstantFolder.cpp` [L655-656](https://github.com/boykopovar/AnyPS5/blob/6d9a680fbb7cf535e9e48cc52195b6c0fa8f284a/core/shader/recompiler/Optimization/src/ConstantFolder.cpp#L655-L656) | | | | #4031 | `core/libs/tests/PixelAncillary.cpp` [L429](https://github.com/boykopovar/AnyPS5/blob/6d9a680fbb7cf535e9e48cc52195b6c0fa8f284a/core/libs/tests/PixelAncillary.cpp#L429), [L478](https://github.com/boykopovar/AnyPS5/blob/6d9a680fbb7cf535e9e48cc52195b6c0fa8f284a/core/libs/tests/PixelAncillary.cpp#L478) | | | | #4156 | `core/shader/recompiler/Optimization/src/ConstantFolder.cpp` [L655-656](https://github.com/boykopovar/AnyPS5/blob/6d9a680fbb7cf535e9e48cc52195b6c0fa8f284a/core/shader/recompiler/Optimization/src/ConstantFolder.cpp#L655-L656) | | |
MarcZX10 commented 2026-10-11 22:50:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T22:50:23Z.


The earlier conventions failure is superseded by the successful run on the current head. The latest conventions, eligibility, intake, relinker and register-context checks pass; the full Linux and Windows jobs are skipped by repository policy.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114783144 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4033#issuecomment-6114783144). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-11T22:50:23Z. --- The earlier conventions failure is superseded by the successful run on the current head. The latest conventions, eligibility, intake, relinker and register-context checks pass; the full Linux and Windows jobs are skipped by repository policy.
MarcZX10 commented 2026-10-11 23:37:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T23:37:39Z.


I checked the current checks on this PR after the earlier failure report. The latest conventions run and all current required checks pass; the failure shown in the older check attempt was superseded. The shader regression test was reported passing on the current PR head.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115182731 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4033#issuecomment-6115182731). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-11T23:37:39Z. --- I checked the current checks on this PR after the earlier failure report. The latest conventions run and all current required checks pass; the failure shown in the older check attempt was superseded. The shader regression test was reported passing on the current PR head.
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!4033
No description provided.