fix(shader): preserve interpolation instruction operands #142

Merged
SamG-Coder merged 2 commits from upstream-pr/142 into main 2026-10-01 18:17:16 +00:00
SamG-Coder commented 2026-09-29 02:27:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SamG-Coder on 2026-09-29T02:27:19Z.


What

Preserve the actual source operands and intermediate destination of V_INTERP_P1_F32 / V_INTERP_P2_F32 when fragment barycentrics are enabled. This permits mixed perspective/linear I/J pairs on the same parameter and preserves copied coordinates, modified coordinates, and arithmetic on the partial result.

Rebased onto upstream c7fb2575. Former dependencies #113 and #136, and parameter-slot fix #137, are now upstream. Retains upstream rejection of unsupported interpolated pass-through inputs. Slot tests now verify the per-vertex declarations used by explicit interpolation. Devices without enabled fragment barycentrics retain the existing direct-attribute path and its limitations.

Tested

Windows / RTX 5080, c329ad26:

  • Full build and packaged libraries passed; 88/88 CTest tests passed.
  • 37/37 converted original PS5-targeted demos passed, 74 frames, 16,576 interior pixel comparisons, maximum channel error 1/255.
  • Perspective/linear center and centroid modes, all mixed-pair combinations, copied I/J with originals overwritten, modified J, and modified P1 results passed.
  • Both deliberately incorrect I/J-pair mutations were rejected, with 39/255 channel error.

No physical-console, multisample-centroid, complete-application, clean-exit or performance claim. Processes are stopped after capture. The earlier original-program symbolic analysis was not repeated for this rebase. Demos, captures and reports remain outside Git.

Checklist

  • Based on current upstream main; merged dependencies removed
  • One implementation topic; unsupported paths retain strict validation
  • No new code comments, third-party code, investigation documents, images or original application assets
  • Generic behavior
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4671730949 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/142). Originally posted by [SamG-Coder](https://github.com/SamG-Coder) on 2026-09-29T02:27:19Z. --- ### What Preserve the actual source operands and intermediate destination of V_INTERP_P1_F32 / V_INTERP_P2_F32 when fragment barycentrics are enabled. This permits mixed perspective/linear I/J pairs on the same parameter and preserves copied coordinates, modified coordinates, and arithmetic on the partial result. Rebased onto upstream c7fb2575. Former dependencies #113 and #136, and parameter-slot fix #137, are now upstream. Retains upstream rejection of unsupported interpolated pass-through inputs. Slot tests now verify the per-vertex declarations used by explicit interpolation. Devices without enabled fragment barycentrics retain the existing direct-attribute path and its limitations. ### Tested Windows / RTX 5080, c329ad26: - Full build and packaged libraries passed; 88/88 CTest tests passed. - 37/37 converted original PS5-targeted demos passed, 74 frames, 16,576 interior pixel comparisons, maximum channel error 1/255. - Perspective/linear center and centroid modes, all mixed-pair combinations, copied I/J with originals overwritten, modified J, and modified P1 results passed. - Both deliberately incorrect I/J-pair mutations were rejected, with 39/255 channel error. No physical-console, multisample-centroid, complete-application, clean-exit or performance claim. Processes are stopped after capture. The earlier original-program symbolic analysis was not repeated for this rebase. Demos, captures and reports remain outside Git. ### Checklist - [x] Based on current upstream main; merged dependencies removed - [x] One implementation topic; unsupported paths retain strict validation - [x] No new code comments, third-party code, investigation documents, images or original application assets - [x] Generic behavior - [x] Depends on: none - [x] AI-assisted: yes
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!142
No description provided.