perf(shader): compute v_pk_fma_f16 and v_pk_fmac_f16 with OpFmaKHR #11265

Merged
tibzejoker merged 2 commits from upstream-pr/11265 into main 2026-11-04 04:48:25 +00:00
tibzejoker commented 2026-10-25 23:06:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by tibzejoker on 2026-10-25T23:06:07Z.


What

@queeeef's #4072, rebased onto current main (it was closed only for the rebase and for the SPIR-V pins, which #11184 restored). Step 2 of #11183.

v_pk_fma_f16 and v_pk_fmac_f16 become one f16vec2 OpFmaKHR when the device has native f16 math (Float16, RTE, preserved denormals) and VK_KHR_shader_fma with shaderFmaFloat16. Without it, the f32 round-to-odd path stays (#2000).

  • Why the bits don't change: Vulkan lists OpFmaKHR as correctly rounded and among the instructions that respect DenormPreserve; the module declares RoundingModeRTE 16. So every non-NaN result is a * b + c rounded once to f16, ties to even, denormals kept, which is what the f32 round-to-odd sum computes. NaN, FP16_OVFL and clamp rules run on the result bits as for #3531's add/mul. A FLOAT_MODE that flushes f16 denormals keeps the f32 path, and one that does not round f16 to nearest even still throws, as for add/mul.
  • Changes from #4072:
    • rebased over the packed f16 operand cache (#5811), ShaderValidation's new parameters and VulkanDevice's float controls;
    • FMAKHR and SPV_KHR_fma are only accepted when the device enabled shaderFmaFloat16, as the review asked;
    • agc_shader_replay --shader-fma adds that capability to a saved request, like --robust2, so the numbers below can be reproduced from APS5_DUMP_SHADERS captures.

Tested

Windows 11 Pro, MinGW-w64 GCC 15.2.0 (WinLibs r7), Ninja, Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=ON (spirv-val checks every module, the configuration in which #4072 failed on RADV), on main 1e658521a0.

  • RTX 4090 (NVIDIA 616.92, shaderFmaFloat16 = true): the 45 f16/fma tests (-R "fma|float16|f16|packed_alu|dx10_clamp|dpp8_pk_fmac|dpp16_operands") pass under VK_LAYER_KHRONOS_validation with ANYPS5_NO_SHADER_CACHE=1. agc_driver_packed_float16_native compiles each FLOAT_MODE with OpFmaKHR, without FMAKHR and without Float16, and requires the same bits from all three: packed f16 native tests passed (589824 halves, fused f16 fma).

  • Intel UHD 770 (ANYPS5_GPU=Intel, no VK_KHR_shader_fma): the 6 tests that failed in the RADV review pass; the native test reports no FMAKHR (fallback path).

  • Focused tests, main 1e658521a0 vs this PR bd204f0f60 (its rebase onto that main; git range-diff shows both commits unchanged): ctest -R "fma|float16|f16|packed_alu|dx10_clamp|dpp8_pk_fmac|dpp16_operands" (47 tests), VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (43 layer insertions per run, VK_LOADER_DEBUG=layer), ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1, spirv-val on. Both trees use SPIRV-Tools v2025.5 (pins restored by #13053).

    GPU main this PR VUID- lines (main / PR) packed f16 path
    RTX 4090 (NVIDIA 616.92) 47/47 47/47 0 / 0 main: f32 round-to-odd; PR: OpFmaKHR (589824 halves compared)
    UHD 770 (Intel) 44/47, 3 skipped 44/47, 3 skipped 0 / 0 both: f32 round-to-odd, no VK_KHR_shader_fma

    The two Intel skips are the same on both sides (agc_driver_f64_fma_subnormals and agc_driver_float16_dot: that device has no Float64 or dot2).

  • Full suite (earlier head, ctest --timeout 120 --parallel 12 -E '^agc_driver_bda_device$'): 2389 of 2391 passed. The two failures, agc_host_import_cut_lifetime and agc_driver_depth_plane_partial_store, also fail on main.

  • Size, Grand Theft Auto V compute shaders (79 requests saved in the open world, agc_shader_replay --spv [--shader-fma]): 1,768,794 -> 1,633,289 SPIR-V words (-7.7 %). Only the two shaders with packed f16 fma change: 0x25b390800 -24.7 % and 0x25b393000 (RCAS) -12.6 %.

  • In game (performance form), RTX 4090, NVIDIA 616.92, on main 91a69952c1.

    • What blocks this on plain main: GTA V stops before the menu (#11513), and then, ~60 s into Story, on #11425. Both arms therefore carry #11580 (the open fix for #11425) and a local revert of #9789, and nothing else. The measured commits are 681ef43926 (main arm) and 02172d7ed3 (main arm + this PR), on the fork branches test/fma5-base and test/fma5-pr.

    • Traces, summaries, digests (trace_digest.py from current main) and replay CSVs: fork release perf-11265-20261030.

    • Pipeline creation, salted replays. Each build had one cold run with captures on (APS5_DUMP_COMPUTE_PIPELINES, APS5_DUMP_COMPUTE_MIN_WORDS=50000, empty ANYPS5_SHADER_CACHE_DIR). The captures were then compiled 5 times each with agc_compute_pipeline_replay. Every compile carries a distinct OpSourceExtension salt (per build, capture and run), so the driver's own cache misses:

      pipeline main words PR words main median ms PR median ms
      0x25b390800 559,031 412,155 6616 4748 (-28 %)
      0x25b393000 (RCAS) 98,074 84,563 538 486
      no packed f16 fma (control) 93,468 93,467 430 428
    • Cold open-world load, the same save in every run, APS5_TRACE_SECONDS=40:80, APS5_MIMALLOC=1, an empty ANYPS5_SHADER_CACHE_DIR per run. The order was main, then the PR, then main again, so both arms see the same NVIDIA driver cache:

      run frames (p50 / p90 / p99 ms) longest Vulkan.ComputePipeline (0x25b390800, queue worker 0x0) all compute pipelines
      main 16.8 / 33.6 / 253.6 6812.9 ms 33, 8867 ms
      this PR 16.8 / 34.5 / 236.3 4800.6 ms (-29 %) 34, 6761 ms
      main again 16.9 / 34.4 / 165.1 6654.4 ms 34, 8686 ms

      The 14-16 s max frame in every run is the load's Driver.Packet.memory_wait, not a compile. All three traces dropped queue worker 0x0 events late in the window (after 78.3 / 75.6 / 78.6 s), after the compile slices (+53.5 to +54.3 s).

{"commit":"681ef4392670","dirty":false,"env":{"APS5_MIMALLOC":"1","APS5_TRACE_DIR":"","APS5_TRACE_SECONDS":"40:80"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 616.92","os":"Windows 10.0.26200","cpu":"13th Gen Intel(R) Core(TM) i9-13900K","cpu_threads":32,"memory_mib":65295,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.005.000","resolution":"3840x2160","window":{"spec":"seconds 40:80","first_present":454,"ms":80011.685},"presents":1919,"frame_ms":{"p50":16.811,"p90":33.618,"p99":253.639,"max":16365.273},"gpu_busy_ms_per_present":2.823,"worker_busy_pct":{"queue worker 0x0":73.392,"queue worker 0x28":2.641,"queue worker 0x20":25.167,"queue worker 0x30":12.741,"queue worker 0x38":2.257},"top_phases_ms_per_frame":{"Driver.Packet":47.958,"Driver.Packet.memory_wait":17.945,"VideoOut.Flip":17.614,"VideoOut.Flip.vblank_wait":15.645,"Graphics.Draw":13.186,"Graphics.Draw.draw_and_resource_release":12.355,"Driver.Packet.draw":11.246,"Driver.Draw":11.218},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":78.273,"events_lost":36292,"totals_full":false}},"trace":"aps5-trace-681ef4392670-21344.json.gz"}
{"commit":"02172d7ed375","dirty":false,"env":{"APS5_MIMALLOC":"1","APS5_TRACE_DIR":"","APS5_TRACE_SECONDS":"40:80"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 616.92","os":"Windows 10.0.26200","cpu":"13th Gen Intel(R) Core(TM) i9-13900K","cpu_threads":32,"memory_mib":65295,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.005.000","resolution":"3840x2160","window":{"spec":"seconds 40:80","first_present":454,"ms":80031.893},"presents":1981,"frame_ms":{"p50":16.834,"p90":34.470,"p99":236.325,"max":14174.024},"gpu_busy_ms_per_present":3.415,"worker_busy_pct":{"queue worker 0x0":73.370,"queue worker 0x20":13.755,"queue worker 0x28":22.742,"queue worker 0x30":5.947,"queue worker 0x38":1.032},"top_phases_ms_per_frame":{"Driver.Packet":46.622,"Driver.Packet.memory_wait":17.574,"VideoOut.Flip":17.149,"VideoOut.Flip.vblank_wait":15.449,"Graphics.Draw":13.481,"Graphics.Draw.draw_and_resource_release":12.445,"Driver.Packet.draw":12.111,"Driver.Draw":12.074},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":75.588,"events_lost":96457,"totals_full":false}},"trace":"aps5-trace-02172d7ed375-34488.json.gz"}


Not tested: Linux / RADV (AMD hardware welcome: the review's failures came from spirv-val, which this configuration runs).

### 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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file
- [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: #11184 and #13053 (both merged)
- [x] Fixes: none
- [x] Unblocks: none
- [x] GPUs tested: NVIDIA GeForce RTX 4090 (616.92, Windows 11), Intel UHD Graphics 770 (101.6129, Windows 11)
- [x] AI-assisted: yes (Claude Code)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01V1W4jdNSKTV7xwuS6xQPJV


<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5009608596 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11265). Originally posted by [tibzejoker](https://github.com/tibzejoker) on 2026-10-25T23:06:07Z. --- ### What @queeeef's #4072, rebased onto current `main` (it was closed only for the rebase and for the SPIR-V pins, which #11184 restored). Step 2 of #11183. `v_pk_fma_f16` and `v_pk_fmac_f16` become one f16vec2 `OpFmaKHR` when the device has native f16 math (Float16, RTE, preserved denormals) and `VK_KHR_shader_fma` with `shaderFmaFloat16`. Without it, the f32 round-to-odd path stays (#2000). - **Why the bits don't change:** Vulkan lists `OpFmaKHR` as correctly rounded and among the instructions that respect `DenormPreserve`; the module declares `RoundingModeRTE` 16. So every non-NaN result is `a * b + c` rounded once to f16, ties to even, denormals kept, which is what the f32 round-to-odd sum computes. NaN, `FP16_OVFL` and clamp rules run on the result bits as for #3531's add/mul. A FLOAT_MODE that flushes f16 denormals keeps the f32 path, and one that does not round f16 to nearest even still throws, as for add/mul. - **Changes from #4072:** - rebased over the packed f16 operand cache (#5811), `ShaderValidation`'s new parameters and `VulkanDevice`'s float controls; - `FMAKHR` and `SPV_KHR_fma` are only accepted when the device enabled `shaderFmaFloat16`, as the review asked; - `agc_shader_replay --shader-fma` adds that capability to a saved request, like `--robust2`, so the numbers below can be reproduced from `APS5_DUMP_SHADERS` captures. ### Tested Windows 11 Pro, MinGW-w64 GCC 15.2.0 (WinLibs r7), Ninja, Release, `BUILD_TESTING=ON`, `ANYPS5_ENABLE_SPIRV_TOOLS=ON` (spirv-val checks every module, the configuration in which #4072 failed on RADV), on `main` `1e658521a0`. - **RTX 4090** (NVIDIA 616.92, `shaderFmaFloat16` = true): the 45 f16/fma tests (`-R "fma|float16|f16|packed_alu|dx10_clamp|dpp8_pk_fmac|dpp16_operands"`) pass under `VK_LAYER_KHRONOS_validation` with `ANYPS5_NO_SHADER_CACHE=1`. `agc_driver_packed_float16_native` compiles each FLOAT_MODE with `OpFmaKHR`, without `FMAKHR` and without Float16, and requires the same bits from all three: `packed f16 native tests passed (589824 halves, fused f16 fma)`. - **Intel UHD 770** (`ANYPS5_GPU=Intel`, no `VK_KHR_shader_fma`): the 6 tests that failed in the RADV review pass; the native test reports `no FMAKHR` (fallback path). - **Focused tests, `main` `1e658521a0` vs this PR `bd204f0f60` (its rebase onto that `main`; `git range-diff` shows both commits unchanged)**: `ctest -R "fma|float16|f16|packed_alu|dx10_clamp|dpp8_pk_fmac|dpp16_operands"` (47 tests), `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` (43 layer insertions per run, `VK_LOADER_DEBUG=layer`), `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1`, spirv-val on. Both trees use SPIRV-Tools v2025.5 (pins restored by #13053). | GPU | `main` | this PR | `VUID-` lines (main / PR) | packed f16 path | |---|---|---|---|---| | RTX 4090 (NVIDIA 616.92) | 47/47 | 47/47 | 0 / 0 | main: f32 round-to-odd; PR: `OpFmaKHR` (589824 halves compared) | | UHD 770 (Intel) | 44/47, 3 skipped | 44/47, 3 skipped | 0 / 0 | both: f32 round-to-odd, no `VK_KHR_shader_fma` | The two Intel skips are the same on both sides (`agc_driver_f64_fma_subnormals` and `agc_driver_float16_dot`: that device has no Float64 or dot2). - **Full suite** (earlier head, `ctest --timeout 120 --parallel 12 -E '^agc_driver_bda_device$'`): 2389 of 2391 passed. The two failures, `agc_host_import_cut_lifetime` and `agc_driver_depth_plane_partial_store`, also fail on `main`. - **Size, Grand Theft Auto V compute shaders** (79 requests saved in the open world, `agc_shader_replay --spv [--shader-fma]`): 1,768,794 -> 1,633,289 SPIR-V words (-7.7 %). Only the two shaders with packed f16 fma change: `0x25b390800` -24.7 % and `0x25b393000` (RCAS) -12.6 %. - **In game (performance form), RTX 4090, NVIDIA 616.92, on `main` `91a69952c1`.** - **What blocks this on plain `main`:** GTA V stops before the menu (#11513), and then, ~60 s into Story, on #11425. Both arms therefore carry #11580 (the open fix for #11425) and a local revert of #9789, and nothing else. The measured commits are `681ef43926` (main arm) and `02172d7ed3` (main arm + this PR), on the fork branches `test/fma5-base` and `test/fma5-pr`. - Traces, summaries, digests (`trace_digest.py` from current `main`) and replay CSVs: [fork release perf-11265-20261030](https://github.com/tibzejoker/AnyPS5/releases/tag/perf-11265-20261030). - **Pipeline creation, salted replays.** Each build had one cold run with captures on (`APS5_DUMP_COMPUTE_PIPELINES`, `APS5_DUMP_COMPUTE_MIN_WORDS=50000`, empty `ANYPS5_SHADER_CACHE_DIR`). The captures were then compiled 5 times each with `agc_compute_pipeline_replay`. Every compile carries a distinct `OpSourceExtension` salt (per build, capture and run), so the driver's own cache misses: | pipeline | `main` words | PR words | `main` median ms | PR median ms | |---|---|---|---|---| | `0x25b390800` | 559,031 | 412,155 | 6616 | 4748 (-28 %) | | `0x25b393000` (RCAS) | 98,074 | 84,563 | 538 | 486 | | no packed f16 fma (control) | 93,468 | 93,467 | 430 | 428 | - **Cold open-world load**, the same save in every run, `APS5_TRACE_SECONDS=40:80`, `APS5_MIMALLOC=1`, an empty `ANYPS5_SHADER_CACHE_DIR` per run. The order was `main`, then the PR, then `main` again, so both arms see the same NVIDIA driver cache: | run | frames (p50 / p90 / p99 ms) | longest `Vulkan.ComputePipeline` (`0x25b390800`, queue worker 0x0) | all compute pipelines | |---|---|---|---| | `main` | 16.8 / 33.6 / 253.6 | 6812.9 ms | 33, 8867 ms | | this PR | 16.8 / 34.5 / 236.3 | **4800.6 ms (-29 %)** | 34, 6761 ms | | `main` again | 16.9 / 34.4 / 165.1 | 6654.4 ms | 34, 8686 ms | The 14-16 s max frame in every run is the load's `Driver.Packet.memory_wait`, not a compile. All three traces dropped queue worker 0x0 events late in the window (after 78.3 / 75.6 / 78.6 s), after the compile slices (+53.5 to +54.3 s). ``` {"commit":"681ef4392670","dirty":false,"env":{"APS5_MIMALLOC":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"40:80"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 616.92","os":"Windows 10.0.26200","cpu":"13th Gen Intel(R) Core(TM) i9-13900K","cpu_threads":32,"memory_mib":65295,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.005.000","resolution":"3840x2160","window":{"spec":"seconds 40:80","first_present":454,"ms":80011.685},"presents":1919,"frame_ms":{"p50":16.811,"p90":33.618,"p99":253.639,"max":16365.273},"gpu_busy_ms_per_present":2.823,"worker_busy_pct":{"queue worker 0x0":73.392,"queue worker 0x28":2.641,"queue worker 0x20":25.167,"queue worker 0x30":12.741,"queue worker 0x38":2.257},"top_phases_ms_per_frame":{"Driver.Packet":47.958,"Driver.Packet.memory_wait":17.945,"VideoOut.Flip":17.614,"VideoOut.Flip.vblank_wait":15.645,"Graphics.Draw":13.186,"Graphics.Draw.draw_and_resource_release":12.355,"Driver.Packet.draw":11.246,"Driver.Draw":11.218},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":78.273,"events_lost":36292,"totals_full":false}},"trace":"aps5-trace-681ef4392670-21344.json.gz"} {"commit":"02172d7ed375","dirty":false,"env":{"APS5_MIMALLOC":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"40:80"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 616.92","os":"Windows 10.0.26200","cpu":"13th Gen Intel(R) Core(TM) i9-13900K","cpu_threads":32,"memory_mib":65295,"title_id":"PPSA04264","title":"Grand Theft Auto V","content_version":"01.005.000","resolution":"3840x2160","window":{"spec":"seconds 40:80","first_present":454,"ms":80031.893},"presents":1981,"frame_ms":{"p50":16.834,"p90":34.470,"p99":236.325,"max":14174.024},"gpu_busy_ms_per_present":3.415,"worker_busy_pct":{"queue worker 0x0":73.370,"queue worker 0x20":13.755,"queue worker 0x28":22.742,"queue worker 0x30":5.947,"queue worker 0x38":1.032},"top_phases_ms_per_frame":{"Driver.Packet":46.622,"Driver.Packet.memory_wait":17.574,"VideoOut.Flip":17.149,"VideoOut.Flip.vblank_wait":15.449,"Graphics.Draw":13.481,"Graphics.Draw.draw_and_resource_release":12.445,"Driver.Packet.draw":12.111,"Driver.Draw":12.074},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":75.588,"events_lost":96457,"totals_full":false}},"trace":"aps5-trace-02172d7ed375-34488.json.gz"} ``` Not tested: Linux / RADV (AMD hardware welcome: the review's failures came from spirv-val, which this configuration runs). ### 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 under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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: #11184 and #13053 (both merged) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 4090 (616.92, Windows 11), Intel UHD Graphics 770 (101.6129, Windows 11) - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01V1W4jdNSKTV7xwuS6xQPJV
MarcZX10 commented 2026-10-25 23:08:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T23:08:40Z.

Review: CHANGES_REQUESTED


The code review found the FMA path consistently gated by native f16 rounding/denorm support and shaderFmaFloat16; the test and replay flag exercise the enabled and fallback paths. I ran git diff --check and python3 tools/check_conventions.py --base upstream/main on this exact head; both pass. The PR's reported GPU comparisons are useful, but I could not independently run the Vulkan test locally, and hosted product-build jobs were skipped.

The required performance evidence is still missing. The repository rule and the automated request require the main and changed aps5-summary.jsonl lines plus two traces from the same title, scene and machine, and tools/trace_digest.py output. The PR says its game windows covered different scenes and therefore are not comparable, and does not include those artifacts. Please rerun a comparable capture pair and attach both lines, traces and digest output, or get maintainer direction on an applicable exception before treating the perf report as complete. I am requesting changes for this outstanding contribution-rule requirement; this is not a finding that the code path itself is incorrect.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5645813850 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11265#pullrequestreview-5645813850). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T23:08:40Z. **Review:** CHANGES_REQUESTED --- The code review found the FMA path consistently gated by native f16 rounding/denorm support and `shaderFmaFloat16`; the test and replay flag exercise the enabled and fallback paths. I ran `git diff --check` and `python3 tools/check_conventions.py --base upstream/main` on this exact head; both pass. The PR's reported GPU comparisons are useful, but I could not independently run the Vulkan test locally, and hosted product-build jobs were skipped. The required performance evidence is still missing. The repository rule and the automated request require the `main` and changed `aps5-summary.jsonl` lines plus two traces from the same title, scene and machine, and `tools/trace_digest.py` output. The PR says its game windows covered different scenes and therefore are not comparable, and does not include those artifacts. Please rerun a comparable capture pair and attach both lines, traces and digest output, or get maintainer direction on an applicable exception before treating the `perf` report as complete. I am requesting changes for this outstanding contribution-rule requirement; this is not a finding that the code path itself is incorrect.
MarcZX10 commented 2026-10-25 23:36:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T23:36:21Z.

Review: CHANGES_REQUESTED


Re-reviewed the updated performance report. The two summary lines and gzip traces are accessible from the linked fork release; I downloaded both traces and ran tools/trace_digest.py on each, confirming the reported 8,412.7 ms base frame and 2,651.4 ms changed-build maximum. Both captures mark trace_dropped: true, which the report discloses. The remaining policy issue is the baseline commit: abfc85162b6e is the head of open PR #11184, not main. PR #11184 is still OPEN, and the current upstream main is acb900c194325b9ee8c23c10768a9a491454f0b2; comparing that main with abfc85162b6e shows the branches have diverged. Please provide a capture from current main and the changed stack on the same title/scene/machine, or obtain maintainer approval to use the parent PR as the baseline and document that exception. This request is only about satisfying the stated main baseline for the performance claim; I found no new code finding. Hosted policy/conventions pass; product build jobs are skipped by path policy.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5645922386 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11265#pullrequestreview-5645922386). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T23:36:21Z. **Review:** CHANGES_REQUESTED --- Re-reviewed the updated performance report. The two summary lines and gzip traces are accessible from the linked fork release; I downloaded both traces and ran `tools/trace_digest.py` on each, confirming the reported 8,412.7 ms base frame and 2,651.4 ms changed-build maximum. Both captures mark `trace_dropped: true`, which the report discloses. The remaining policy issue is the baseline commit: `abfc85162b6e` is the head of open PR #11184, not `main`. PR #11184 is still OPEN, and the current upstream `main` is `acb900c194325b9ee8c23c10768a9a491454f0b2`; comparing that `main` with `abfc85162b6e` shows the branches have diverged. Please provide a capture from current `main` and the changed stack on the same title/scene/machine, or obtain maintainer approval to use the parent PR as the baseline and document that exception. This request is only about satisfying the stated `main` baseline for the performance claim; I found no new code finding. Hosted policy/conventions pass; product build jobs are skipped by path policy.
MarcZX10 commented 2026-10-26 00:02:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T00:02:52Z.

Review: CHANGES_REQUESTED


The updated capture pair resolves my earlier baseline concern: the body now supplies current main (acb900c19432) and PR head (61bc20017f97) summaries for the same GTA V scene/window, machine, GPU, and settings, and both published trace filenames match their summary lines. I downloaded both release traces and independently ran the current tools/trace_digest.py from upstream/main with each summary file alongside its trace.

The attached digest files do not reproduce from those published trace artifacts. For example, the main digest says the draw committer has 8.5 ms busy / 0.0 ms waiting, while the rerun reports 8.4 / 0.2; the PR digest says 7.0 / 0.0, while the rerun says 6.8 / 0.2. The reruns also include a Largest GPU batches section that is absent from both attached outputs. Please regenerate and replace the two digest files using the current script on these exact trace assets. The summary headers, reported frame maxima and slowest-frame rows match; this request is about making the attached full digest output reproducible from the published pair.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5646079582 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11265#pullrequestreview-5646079582). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T00:02:52Z. **Review:** CHANGES_REQUESTED --- The updated capture pair resolves my earlier baseline concern: the body now supplies current `main` (`acb900c19432`) and PR head (`61bc20017f97`) summaries for the same GTA V scene/window, machine, GPU, and settings, and both published trace filenames match their summary lines. I downloaded both release traces and independently ran the current `tools/trace_digest.py` from `upstream/main` with each summary file alongside its trace. The attached digest files do not reproduce from those published trace artifacts. For example, the main digest says the draw committer has 8.5 ms busy / 0.0 ms waiting, while the rerun reports 8.4 / 0.2; the PR digest says 7.0 / 0.0, while the rerun says 6.8 / 0.2. The reruns also include a `Largest GPU batches` section that is absent from both attached outputs. Please regenerate and replace the two digest files using the current script on these exact trace assets. The summary headers, reported frame maxima and slowest-frame rows match; this request is about making the attached full digest output reproducible from the published pair.
MarcZX10 commented 2026-10-26 00:12:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T00:12:44Z.

Review: CHANGES_REQUESTED


The replacement trace digests now reproduce exactly from the released traces using tools/trace_digest.py from current main; that resolves my previous evidence finding.

One required shader validation result is still missing from the report. CONTRIBUTING.md requires the same focused shader tests on main and this change, with validation enabled, for every reported GPU. The description reports the focused f16/fma runs on this PR head, but its full-suite baseline is from main 50bc72bbb, before the current rebase; I do not see the focused test results from current main acb900c194 on either the RTX 4090 or UHD 770. The hosted product jobs are skipped for this PR, so CI does not supply that comparison. Please add the focused baseline outcomes for both GPUs, including confirmation that VK_LAYER_KHRONOS_validation was inserted and the comparison found no new VUID errors.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5646113548 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11265#pullrequestreview-5646113548). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T00:12:44Z. **Review:** CHANGES_REQUESTED --- The replacement trace digests now reproduce exactly from the released traces using tools/trace_digest.py from current main; that resolves my previous evidence finding. One required shader validation result is still missing from the report. CONTRIBUTING.md requires the same focused shader tests on main and this change, with validation enabled, for every reported GPU. The description reports the focused f16/fma runs on this PR head, but its full-suite baseline is from main 50bc72bbb, before the current rebase; I do not see the focused test results from current main acb900c19432 on either the RTX 4090 or UHD 770. The hosted product jobs are skipped for this PR, so CI does not supply that comparison. Please add the focused baseline outcomes for both GPUs, including confirmation that VK_LAYER_KHRONOS_validation was inserted and the comparison found no new VUID errors.
MarcZX10 commented 2026-10-26 05:39:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T05:39:46Z.

Review: DISMISSED


The earlier exact-head review findings about the trace digests and focused current-main validation were addressed in the report, and I am withdrawing my request to list the five textual-conflict PRs as dependencies; #11184 is the functional dependency because this change requires its SPIR-V pins. Current upstream main has moved since those runs: this branch is 3 ahead / 196 behind 14c99b52ac, and #11184 remains open. Please refresh onto current main after #11184 lands, rerun the focused validation comparison and update the performance evidence for that exact head before this is ready to approve.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5647825825 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11265#pullrequestreview-5647825825). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T05:39:46Z. **Review:** DISMISSED --- The earlier exact-head review findings about the trace digests and focused current-main validation were addressed in the report, and I am withdrawing my request to list the five textual-conflict PRs as dependencies; #11184 is the functional dependency because this change requires its SPIR-V pins. Current upstream main has moved since those runs: this branch is 3 ahead / 196 behind `14c99b52ac`, and #11184 remains open. Please refresh onto current main after #11184 lands, rerun the focused validation comparison and update the performance evidence for that exact head before this is ready to approve.
imellag commented 2026-10-28 18:45:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by imellag on 2026-10-28T18:45:11Z.

Review: COMMENTED


macOS / MoltenVK data point. Apple M4 Pro, macOS 27.2, MoltenVK 1.4.2, x86_64 Release under Rosetta. main doesn't run titles on macOS yet, so the base is a support branch, not main: main 750cf6cf48 + only the macOS boot PRs #7631 #10552 #11249 #11447 #11554 #10669 #7804, + #12529 (the revert of #10337, which roughly doubles the GPU time on this GPU and would hide smaller changes). Change: that base + eight open shader performance PRs merged together (#12287 #11952 #12299 #12280 #11368 #11265 #8716 #8958, all clean merges). I did not measure each PR alone.

Two alternated runs per side, warm shader cache, APS5_TRACE_SUMMARY_EVERY=10:

base with the eight PRs
God of War Sons of Sparta (PPSA28997), fps from 30 s 51.5 / 51.8 51.6 / 51.8
GoW GPU ms/present, gameplay before the fight / in the fight 13.6 / 19.6 13.5 / 19.5
Planet of Lana (PPSA19450), fps from 85 s 32.2 / 32.7 32.5 / 32.6

Together they don't raise the GPU time on MoltenVK. I'm checking open shader performance PRs on this GPU because #10337 was measured on RADV and doubled it here.

Focused tests below ran with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation on the same two trees; the layer was found and both logs have the same VUID- lines (12 VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605, 20 VUID-vkCreateDescriptorSetLayout-support-09582, from tests that fail the same way on the base).

This PR on MoltenVK: the change is inert here. The fused path needs native f16 math and VK_KHR_shader_fma with shaderFmaFloat16, and MoltenVK has neither, so v_pk_fma_f16 keeps the f32 round-to-odd path; agc_driver_packed_float16_native is skipped (the device has no native f16 with RTE rounding and kept denormals). The f32 path and its neighbours pass on the base and with the change: agc_driver_fma_rounding, agc_driver_fma_legacy, agc_driver_float16_fma_rounding, agc_driver_f16_fma_denormal_modes, agc_driver_f16_fma_invalid_nan, agc_driver_fma_mix_f16_denormal_modes, agc_driver_f32_fma_denormal_mode2, agc_driver_dpp8_pk_fmac, agc_driver_dpp16_operands, agc_driver_packed_alu. It built with main's SPIR-V pins. No GPU regression in the group. Nothing on macOS for or against the change itself.

AI-assisted: yes (Claude Code ran the builds, runs and tests and drafted this review)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5687926999 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11265#pullrequestreview-5687926999). Originally posted by [imellag](https://github.com/imellag) on 2026-10-28T18:45:11Z. **Review:** COMMENTED --- **macOS / MoltenVK data point.** Apple M4 Pro, macOS 27.2, MoltenVK 1.4.2, x86_64 Release under Rosetta. `main` doesn't run titles on macOS yet, so the base is a support branch, not `main`: `main` `750cf6cf48` + only the macOS boot PRs #7631 #10552 #11249 #11447 #11554 #10669 #7804, + #12529 (the revert of #10337, which roughly doubles the GPU time on this GPU and would hide smaller changes). Change: that base + eight open shader performance PRs merged together (#12287 #11952 #12299 #12280 #11368 #11265 #8716 #8958, all clean merges). I did not measure each PR alone. Two alternated runs per side, warm shader cache, `APS5_TRACE_SUMMARY_EVERY=10`: | | base | with the eight PRs | |---|---|---| | God of War Sons of Sparta (PPSA28997), fps from 30 s | 51.5 / 51.8 | 51.6 / 51.8 | | GoW GPU ms/present, gameplay before the fight / in the fight | 13.6 / 19.6 | 13.5 / 19.5 | | Planet of Lana (PPSA19450), fps from 85 s | 32.2 / 32.7 | 32.5 / 32.6 | Together they don't raise the GPU time on MoltenVK. I'm checking open shader performance PRs on this GPU because #10337 was measured on RADV and doubled it here. Focused tests below ran with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` on the same two trees; the layer was found and both logs have the same `VUID-` lines (12 `VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605`, 20 `VUID-vkCreateDescriptorSetLayout-support-09582`, from tests that fail the same way on the base). **This PR on MoltenVK:** the change is inert here. The fused path needs native f16 math and `VK_KHR_shader_fma` with `shaderFmaFloat16`, and MoltenVK has neither, so `v_pk_fma_f16` keeps the f32 round-to-odd path; `agc_driver_packed_float16_native` is skipped (`the device has no native f16 with RTE rounding and kept denormals`). The f32 path and its neighbours pass on the base and with the change: `agc_driver_fma_rounding`, `agc_driver_fma_legacy`, `agc_driver_float16_fma_rounding`, `agc_driver_f16_fma_denormal_modes`, `agc_driver_f16_fma_invalid_nan`, `agc_driver_fma_mix_f16_denormal_modes`, `agc_driver_f32_fma_denormal_mode2`, `agc_driver_dpp8_pk_fmac`, `agc_driver_dpp16_operands`, `agc_driver_packed_alu`. It built with `main`'s SPIR-V pins. No GPU regression in the group. Nothing on macOS for or against the change itself. AI-assisted: yes (Claude Code ran the builds, runs and tests and drafted this review)
MarcZX10 commented 2026-10-29 06:04:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T06:04:20Z.

Review: CHANGES_REQUESTED


Re-checked — changes requested

What I checked

  • Reviewed exact head a9027a0f325ffaf2456283ee3953b471ceb26829 against fetched main 2960e9a6e7.
  • The earlier concerns about trace-digest reproducibility and the prerequisite #11184 are addressed: the old digest pair was replaced, and #11184 has merged.
  • The current-main merge preview now conflicts in ShaderReplay.cpp. Hosted relinker, conventions, labels, eligibility, and report checks pass; product Windows/Linux and specialized GPU jobs were skipped.

Blocking current-head evidence

The PR body still contains performance summaries and trace files for head 61bc20017f97, while the current head is a9027a0f325f; the new head's AMD title data in the discussion is not a same-scene main/current-head report pair. The branch is 576 commits behind fetched main, and its merge preview conflicts. Please refresh onto current main, resolve the replay conflict, rerun the focused f16/FMA validation comparison with the required layer on the current baseline and change, and update the paired performance artifacts and digests for the refreshed head.

The new AMD run is useful supporting evidence. I cannot renew the previous review while the exact-head report and integration remain stale; I did not run GPU tests locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693523537 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11265#pullrequestreview-5693523537). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T06:04:20Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes requested ## What I checked - Reviewed exact head `a9027a0f325ffaf2456283ee3953b471ceb26829` against fetched `main` `2960e9a6e7`. - The earlier concerns about trace-digest reproducibility and the prerequisite #11184 are addressed: the old digest pair was replaced, and #11184 has merged. - The current-main merge preview now conflicts in `ShaderReplay.cpp`. Hosted relinker, conventions, labels, eligibility, and report checks pass; product Windows/Linux and specialized GPU jobs were skipped. ## Blocking current-head evidence The PR body still contains performance summaries and trace files for head `61bc20017f97`, while the current head is `a9027a0f325f`; the new head's AMD title data in the discussion is not a same-scene `main`/current-head report pair. The branch is 576 commits behind fetched `main`, and its merge preview conflicts. Please refresh onto current `main`, resolve the replay conflict, rerun the focused f16/FMA validation comparison with the required layer on the current baseline and change, and update the paired performance artifacts and digests for the refreshed head. The new AMD run is useful supporting evidence. I cannot renew the previous review while the exact-head report and integration remain stale; I did not run GPU tests locally.
MarcZX10 commented 2026-10-29 08:34:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T08:34:12Z.

Review: CHANGES_REQUESTED


Re-reviewed exact head 69a8ebdd3549e6c58c14988d57bca8d35152b6a4 against current upstream/main 4c7d275bef89d309313d16bc2bc05d37a1b50be2. The refreshed report addresses the earlier stale trace/digest concern for its tested pair, and #11184 is merged. The branch still has an older main ancestor (edf6804cf5); current main has since changed core/shader/recompiler/Recompiler.cpp, which this PR also changes. The merge preview is clean, but this shared source change means the current-main integration needs the focused f16/FMA validation rerun. The latest focused and performance reports name main 3a40945e62 and PR a9027a0f32, not the current 4c7 baseline and integrated head. Please rerun the focused comparison and refresh the matched performance artifacts/digests on the current integration. git diff --check and conventions pass. I did not run Vulkan/GPU tests locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5694852002 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11265#pullrequestreview-5694852002). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T08:34:12Z. **Review:** CHANGES_REQUESTED --- Re-reviewed exact head `69a8ebdd3549e6c58c14988d57bca8d35152b6a4` against current `upstream/main` `4c7d275bef89d309313d16bc2bc05d37a1b50be2`. The refreshed report addresses the earlier stale trace/digest concern for its tested pair, and #11184 is merged. The branch still has an older main ancestor (`edf6804cf5`); current main has since changed `core/shader/recompiler/Recompiler.cpp`, which this PR also changes. The merge preview is clean, but this shared source change means the current-main integration needs the focused f16/FMA validation rerun. The latest focused and performance reports name main `3a40945e62` and PR `a9027a0f32`, not the current 4c7 baseline and integrated head. Please rerun the focused comparison and refresh the matched performance artifacts/digests on the current integration. `git diff --check` and conventions pass. I did not run Vulkan/GPU tests locally.
MarcZX10 commented 2026-10-30 03:38:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T03:38:05Z.

Review: APPROVED


Re-checked — new head, looks good

The updated exact-head GPU comparison and reproducible performance artifacts resolve my prior review blockers; I found no blocking issue in the current diff.

What I ran

Reviewed head 8d84578a43058c8ca30606335ad7a9a702af2658 against PR base 08a10d225306ad102b57408e2ef7566bcfb829b2. The merge preview against that base was clean (tree 57e164f31b2aced81bc98f57a34a475ccffc9ba0). git diff --check and repository conventions passed. I downloaded the three released traces and summaries and reran tools/trace_digest.py from current main; all three generated digests exactly match the attached digests.txt sections. I did not run a build or GPU tests locally.

git merge-tree --write-tree upstream/main refs/remotes/upstream/pr11265
git diff --check upstream/main...refs/remotes/upstream/pr11265
python3 tools/check_conventions.py --base upstream/main --head refs/remotes/upstream/pr11265 --title 'perf(shader): compute v_pk_fma_f16 and v_pk_fmac_f16 with OpFmaKHR' --body <(gh pr view 11265 -R boykopovar/AnyPS5 --json body --jq .body)
python3 tools/trace_digest.py <base-trace> --summary <base-summary>
python3 tools/trace_digest.py <base-rerun-trace> --summary <base-rerun-summary>
python3 tools/trace_digest.py <pr-trace> --summary <pr-summary>

Results

Check Result
Current-base merge preview Clean; tree 57e164f31b2aced81bc98f57a34a475ccffc9ba0
Diff check Passed; no whitespace errors
Repository conventions Passed
Published trace digest reproduction All 3 digests match the released digests.txt
Hosted checks Windows, Ubuntu/macOS relinker and ASAN, conventions, eligibility, labels, and report passed; Linux and specialized jobs skipped; two macOS relinker jobs were pending at review time
Focused GPU tests and performance measurements Author-reported; not run locally
Unedited local check output
57e164f31b2aced81bc98f57a34a475ccffc9ba0
All conventions checks passed.
base MATCH
pr MATCH
base2 MATCH

Findings

Blocking

None found in the reviewed diff. The earlier missing current-baseline focused comparison and trace-digest reproducibility issues are resolved in the updated report.

Non-blocking

  • The capture baseline is main at 91a69952c1; current main has advanced to 08a10d2253. The merge preview is clean, and none of the intervening main commits changes a file touched by this PR.
  • The author reports 45/45 focused tests with validation on RTX 4090 for both arms, and 43/45 with the same two hardware skips on UHD 770; those GPU runs were not independently performed by me. The trace reports disclose event drops after the relevant compile slices.

Sources

Not verified

I did not build the project or run Vulkan/GPU tests locally. The hosted Linux job was skipped and the two macOS relinker checks were still pending; no RADV/AMD run is reported.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5707797579 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11265#pullrequestreview-5707797579). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T03:38:05Z. **Review:** APPROVED --- # Re-checked — new head, looks good The updated exact-head GPU comparison and reproducible performance artifacts resolve my prior review blockers; I found no blocking issue in the current diff. ## What I ran Reviewed head `8d84578a43058c8ca30606335ad7a9a702af2658` against PR base `08a10d225306ad102b57408e2ef7566bcfb829b2`. The merge preview against that base was clean (tree `57e164f31b2aced81bc98f57a34a475ccffc9ba0`). `git diff --check` and repository conventions passed. I downloaded the three released traces and summaries and reran `tools/trace_digest.py` from current `main`; all three generated digests exactly match the attached `digests.txt` sections. I did not run a build or GPU tests locally. ```sh git merge-tree --write-tree upstream/main refs/remotes/upstream/pr11265 git diff --check upstream/main...refs/remotes/upstream/pr11265 python3 tools/check_conventions.py --base upstream/main --head refs/remotes/upstream/pr11265 --title 'perf(shader): compute v_pk_fma_f16 and v_pk_fmac_f16 with OpFmaKHR' --body <(gh pr view 11265 -R boykopovar/AnyPS5 --json body --jq .body) python3 tools/trace_digest.py <base-trace> --summary <base-summary> python3 tools/trace_digest.py <base-rerun-trace> --summary <base-rerun-summary> python3 tools/trace_digest.py <pr-trace> --summary <pr-summary> ``` ## Results | Check | Result | |---|---| | Current-base merge preview | Clean; tree `57e164f31b2aced81bc98f57a34a475ccffc9ba0` | | Diff check | Passed; no whitespace errors | | Repository conventions | Passed | | Published trace digest reproduction | All 3 digests match the released `digests.txt` | | Hosted checks | Windows, Ubuntu/macOS relinker and ASAN, conventions, eligibility, labels, and report passed; Linux and specialized jobs skipped; two macOS relinker jobs were pending at review time | | Focused GPU tests and performance measurements | Author-reported; not run locally | <details> <summary>Unedited local check output</summary> ```text 57e164f31b2aced81bc98f57a34a475ccffc9ba0 All conventions checks passed. base MATCH pr MATCH base2 MATCH ``` </details> ## Findings ### Blocking None found in the reviewed diff. The earlier missing current-baseline focused comparison and trace-digest reproducibility issues are resolved in the updated report. ### Non-blocking - The capture baseline is `main` at `91a69952c1`; current `main` has advanced to `08a10d2253`. The merge preview is clean, and none of the intervening `main` commits changes a file touched by this PR. - The author reports 45/45 focused tests with validation on RTX 4090 for both arms, and 43/45 with the same two hardware skips on UHD 770; those GPU runs were not independently performed by me. The trace reports disclose event drops after the relevant compile slices. ## Sources - [Reviewed shader FMA implementation at this head](https://github.com/boykopovar/AnyPS5/blob/8d84578a43058c8ca30606335ad7a9a702af2658/core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp) - [Published matched capture summaries, traces, CSVs and digests](https://github.com/tibzejoker/AnyPS5/releases/tag/perf-11265-20261030) ## Not verified I did not build the project or run Vulkan/GPU tests locally. The hosted Linux job was skipped and the two macOS relinker checks were still pending; no RADV/AMD run is reported.
MarcZX10 commented 2026-10-30 11:23:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T11:23:54Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The exact-head NVIDIA validation report shows nine new Vulkan validation IDs on this PR, including unsupported FMAKHR capability and SPV_KHR_fma extension declarations.

What I ran

Reviewed head 8d84578a43058c8ca30606335ad7a9a702af2658 against PR base 08a10d225306ad102b57408e2ef7566bcfb829b2; the merge preview against current main was clean. Local environment: Linux x86_64, Python 3.11.2. I inspected the shader capability detection/emission and the exact-head GPU report. No local build or GPU test was run.

git diff --check 08a10d225306ad102b57408e2ef7566bcfb829b2...8d84578a43058c8ca30606335ad7a9a702af2658
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11265

Results

Check Result
Diff whitespace Passed; no output
Conventions and PR template Passed locally
Current-main merge preview Clean
Exact-head NVIDIA validation report Failed: 9 new validation IDs across agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, and agc_driver_dx10_clamp; each was reproduced when rerun alone
Main and main-plus-test-change controls The report records zero of these IDs on both controls
Local build and GPU tests Not run

The report identifies VUID-VkShaderModuleCreateInfo-pCode-08739 for an unsupported SPIR-V capability and VUID-VkShaderModuleCreateInfo-pCode-08741 for unsupported SPV_KHR_fma; it also reports 08737 from SPIR-V validation. The PR tests completed, but those passing exits do not make the validation errors harmless. The no-build precheck's ABI/test-quality steps could not start because workspace-local helper scripts were absent in its isolated checkout; those results do not affect this Vulkan finding.

Negative control

Assertion Change to code under test Did the new test fail?
NVIDIA report's validation finding Main with only this PR's test-file changes No; the report records zero of these IDs.

Findings

Blocking

  • The current feature/capability path produces SPIR-V that the NVIDIA RTX 2000 Ada Vulkan validation run rejects as declaring unsupported FMA capability/extension. The same three tests have zero such IDs on main and on main plus the PR's test-only changes, and the report reproduced the IDs when each test was rerun alone. Please correct the device feature/extension gating so FMAKHR and SPV_KHR_fma are emitted only when actually supported and enabled, retaining the existing fallback otherwise. Then rerun the same three tests with validation enabled and confirm zero new IDs against main.

Non-blocking

None.

Sources

Not verified

I did not reproduce the NVIDIA GPU run locally or build this PR. The reported failing GPU is an RTX 2000 Ada; the author's separate RTX 4090 run and Intel fallback run do not cover this reported device-specific failure.

To get this to a good state

Fix the capability/extension path or keep the fallback on devices that do not support it, then rerun the reported validation tests and compare them with main. I will rerun the same available no-build checks and reassess the exact new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5711529797 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11265#pullrequestreview-5711529797). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T11:23:54Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The exact-head NVIDIA validation report shows nine new Vulkan validation IDs on this PR, including unsupported `FMAKHR` capability and `SPV_KHR_fma` extension declarations. ## What I ran Reviewed head `8d84578a43058c8ca30606335ad7a9a702af2658` against PR base `08a10d225306ad102b57408e2ef7566bcfb829b2`; the merge preview against current `main` was clean. Local environment: Linux x86_64, Python 3.11.2. I inspected the shader capability detection/emission and the exact-head GPU report. No local build or GPU test was run. ```sh git diff --check 08a10d225306ad102b57408e2ef7566bcfb829b2...8d84578a43058c8ca30606335ad7a9a702af2658 python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11265 ``` ## Results | Check | Result | |---|---| | Diff whitespace | Passed; no output | | Conventions and PR template | Passed locally | | Current-main merge preview | Clean | | Exact-head NVIDIA validation report | Failed: 9 new validation IDs across `agc_driver_dpp16_operands`, `agc_driver_dpp8_pk_fmac`, and `agc_driver_dx10_clamp`; each was reproduced when rerun alone | | Main and main-plus-test-change controls | The report records zero of these IDs on both controls | | Local build and GPU tests | Not run | The report identifies `VUID-VkShaderModuleCreateInfo-pCode-08739` for an unsupported SPIR-V capability and `VUID-VkShaderModuleCreateInfo-pCode-08741` for unsupported `SPV_KHR_fma`; it also reports `08737` from SPIR-V validation. The PR tests completed, but those passing exits do not make the validation errors harmless. The no-build precheck's ABI/test-quality steps could not start because workspace-local helper scripts were absent in its isolated checkout; those results do not affect this Vulkan finding. ## Negative control | Assertion | Change to code under test | Did the new test fail? | |---|---|---| | NVIDIA report's validation finding | Main with only this PR's test-file changes | No; the report records zero of these IDs. | ## Findings ### Blocking - The current feature/capability path produces SPIR-V that the NVIDIA RTX 2000 Ada Vulkan validation run rejects as declaring unsupported FMA capability/extension. The same three tests have zero such IDs on main and on main plus the PR's test-only changes, and the report reproduced the IDs when each test was rerun alone. Please correct the device feature/extension gating so `FMAKHR` and `SPV_KHR_fma` are emitted only when actually supported and enabled, retaining the existing fallback otherwise. Then rerun the same three tests with validation enabled and confirm zero new IDs against main. ### Non-blocking None. ## Sources - [Capability detection and Vulkan extension enablement at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/8d84578a43058c8ca30606335ad7a9a702af2658/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L1547-L1557) - [FMA capability and extension emission at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/8d84578a43058c8ca30606335ad7a9a702af2658/core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterMath.cpp#L1867-L1874) - [Exact-head NVIDIA validation report and control runs](https://github.com/boykopovar/AnyPS5/pull/11265#issuecomment-6521341804) ## Not verified I did not reproduce the NVIDIA GPU run locally or build this PR. The reported failing GPU is an RTX 2000 Ada; the author's separate RTX 4090 run and Intel fallback run do not cover this reported device-specific failure. ## To get this to a good state Fix the capability/extension path or keep the fallback on devices that do not support it, then rerun the reported validation tests and compare them with main. I will rerun the same available no-build checks and reassess the exact new head.
jotitadev commented 2026-10-30 20:14:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-30T20:14:29Z.

Review: COMMENTED


Confirming tibzejoker's explanation of the NVIDIA report: the bot's layer is Vulkan-ValidationLayers 1.3.275 (Ubuntu 24.04's package), and the nine IDs come from that layer.

  • The bot's own messages show it. The pNext-pNext message in its "already present on main" list (428 tests) says "based on the Valid Usage documentation for version 275 of the Vulkan header". The "Vulkan 1.4.329" in the report header is the driver's API version: my 3070 on the same 595.99.02 driver reports apiVersion = 1.4.329.
  • The 595.99.02 driver advertises VK_KHR_shader_fma with shaderFmaFloat16 = true, so the fused path is taken on NVIDIA. The 1.3.275 layer's spirv-val rejects it with Invalid capability operand: 6030 (6030 is FMAKHR).

I reproduced it with 8d84578a43 merged onto main 16345cad6a, on Ubuntu 26.04 with GCC 15.2, Release and -DANYPS5_ENABLE_SPIRV_TOOLS=ON. The run used ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, -j1, and the three tests agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac and agc_driver_dx10_clamp.

Device / layer Result New VUIDs
RTX 3070, VVL 1.3.275 (the .deb from Ubuntu 24.04) pass 2/2 08739 and 08741 on all three tests in both runs; 08737 in the first run only. Same IDs as the bot
RTX 3070, VVL 1.4.341 (layer insertion checked with VK_LOADER_DEBUG=layer) pass 3/3 none
RTX 3070, no layer pass 3/3 n/a
lavapipe (Mesa 26.0.3), VVL 1.4.341 pass none

On main with VVL 1.3.275, the same three tests only log the pNext-pNext that is already on main. So the PR's gating holds on NVIDIA. These IDs come from the old layer and are gone with 1.4.341.

GPUs tested: NVIDIA RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3).

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5718129130 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11265#pullrequestreview-5718129130). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-30T20:14:29Z. **Review:** COMMENTED --- Confirming tibzejoker's explanation of the NVIDIA report: the bot's layer is Vulkan-ValidationLayers **1.3.275** (Ubuntu 24.04's package), and the nine IDs come from that layer. - The bot's own messages show it. The `pNext-pNext` message in its "already present on main" list (428 tests) says "based on the Valid Usage documentation for version 275 of the Vulkan header". The "Vulkan 1.4.329" in the report header is the driver's API version: my 3070 on the same 595.99.02 driver reports `apiVersion = 1.4.329`. - The 595.99.02 driver advertises `VK_KHR_shader_fma` with `shaderFmaFloat16 = true`, so the fused path is taken on NVIDIA. The 1.3.275 layer's `spirv-val` rejects it with `Invalid capability operand: 6030` (6030 is `FMAKHR`). I reproduced it with `8d84578a43` merged onto `main` `16345cad6a`, on Ubuntu 26.04 with GCC 15.2, Release and `-DANYPS5_ENABLE_SPIRV_TOOLS=ON`. The run used `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, `-j1`, and the three tests `agc_driver_dpp16_operands`, `agc_driver_dpp8_pk_fmac` and `agc_driver_dx10_clamp`. | Device / layer | Result | New VUIDs | |---|---|---| | RTX 3070, VVL 1.3.275 (the `.deb` from Ubuntu 24.04) | pass 2/2 | `08739` and `08741` on all three tests in both runs; `08737` in the first run only. Same IDs as the bot | | RTX 3070, VVL 1.4.341 (layer insertion checked with `VK_LOADER_DEBUG=layer`) | pass 3/3 | none | | RTX 3070, no layer | pass 3/3 | n/a | | lavapipe (Mesa 26.0.3), VVL 1.4.341 | pass | none | On `main` with VVL 1.3.275, the same three tests only log the `pNext-pNext` that is already on main. So the PR's gating holds on NVIDIA. These IDs come from the old layer and are gone with 1.4.341. GPUs tested: NVIDIA RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3). Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
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!11265
No description provided.