fix(shader): support f32 denormals for v_fma_mixlo/mixhi_f16 #18527

Merged
Kikoarl merged 2 commits from upstream-pr/18527 into main 2026-11-16 06:23:16 +00:00
Kikoarl commented 2026-11-11 20:15:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-11-11T20:15:43Z.


What

Support f32 denormals mode 1 and mode 2 for v_fma_mixlo_f16 and v_fma_mixhi_f16 in f32DenormalFlushFor. When denormal mode 1 is requested, verify DenormPreserve 32 support from the target before enabling denormal preservation.

Tested

  • Built and passed agc_fma_mix_once_tests in RAM-disk (/tmp/anyps5_build) covering Wave32 and Wave64 compilation for mode 1 with DenormPreserve 32, mode 2, and refusal when DenormPreserve 32 is not offered.
  • Built and passed agc_driver_fma_mix_f16_denormal_modes_tests executing denormal f32 inputs through v_fma_mixlo_f16 and v_fma_mixhi_f16 in modes 1 and 2 matching hardware oracle measurements on gfx1036.
  • ctest --test-dir /tmp/anyps5_build -R agc_fma_mix_once (100% pass).
  • python3 tools/check_conventions.py --base origin/main (passed).

Checklist

  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5266188806 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18527). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-11-11T20:15:43Z. --- ### What Support f32 denormals mode 1 and mode 2 for `v_fma_mixlo_f16` and `v_fma_mixhi_f16` in `f32DenormalFlushFor`. When denormal mode 1 is requested, verify `DenormPreserve 32` support from the target before enabling denormal preservation. ### Tested - Built and passed `agc_fma_mix_once_tests` in RAM-disk (`/tmp/anyps5_build`) covering Wave32 and Wave64 compilation for mode 1 with `DenormPreserve 32`, mode 2, and refusal when `DenormPreserve 32` is not offered. - Built and passed `agc_driver_fma_mix_f16_denormal_modes_tests` executing denormal f32 inputs through `v_fma_mixlo_f16` and `v_fma_mixhi_f16` in modes 1 and 2 matching hardware oracle measurements on gfx1036. - `ctest --test-dir /tmp/anyps5_build -R agc_fma_mix_once` (100% pass). - `python3 tools/check_conventions.py --base origin/main` (passed). ### Checklist - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: 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!18527
No description provided.