fix(shader): emit OpFmaKHR for f32 fma when VK_KHR_shader_fma is available #15343

Open
tablefrogpillow wants to merge 14 commits from upstream-pr/15343 into main
tablefrogpillow commented 2026-11-03 01:52:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by tablefrogpillow on 2026-11-03T01:52:58Z.


What

FPFma32 (guest v_fma_f32 / v_fmac_f32 / v_fmamk_f32 / v_fmaak_f32) emitted GLSLstd450Fma, whose precision is "inherited from OpFMul followed by OpFAdd". Mesa lowers that to a split fmul+fadd on RADV before RDNA2, rounding the product before the add — so agc_driver_f32_fma_denormal_mode2 returns 0x80000001 instead of the fused 0x80000002 on GCN.

EmitFPFma32 now emits OpFmaKHR (correctly rounded) for f32, the same path #11265 added for packed f16. The f16 and f32 FMA signals are carried as separate SpirvTarget flags (fmaFloat16 / fmaFloat32), serialized and cache-keyed like the existing target bits, so an f32-only device and an f16-capable one are distinguished — the FMAKHR capability alone cannot tell them apart. VulkanDevice detects VK_KHR_shader_fma's shaderFmaFloat32 alongside shaderFmaFloat16 and declares FMAKHR + SPV_KHR_fma only when a used feature needs it.

The f32 path is gated to VK_DRIVER_ID_MESA_RADV, intentionally: the bug is RADV's split fmul+fadd lowering of GLSLstd450Fma, so the narrowing excludes AMD's proprietary Windows driver (where f32 fma was reported working in review) and every other driver, which already fuse and keep the unchanged GLSLstd450Fma path. The f16 path is unchanged from #11265 and not driver-gated.

The on-disk FormatVersion and the request serializer version are bumped for the new serialized flags; FormatVersion is re-checked against main at merge, as other open PRs also bump it.

Tested

