revert(shader): undo #2279's fma NaN result selection #2584

Merged
oneandonlydean merged 1 commit from upstream-pr/2584 into main 2026-10-10 07:22:49 +00:00
oneandonlydean commented 2026-10-10 07:03:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T07:03:00Z.


Reverts #2279, as agreed with adriadam10.

Why

Since #2279, agc_driver_f32_arithmetic_nan fails on NVIDIA under Windows on every run (#2581):

AGC graphics: f32 arithmetic nan: lane 1 no float mode v_fmamk_f32 is 0x7fc12345, expected 0x7f812345

v_fmamk_f32 returns a quiet NaN where the signalling one is expected. The reporter measured 0/5 on main and 5/5 with #2279 reverted. CI's Windows job has no Vulkan driver, so the AGC execution tests skip there and it didn't show.

What

A revert of the #2279 merge. One conflict: v_fma_legacy was rewritten as a split multiply and add after #2279, so that rewrite is kept and it gets back the invalid-product argument to nanResultF32 that it passed before #2279. #2279's VectorFmaNanResult test goes with it.

Tested

  • tools/check_conventions.py passes.
  • The full build runs agc_driver_f32_arithmetic_nan on lavapipe.

Fixes #2581

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 in TechnicalDebt
  • 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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4809440754 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2584). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-10T07:03:00Z. --- Reverts #2279, as agreed with adriadam10. ### Why Since #2279, `agc_driver_f32_arithmetic_nan` fails on NVIDIA under Windows on every run (#2581): ``` AGC graphics: f32 arithmetic nan: lane 1 no float mode v_fmamk_f32 is 0x7fc12345, expected 0x7f812345 ``` `v_fmamk_f32` returns a quiet NaN where the signalling one is expected. The reporter measured 0/5 on main and 5/5 with #2279 reverted. CI's Windows job has no Vulkan driver, so the AGC execution tests skip there and it didn't show. ### What A revert of the #2279 merge. One conflict: `v_fma_legacy` was rewritten as a split multiply and add after #2279, so that rewrite is kept and it gets back the invalid-product argument to `nanResultF32` that it passed before #2279. #2279's `VectorFmaNanResult` test goes with it. ### Tested - `tools/check_conventions.py` passes. - The full build runs `agc_driver_f32_arithmetic_nan` on lavapipe. Fixes #2581 ### 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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] AI-assisted: yes
github-actions[bot] commented 2026-10-10 07:21:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T07:21: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
#2035 core/shader/recompiler/Translation/include/Translation/TranslationContext.hpp L65
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6095068525 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2584#issuecomment-6095068525). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T07:21: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 | |---|---|---|---| | #2035 | `core/shader/recompiler/Translation/include/Translation/TranslationContext.hpp` [L65](https://github.com/boykopovar/AnyPS5/blob/5596e5bd62b142fdea5e31f024b5dc63bba26a97/core/shader/recompiler/Translation/include/Translation/TranslationContext.hpp#L65) | | |
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!2584
No description provided.