AGC shader recompiler. agc_driver_f32_fma_denormal_mode2, main vs this change, same machine and GPU, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1:

  • RX Vega 56 (RADV VEGA10, GCN5/gfx900), Mesa 26.2.6 — current main (already carrying #11265): FAIL (v_fmamk_f32 ... is 0x80000001, expected 0x80000002). This change: PASS (both IEEE modes run). The flip is produced by this change.
  • Full GCC build of the tree passes.
  • agc_driver_packed_float16_native, request_serializer_tests pass on RX Vega 56; PackedFloat16Native asserts both directions (FMAKHR present + fmaFloat16 off → non-fused; + on → fused).
  • Validation: agc_shader_fusion and agc_driver_address_draw_space_reuse on RX Vega 56 (RADV VEGA10) under Khronos validation layer 1.4.363 report no VUID- and no was not found but was requested. (The VkShaderModuleCreateInfo-pCode-08737/08739/08741 seen earlier were a validation layer older than VK_KHR_shader_fma.)

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 — n/a, no new stubs
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source — n/a, none added
  • Generic behaviour, not specific to one title
  • Depends on: none (builds on merged #11265)
  • Fixes: #15316
  • Unblocks: none
  • GPUs tested: RX Vega 56 (RADV VEGA10, Mesa 26.2.6)
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5130525387 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15343). Originally posted by [tablefrogpillow](https://github.com/tablefrogpillow) on 2026-11-03T01:52:58Z. --- ### What `FPFma32` (guest `v_fma_f32` / `v_fmac_f32` / `v_fmamk_f32` / `v_fmaak_f32`) emitted `GLSLstd450Fma`, whose precision is "inherited from `OpFMul` followed by `OpFAdd`". Mesa lowers that to a split `fmul`+`fadd` on RADV before RDNA2, rounding the product before the add — so `agc_driver_f32_fma_denormal_mode2` returns `0x80000001` instead of the fused `0x80000002` on GCN. `EmitFPFma32` now emits `OpFmaKHR` (correctly rounded) for f32, the same path #11265 added for packed f16. The f16 and f32 FMA signals are carried as separate `SpirvTarget` flags (`fmaFloat16` / `fmaFloat32`), serialized and cache-keyed like the existing target bits, so an f32-only device and an f16-capable one are distinguished — the `FMAKHR` capability alone cannot tell them apart. `VulkanDevice` detects `VK_KHR_shader_fma`'s `shaderFmaFloat32` alongside `shaderFmaFloat16` and declares `FMAKHR` + `SPV_KHR_fma` only when a used feature needs it. The f32 path is gated to `VK_DRIVER_ID_MESA_RADV`, intentionally: the bug is RADV's split `fmul`+`fadd` lowering of `GLSLstd450Fma`, so the narrowing excludes AMD's proprietary Windows driver (where f32 fma was reported working in review) and every other driver, which already fuse and keep the unchanged `GLSLstd450Fma` path. The f16 path is unchanged from #11265 and not driver-gated. The on-disk `FormatVersion` and the request serializer version are bumped for the new serialized flags; `FormatVersion` is re-checked against `main` at merge, as other open PRs also bump it. ### Tested AGC shader recompiler. `agc_driver_f32_fma_denormal_mode2`, `main` vs this change, same machine and GPU, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`: - **RX Vega 56 (RADV VEGA10, GCN5/gfx900), Mesa 26.2.6** — current `main` (already carrying #11265): **FAIL** (`v_fmamk_f32 ... is 0x80000001, expected 0x80000002`). This change: **PASS** (both IEEE modes run). The flip is produced by this change. - Full GCC build of the tree passes. - `agc_driver_packed_float16_native`, `request_serializer_tests` pass on RX Vega 56; `PackedFloat16Native` asserts both directions (FMAKHR present + `fmaFloat16` off → non-fused; + on → fused). - Validation: `agc_shader_fusion` and `agc_driver_address_draw_space_reuse` on RX Vega 56 (RADV VEGA10) under Khronos validation layer 1.4.363 report no `VUID-` and no `was not found but was requested`. (The `VkShaderModuleCreateInfo-pCode-08737/08739/08741` seen earlier were a validation layer older than `VK_KHR_shader_fma`.) ### 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 - [x] Unimplemented paths throw — n/a, no new stubs - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source — n/a, none added - [x] Generic behaviour, not specific to one title - [x] Depends on: none (builds on merged #11265) - [x] Fixes: #15316 - [x] Unblocks: none - [x] GPUs tested: RX Vega 56 (RADV VEGA10, Mesa 26.2.6) - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
BunnyFl commented 2026-11-03 02:15:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-03T02:15:48Z.

Review: APPROVED


Windows 11, AMD RX 9070 XT (driver reports VK_KHR_shader_fma revision 1), WinLibs GCC, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, merged onto current main:

  • 12 f32 FMA, denormal, NaN, clamp and output-modifier tests pass (agc_driver_fma_rounding, _fma_legacy, _f32_fma_denormal_mode2, _f32_arithmetic_nan, _f32_arithmetic_nan_fast, _f32_denormal_flush, _dx10_clamp, _f32_output_modifier, _f32_result_clamp, _f32_constant_factor_tininess, _f32_add_mul_denormal_modes, _mullit_f32_denormal_modes). With main's two files restored they pass too; nothing changed in these results.
  • To confirm the new branch ran: with a throw added after EmitExtension("SPV_KHR_fma") in EmitFPFma32, agc_driver_fma_rounding fails with that message.

Non-blocking: core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp:1617 adds "SPV_KHR_shader_fma" to spirvExtensions, but the SPIR-V extension is SPV_KHR_fma, which is the name the emitter declares (core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp:1938). 3rdparty/SPIRV-Headers/include/spirv/unified1/spirv.core.grammar.json:18223 lists FMAKHR under SPV_KHR_fma. On this head the two lines above are the only occurrences of either name under core/, and EmitFPFma32 checks CapabilityFMAKHR, not the extension list; the list also goes into the feature digest (core/shader/recompiler/CacheKey.hpp:72). It's worth correcting before something gates on it.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5746352640 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15343#pullrequestreview-5746352640). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-11-03T02:15:48Z. **Review:** APPROVED --- Windows 11, AMD RX 9070 XT (driver reports `VK_KHR_shader_fma` revision 1), WinLibs GCC, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, merged onto current `main`: - 12 f32 FMA, denormal, NaN, clamp and output-modifier tests pass (`agc_driver_fma_rounding`, `_fma_legacy`, `_f32_fma_denormal_mode2`, `_f32_arithmetic_nan`, `_f32_arithmetic_nan_fast`, `_f32_denormal_flush`, `_dx10_clamp`, `_f32_output_modifier`, `_f32_result_clamp`, `_f32_constant_factor_tininess`, `_f32_add_mul_denormal_modes`, `_mullit_f32_denormal_modes`). With main's two files restored they pass too; nothing changed in these results. - To confirm the new branch ran: with a `throw` added after `EmitExtension("SPV_KHR_fma")` in `EmitFPFma32`, `agc_driver_fma_rounding` fails with that message. Non-blocking: `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp:1617` adds `"SPV_KHR_shader_fma"` to `spirvExtensions`, but the SPIR-V extension is `SPV_KHR_fma`, which is the name the emitter declares (`core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp:1938`). `3rdparty/SPIRV-Headers/include/spirv/unified1/spirv.core.grammar.json:18223` lists `FMAKHR` under `SPV_KHR_fma`. On this head the two lines above are the only occurrences of either name under `core/`, and `EmitFPFma32` checks `CapabilityFMAKHR`, not the extension list; the list also goes into the feature digest (`core/shader/recompiler/CacheKey.hpp:72`). It's worth correcting before something gates on it.
MarcZX10 commented 2026-11-03 02:45:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T02:45:31Z.

Review: COMMENTED


Reviewed — no blocking findings

The device feature query, enable chain and FMA emission are consistent with the reported GPU behavior, but a SPIR-V extension-name typo remains and two hosted macOS checks are pending, so I am withholding approval.

What I ran

Reviewed both changed files at head bd74e5e4ee685eb8c39fb3b066b075f0855bfce1 against base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8; the current-base merge preview is clean. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. I did not build, compile, or run the GPU tests locally. The PR description and a separate review report targeted GPU test results; those are reported evidence, not tests I ran.

git diff --check refs/review/main-15343-current...refs/review/15343-current
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15343 --output-dir /tmp/anyps5-pr-precheck/15343-20261103
gh pr checks 15343 --repo boykopovar/AnyPS5
git grep -n -E 'FMAKHR|SPV_KHR_shader_fma|SPV_KHR_fma|spirvExtensions' refs/review/15343-current -- core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp core/shader/recompiler/CacheKey.hpp
git show refs/review/15343-current:core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
git show refs/review/15343-current:core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp

Results

Check Result Note
Diff and conventions passed Exact-head diff and repository conventions passed.
Feature and SPIR-V source review passed Supported feature gates the extension, capability and instruction.
Hosted checks passed Windows, Linux relinker, ASan, portability and policy checks passed.
Hosted macOS relinker checks not run Both architecture jobs remain pending.
Optional precheck helpers failed ABI and test-quality scripts are absent from the isolated PR snapshot.
Local build and GPU tests not run These require compilation and a suitable Vulkan device.
Reported focused GPU tests passed Author and another reviewer report focused tests; not independently reproduced here.
Full precheck table, unedited precheck output, and hosted checks
Check Status Command / reason
build_and_compile not_applicable The precheck deliberately does not configure, build, or compile AnyPS5.
diff_check passed git diff --check 7feb37ee3e30e10139b483fb4df689d5b5b69ab8...bd74e5e4ee685eb8c39fb3b066b075f0855bfce1
conventions_and_pr_template passed /usr/bin/python3 tools/check_conventions.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head bd74e5e4ee685eb8c39fb3b066b075f0855bfce1 --title fix(shader): emit OpFmaKHR for f32 fma when VK_KHR_shader_fma is available --body /tmp/anyps5-pr-precheck/15343-20261103/pr-body.md
changed_export_abi_audit failed /usr/bin/python3 tools/pr_abi_audit.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head bd74e5e4ee685eb8c39fb3b066b075f0855bfce1 --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.
python_test_registration not_applicable No changed test_*.py files.
live_dependency_and_mergeability_check passed /usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15343 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/15343-20261103/stack
build_dependent_cpp_tests not_applicable Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.
test_quality_heuristics failed /usr/bin/python3 /tmp/anyps5-pr-precheck/15343-20261103/head-bd74e5e4ee68-20fe9b8b/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/15343-20261103/head-bd74e5e4ee68-20fe9b8b --json core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp
negative_controls not_applicable No changed Python test module in tools/ can be run as a no-build base-source control.
conventions_and_pr_template — stdout
All conventions checks passed.

conventions_and_pr_template — stderr

changed_export_abi_audit — stdout

changed_export_abi_audit — stderr
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/15343-20261103/head-bd74e5e4ee68-20fe9b8b/tools/pr_abi_audit.py': [Errno 2] No such file or directory

live_dependency_and_mergeability_check — stdout
/tmp/anyps5-pr-precheck/15343-20261103/stack/stack-report.md
/tmp/anyps5-pr-precheck/15343-20261103/stack/stack-report.json

live_dependency_and_mergeability_check — stderr

test_quality_heuristics — stdout

test_quality_heuristics — stderr
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/15343-20261103/head-bd74e5e4ee68-20fe9b8b/tools/pr_test_quality.py': [Errno 2] No such file or directory

Unedited gh pr checks output:

edge-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682093809
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682093704
register-context	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682093473
write-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682094134
conventions	pass	21s	https://github.com/boykopovar/AnyPS5/actions/runs/41562596782/job/125676445026
intake	pass	23s	https://github.com/boykopovar/AnyPS5/actions/runs/41562596830/job/125676444697
labels	pass	10s	https://github.com/boykopovar/AnyPS5/actions/runs/41562596727/job/125676443913
relinker (ubuntu-latest, g++)	pass	4m41s	https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682092294
relinker (windows-latest, g++)	pass	7m25s	https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682092409
relinker-asan	pass	1m50s	https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682092296
report	pass	58s	https://github.com/boykopovar/AnyPS5/actions/runs/41562597274/job/125676444443
windows	pass	4m1s	https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682092284
relinker (macos-latest, clang++)	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682092369
relinker (macos-latest, clang++, x86_64)	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682092357
eligibility	pass	7s	https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125676442730
library-portability	pass	1m42s	https://github.com/boykopovar/AnyPS5/actions/runs/41562597190/job/125676444173

Negative control

I did not run a negative control locally because the focused C++ tests require a build. A separate reviewer reports that inserting a throw after the new emitter's EmitExtension("SPV_KHR_fma") makes agc_driver_fma_rounding fail, which is reported evidence rather than my own run.

Findings

Blocking

None found in the two changed files.

Non-blocking

VulkanDevice.cpp adds "SPV_KHR_shader_fma" to spirvExtensions, but the SPIR-V extension name is SPV_KHR_fma, which the emitter actually declares. The current FMA path checks CapabilityFMAKHR, so this mismatch does not block the present execution path; correcting the advertised extension name keeps the target's supported-extension metadata accurate.

state->spirvExtensions.push_back("SPV_KHR_fma");

Sources

Not verified

I did not independently reproduce the author's Linux RX Vega 56/RX 7900 GRE results or the other reviewer's Windows RX 9070 XT results. The two macOS relinker jobs are pending. No local build, CTest or console run was performed.

To get this to a good state

No blocking code change is required for this review. Correct the non-blocking extension-name typo when convenient; I will recheck this head and the same hosted checks before considering approval once both macOS jobs complete.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5746637887 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15343#pullrequestreview-5746637887). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T02:45:31Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The device feature query, enable chain and FMA emission are consistent with the reported GPU behavior, but a SPIR-V extension-name typo remains and two hosted macOS checks are pending, so I am withholding approval. ## What I ran Reviewed both changed files at head `bd74e5e4ee685eb8c39fb3b066b075f0855bfce1` against base `7feb37ee3e30e10139b483fb4df689d5b5b69ab8`; the current-base merge preview is clean. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0. I did not build, compile, or run the GPU tests locally. The PR description and a separate review report targeted GPU test results; those are reported evidence, not tests I ran. ```sh git diff --check refs/review/main-15343-current...refs/review/15343-current python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15343 --output-dir /tmp/anyps5-pr-precheck/15343-20261103 gh pr checks 15343 --repo boykopovar/AnyPS5 git grep -n -E 'FMAKHR|SPV_KHR_shader_fma|SPV_KHR_fma|spirvExtensions' refs/review/15343-current -- core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp core/shader/recompiler/CacheKey.hpp git show refs/review/15343-current:core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp git show refs/review/15343-current:core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | Exact-head diff and repository conventions passed. | | Feature and SPIR-V source review | passed | Supported feature gates the extension, capability and instruction. | | Hosted checks | passed | Windows, Linux relinker, ASan, portability and policy checks passed. | | Hosted macOS relinker checks | not run | Both architecture jobs remain pending. | | Optional precheck helpers | failed | ABI and test-quality scripts are absent from the isolated PR snapshot. | | Local build and GPU tests | not run | These require compilation and a suitable Vulkan device. | | Reported focused GPU tests | passed | Author and another reviewer report focused tests; not independently reproduced here. | <details><summary>Full precheck table, unedited precheck output, and hosted checks</summary> | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check 7feb37ee3e30e10139b483fb4df689d5b5b69ab8...bd74e5e4ee685eb8c39fb3b066b075f0855bfce1` | | conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head bd74e5e4ee685eb8c39fb3b066b075f0855bfce1 --title fix(shader): emit OpFmaKHR for f32 fma when VK_KHR_shader_fma is available --body /tmp/anyps5-pr-precheck/15343-20261103/pr-body.md` | | changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head bd74e5e4ee685eb8c39fb3b066b075f0855bfce1 --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15343 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/15343-20261103/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/usr/bin/python3 /tmp/anyps5-pr-precheck/15343-20261103/head-bd74e5e4ee68-20fe9b8b/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/15343-20261103/head-bd74e5e4ee68-20fe9b8b --json core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | <details><summary>conventions_and_pr_template — stdout</summary> ```text All conventions checks passed. ``` </details> <details><summary>conventions_and_pr_template — stderr</summary> ```text ``` </details> <details><summary>changed_export_abi_audit — stdout</summary> ```text ``` </details> <details><summary>changed_export_abi_audit — stderr</summary> ```text /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/15343-20261103/head-bd74e5e4ee68-20fe9b8b/tools/pr_abi_audit.py': [Errno 2] No such file or directory ``` </details> <details><summary>live_dependency_and_mergeability_check — stdout</summary> ```text /tmp/anyps5-pr-precheck/15343-20261103/stack/stack-report.md /tmp/anyps5-pr-precheck/15343-20261103/stack/stack-report.json ``` </details> <details><summary>live_dependency_and_mergeability_check — stderr</summary> ```text ``` </details> <details><summary>test_quality_heuristics — stdout</summary> ```text ``` </details> <details><summary>test_quality_heuristics — stderr</summary> ```text /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/15343-20261103/head-bd74e5e4ee68-20fe9b8b/tools/pr_test_quality.py': [Errno 2] No such file or directory ``` </details> Unedited `gh pr checks` output: ```text edge-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682093809 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682093704 register-context skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682093473 write-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682094134 conventions pass 21s https://github.com/boykopovar/AnyPS5/actions/runs/41562596782/job/125676445026 intake pass 23s https://github.com/boykopovar/AnyPS5/actions/runs/41562596830/job/125676444697 labels pass 10s https://github.com/boykopovar/AnyPS5/actions/runs/41562596727/job/125676443913 relinker (ubuntu-latest, g++) pass 4m41s https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682092294 relinker (windows-latest, g++) pass 7m25s https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682092409 relinker-asan pass 1m50s https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682092296 report pass 58s https://github.com/boykopovar/AnyPS5/actions/runs/41562597274/job/125676444443 windows pass 4m1s https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682092284 relinker (macos-latest, clang++) pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682092369 relinker (macos-latest, clang++, x86_64) pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125682092357 eligibility pass 7s https://github.com/boykopovar/AnyPS5/actions/runs/41562596817/job/125676442730 library-portability pass 1m42s https://github.com/boykopovar/AnyPS5/actions/runs/41562597190/job/125676444173 ``` </details> ## Negative control I did not run a negative control locally because the focused C++ tests require a build. A separate reviewer reports that inserting a throw after the new emitter's `EmitExtension("SPV_KHR_fma")` makes `agc_driver_fma_rounding` fail, which is reported evidence rather than my own run. ## Findings ### Blocking None found in the two changed files. ### Non-blocking `VulkanDevice.cpp` adds `"SPV_KHR_shader_fma"` to `spirvExtensions`, but the SPIR-V extension name is `SPV_KHR_fma`, which the emitter actually declares. The current FMA path checks `CapabilityFMAKHR`, so this mismatch does not block the present execution path; correcting the advertised extension name keeps the target's supported-extension metadata accurate. ```suggestion state->spirvExtensions.push_back("SPV_KHR_fma"); ``` ## Sources - [Vulkan feature query and extension metadata at this head](https://github.com/boykopovar/AnyPS5/blob/bd74e5e4ee685eb8c39fb3b066b075f0855bfce1/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L1606-L1618) - [FMA capability gate and emitted extension at this head](https://github.com/boykopovar/AnyPS5/blob/bd74e5e4ee685eb8c39fb3b066b075f0855bfce1/core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp#L1935-L1942) - [Khronos SPIR-V FMA extension specification at a pinned commit](https://github.com/KhronosGroup/SPIRV-Registry/blob/18a83557a73dc225fd59c1226c89530622c0f65e/extensions/KHR/SPV_KHR_fma.asciidoc#L1-L3) ## Not verified I did not independently reproduce the author's Linux RX Vega 56/RX 7900 GRE results or the other reviewer's Windows RX 9070 XT results. The two macOS relinker jobs are pending. No local build, CTest or console run was performed. ## To get this to a good state No blocking code change is required for this review. Correct the non-blocking extension-name typo when convenient; I will recheck this head and the same hosted checks before considering approval once both macOS jobs complete.
BunnyFl commented 2026-11-05 17:59:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-05T17:59:03Z.

Review: COMMENTED


@tablefrogpillow re-review of 7675de4f9a, after the rework onto #11265's plumbing and the ShaderValidation fix. My approval was on bd74e5e4ee; I'm not re-approving yet because of one question below. cc @adam25136, whose RTX 5080 run found the validator point.

What I ran: this head merged onto main fc23faa40a (merge e92afec3a8, clean), Windows 11 Pro 10.0.26300, WinLibs GCC, Release, AMD Radeon RX 9070 XT, AMD proprietary driver 26.10.2 (vulkaninfo: shaderFmaFloat16, shaderFmaFloat32 and shaderFmaFloat64 all true), with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and ctest -V:

the merge the merge with SpirvAluEmitterMath.cpp from main
agc_driver_f32_fma_denormal_mode2, agc_driver_fma_rounding, agc_driver_fma_legacy, agc_driver_f16_fma_denormal_modes, agc_driver_f16_fma_invalid_nan, agc_driver_float16_fma_rounding, agc_driver_fma_mix_f16_denormal_modes, agc_driver_dpp8_pk_fmac, agc_fma_mix_once, agc_driver_graphics 10 of 10 pass 10 of 10 pass
VUID- ids / layer-not-found lines none / 0 none / 0

agc_driver_f32_fma_denormal_mode2 prints 2 of 2 IEEE modes run in both runs. So on this GPU the test passes with main's f32 emitter too, and this run shows no regression but doesn't reproduce your Vega red/green.

Question (potential bug, from reading this head; not run: this GPU reports every fma bit, per vulkaninfo above): the two widths now share one capability.

  • core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp:1726 declares FMAKHR and SPV_KHR_fma when float16Fma || float32Fma, while :1722 and :1723 enable shaderFmaFloat16 and shaderFmaFloat32 separately.
  • core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp:1946: EmitFPFma32 emits an f32 OpFmaKHR whenever FMAKHR is among the supported capabilities.
  • core/shader/recompiler/Recompiler.cpp:266: nativeFloat16Fma = nativeFloat16 && supports(spv::CapabilityFMAKHR), which leads to the f16 OpFmaKHR in EmitFPFma16x2 (SpirvAluEmitterMath.cpp:1886).

On a device that reports shaderFmaFloat16 without shaderFmaFloat32, that would put an f32 OpFmaKHR in a shader on a device created with shaderFmaFloat32 = VK_FALSE. A device with only shaderFmaFloat32 (and the f16 RTE conditions) would get the reverse for f16. On main, FMAKHR is declared only with float16Fma, and f32 fma never uses OpFmaKHR. Is an OpFmaKHR of a width whose feature isn't enabled allowed by VK_KHR_shader_fma? If not, gating each path on its own bit (passing fmaFloat32 to the recompiler target, as the validator now receives it) would keep the two apart. I haven't found a device that reports only one of the two bits.

Overlap (tools/pr_overlap.py --branch on this head): #9508 (perf(agc): GPU descriptor heap) changes the same ShaderValidation.cpp lines on main (L363, the SPIR-V extension check, and L710-711), and neither PR lists the other under Depends on. Whichever lands second will need to redo those lines.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5789572775 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15343#pullrequestreview-5789572775). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-11-05T17:59:03Z. **Review:** COMMENTED --- @tablefrogpillow re-review of `7675de4f9a`, after the rework onto #11265's plumbing and the `ShaderValidation` fix. My approval was on `bd74e5e4ee`; I'm not re-approving yet because of one question below. cc @adam25136, whose RTX 5080 run found the validator point. **What I ran:** this head merged onto `main` `fc23faa40a` (merge `e92afec3a8`, clean), Windows 11 Pro 10.0.26300, WinLibs GCC, Release, AMD Radeon RX 9070 XT, AMD proprietary driver 26.10.2 (`vulkaninfo`: `shaderFmaFloat16`, `shaderFmaFloat32` and `shaderFmaFloat64` all true), with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` and `ctest -V`: | | the merge | the merge with `SpirvAluEmitterMath.cpp` from `main` | |---|---|---| | `agc_driver_f32_fma_denormal_mode2`, `agc_driver_fma_rounding`, `agc_driver_fma_legacy`, `agc_driver_f16_fma_denormal_modes`, `agc_driver_f16_fma_invalid_nan`, `agc_driver_float16_fma_rounding`, `agc_driver_fma_mix_f16_denormal_modes`, `agc_driver_dpp8_pk_fmac`, `agc_fma_mix_once`, `agc_driver_graphics` | 10 of 10 pass | 10 of 10 pass | | `VUID-` ids / layer-not-found lines | none / 0 | none / 0 | `agc_driver_f32_fma_denormal_mode2` prints `2 of 2 IEEE modes run` in both runs. So on this GPU the test passes with `main`'s f32 emitter too, and this run shows no regression but doesn't reproduce your Vega red/green. **Question (potential bug, from reading this head; not run: this GPU reports every fma bit, per `vulkaninfo` above):** the two widths now share one capability. - `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp:1726` declares `FMAKHR` and `SPV_KHR_fma` when `float16Fma || float32Fma`, while `:1722` and `:1723` enable `shaderFmaFloat16` and `shaderFmaFloat32` separately. - `core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp:1946`: `EmitFPFma32` emits an f32 `OpFmaKHR` whenever `FMAKHR` is among the supported capabilities. - `core/shader/recompiler/Recompiler.cpp:266`: `nativeFloat16Fma = nativeFloat16 && supports(spv::CapabilityFMAKHR)`, which leads to the f16 `OpFmaKHR` in `EmitFPFma16x2` (`SpirvAluEmitterMath.cpp:1886`). On a device that reports `shaderFmaFloat16` without `shaderFmaFloat32`, that would put an f32 `OpFmaKHR` in a shader on a device created with `shaderFmaFloat32 = VK_FALSE`. A device with only `shaderFmaFloat32` (and the f16 RTE conditions) would get the reverse for f16. On `main`, `FMAKHR` is declared only with `float16Fma`, and f32 fma never uses `OpFmaKHR`. Is an `OpFmaKHR` of a width whose feature isn't enabled allowed by `VK_KHR_shader_fma`? If not, gating each path on its own bit (passing `fmaFloat32` to the recompiler target, as the validator now receives it) would keep the two apart. I haven't found a device that reports only one of the two bits. **Overlap** (`tools/pr_overlap.py --branch` on this head): #9508 (`perf(agc): GPU descriptor heap`) changes the same `ShaderValidation.cpp` lines on `main` (L363, the SPIR-V extension check, and L710-711), and neither PR lists the other under `Depends on`. Whichever lands second will need to redo those lines. AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-11-14 03:28:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T03:28:17Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change; the review is incomplete because two changed files were excluded from the prepared folder.

What I ran

Reviewed head be59cbb3707e38c47b44c7fe991e7e89fcc9a231 using the prepared diff and repo_read.py. No build or tests were run.

Results

Check Result Note
Diff and targeted source review passed Main FMA, feature, and serializer paths inspected
Build and tests not run Author-reported runs were not independently verified
Excluded changed files not run Two files read through the pinned reader

Findings

Blocking

None in the code inspected.

Non-blocking

None.

Not verified

The full text for core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp and core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp was excluded from the prepared folder. Their changed regions were read through repo_read.py, but the rest of each file was not reviewed. The other 14 changed files listed in the manifest were included; targeted ranges were read for the relevant code paths. No build, automated tests, or physical-console behavior was independently verified.

To get this to a good state

Nothing is required. Optional: run the build and reported GPU tests on this head, and complete review of the excluded files before treating this as a full review.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5901271558 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15343#pullrequestreview-5901271558). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T03:28:17Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change; the review is incomplete because two changed files were excluded from the prepared folder. ## What I ran Reviewed head `be59cbb3707e38c47b44c7fe991e7e89fcc9a231` using the prepared diff and `repo_read.py`. No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | Main FMA, feature, and serializer paths inspected | | Build and tests | not run | Author-reported runs were not independently verified | | Excluded changed files | not run | Two files read through the pinned reader | ## Findings ### Blocking None in the code inspected. ### Non-blocking None. ## Not verified The full text for `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` and `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` was excluded from the prepared folder. Their changed regions were read through `repo_read.py`, but the rest of each file was not reviewed. The other 14 changed files listed in the manifest were included; targeted ranges were read for the relevant code paths. No build, automated tests, or physical-console behavior was independently verified. ## To get this to a good state Nothing is required. Optional: run the build and reported GPU tests on this head, and complete review of the excluded files before treating this as a full review.
MarcZX10 commented 2026-11-16 18:51:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T18:51:41Z.

Review: APPROVED


Reviewed — looks good

The reviewed change adds per-feature FMA target flags and enables f32 OpFmaKHR on RADV when the Vulkan feature is available; no blocking defect was verified in the inspected code.

What I ran

No build or tests were run. I read the prepared diff and inspected targeted source ranges at head 4403ff9b3e4c50cd3c02d12502082990db3238e9 through repo_read.py.

Results

Check Result Note
Diff and targeted source review passed FMA gating and serialization paths inspected
Build and tests not run Author-reported results were not independently run

Findings

Blocking

None verified in the inspected code.

Non-blocking

None.

Not verified

I read the changed code in VulkanDevice.cpp, ShaderValidation.cpp, SpirvAluEmitterMath.cpp, RequestSerializer.cpp, CacheKey.hpp, RequestSerializerTests.cpp, and the changed fixture lines in ShaderMemory.cpp. The diff and manifest were read; the remaining included changed files were not read in full. files.json was not available as a review document; the manifest identifies VulkanDevice.cpp and ShaderMemory.cpp as excluded from review/files/, and their targeted ranges were read through the reader. No build, unit tests, GPU tests, or validation-layer checks were run; the outcomes in the PR description are author-reported.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5925599892 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15343#pullrequestreview-5925599892). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T18:51:41Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed change adds per-feature FMA target flags and enables f32 `OpFmaKHR` on RADV when the Vulkan feature is available; no blocking defect was verified in the inspected code. ## What I ran No build or tests were run. I read the prepared diff and inspected targeted source ranges at head `4403ff9b3e4c50cd3c02d12502082990db3238e9` through `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | FMA gating and serialization paths inspected | | Build and tests | not run | Author-reported results were not independently run | ## Findings ### Blocking None verified in the inspected code. ### Non-blocking None. ## Not verified I read the changed code in `VulkanDevice.cpp`, `ShaderValidation.cpp`, `SpirvAluEmitterMath.cpp`, `RequestSerializer.cpp`, `CacheKey.hpp`, `RequestSerializerTests.cpp`, and the changed fixture lines in `ShaderMemory.cpp`. The diff and manifest were read; the remaining included changed files were not read in full. `files.json` was not available as a review document; the manifest identifies `VulkanDevice.cpp` and `ShaderMemory.cpp` as excluded from `review/files/`, and their targeted ranges were read through the reader. No build, unit tests, GPU tests, or validation-layer checks were run; the outcomes in the PR description are author-reported. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-21 02:35:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T02:35:55Z.

Review: APPROVED


Reviewed — looks good

The reviewed portions of head 2a453f8efe20a39142c7f987c379494cb6d3cc06 show consistent feature gating, serialization, cache-keying, emission, and validation for f32 FMA; no tests were run independently.

What I ran

Read the prepared diff and targeted source ranges using repo_read.py at the pinned head. No build or tests were run. Author-reported test results in description.md were not independently verified.

Results

Check Result Note
Changed-line review passed 17 changed files inspected
Build and tests not run Author reports successful checks
Hardware behavior not verified RADV report is author supplied

Findings

Blocking

None.

Non-blocking

None.

Not verified

The full text of VulkanDevice.cpp and ShaderMemory.cpp was excluded from the review folder; their changed hunks were read through the pinned reader. All other changed files listed in manifest.json were read. No full-file review, build, tests, or physical-console verification was performed. The hardware results and validation-layer results in the PR description remain author-reported.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6002300292 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15343#pullrequestreview-6002300292). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T02:35:55Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed portions of head `2a453f8efe20a39142c7f987c379494cb6d3cc06` show consistent feature gating, serialization, cache-keying, emission, and validation for f32 FMA; no tests were run independently. ## What I ran Read the prepared diff and targeted source ranges using `repo_read.py` at the pinned head. No build or tests were run. Author-reported test results in `description.md` were not independently verified. ## Results | Check | Result | Note | |---|---|---| | Changed-line review | passed | 17 changed files inspected | | Build and tests | not run | Author reports successful checks | | Hardware behavior | not verified | RADV report is author supplied | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The full text of `VulkanDevice.cpp` and `ShaderMemory.cpp` was excluded from the review folder; their changed hunks were read through the pinned reader. All other changed files listed in `manifest.json` were read. No full-file review, build, tests, or physical-console verification was performed. The hardware results and validation-layer results in the PR description remain author-reported. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-21 03:23:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T03:23:31Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change; the points below are optional.

What I ran

Reviewed head 69e2a4df5c2af5b037a94800a279a7daf4dadc80. No commands or tests were run; repository content was inspected through repo_read.py.

Results

Check Result Note
Code review not run Two changed files were not read in full
Tests not run No tests executed

Findings

Blocking

None in the code inspected.

Non-blocking

None.

Not verified

The changed lines of core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp and core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp were not read from the pinned repository head. Their full text was excluded from the review folder due to size. The author-reported build, GPU results, and validation checks were not independently verified. No test was run.

Read: description.md, commits.md, manifest.json, diff.patch, core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp, and the changed files represented in the diff. Excluded from full-text review: VulkanDevice.cpp and ShaderMemory.cpp.

To get this to a good state

Nothing is required. Optional: independently verify the reported build and GPU tests, and inspect the excluded changed-file lines before treating this as a complete review.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6002532724 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15343#pullrequestreview-6002532724). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-21T03:23:31Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change; the points below are optional. ## What I ran Reviewed head `69e2a4df5c2af5b037a94800a279a7daf4dadc80`. No commands or tests were run; repository content was inspected through `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Code review | not run | Two changed files were not read in full | | Tests | not run | No tests executed | ## Findings ### Blocking None in the code inspected. ### Non-blocking None. ## Not verified The changed lines of `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` and `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` were not read from the pinned repository head. Their full text was excluded from the review folder due to size. The author-reported build, GPU results, and validation checks were not independently verified. No test was run. Read: `description.md`, `commits.md`, `manifest.json`, `diff.patch`, `core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp`, and the changed files represented in the diff. Excluded from full-text review: `VulkanDevice.cpp` and `ShaderMemory.cpp`. ## To get this to a good state Nothing is required. Optional: independently verify the reported build and GPU tests, and inspect the excluded changed-file lines before treating this as a complete review.
ligmaSec commented 2026-12-03 22:41:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:41:09Z.

Review: COMMENTED


I compiled the exact request serializer. The f32 FMA capability flag round-trips here, but main c1601e56d5 rejects the version 64 capture as truncated. This reader also rejects main’s version 64 capture at the emulated-barycentrics field. Please reconcile the format version and replay compatibility along with the conflicts in the serializer, cache, shader validation, and fixtures. The native format check is independent of whether the device can execute OpFmaKHR.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6179887527 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15343#pullrequestreview-6179887527). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T22:41:09Z. **Review:** COMMENTED --- I compiled the exact request serializer. The f32 FMA capability flag round-trips here, but main `c1601e56d5` rejects the version 64 capture as truncated. This reader also rejects main’s version 64 capture at the emulated-barycentrics field. Please reconcile the format version and replay compatibility along with the conflicts in the serializer, cache, shader validation, and fixtures. The native format check is independent of whether the device can execute `OpFmaKHR`. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/15343:upstream-pr/15343'
git switch 'upstream-pr/15343'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/15343'
git switch 'upstream-pr/15343'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/15343'
git switch 'upstream-pr/15343'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/15343'
git switch 'main'
git merge --squash 'upstream-pr/15343'
git switch 'main'
git merge --ff-only 'upstream-pr/15343'
git switch 'main'
git merge 'upstream-pr/15343'
git push origin 'main'
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!15343
No description provided.