perf(shader): keep native f16 conversion NaN results when a startup probe matches RDNA #11351

Merged
tibzejoker merged 5 commits from upstream-pr/11351 into main 2026-11-06 11:50:39 +00:00
tibzejoker commented 2026-10-26 07:11:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by tibzejoker on 2026-10-26T07:11:41Z.


What

Step 3 of #11183. Native f16 conversions keep their own NaN result when a startup probe shows it is already RDNA's.

On a device with Float16, RoundingModeRTE 16 and DenormPreserve 16, v_cvt_f16_f32 and friends are one OpFConvert, and v_cvt_f32_f16 reads are one UnpackHalf2x16 (#1252, #7698). Rounding, denormals and infinities are fixed by those execution modes; the NaN is not (Vulkan lets the driver return any NaN). So every conversion rebuilds RDNA's NaN with integer ops:

  • f32 -> f16: sign of the input, quiet bit set, top 10 payload bits (0x7e00 | payload >> 13): 11 extra instructions, about 52 words;
  • f16 -> f32: sign and payload kept, no quieting: 6 extra instructions, about 28 words.

ProbeFloat16Conversions (Execution/src/Float16ConversionProbe.cpp) runs when the device is created, like ProbeFloat32FlushToZero (#6503). It compiles small RDNA programs twice, with the rebuilt NaN (today's code) and with the native result, dispatches both and compares every dword:

  • v_cvt_f32_f16 over all 65,536 halves (garbage in the upper 16 bits);
  • v_cvt_f16_f32, v_cvt_pkrtz_f16_f32 and v_cvt_f16_f32 followed by v_cvt_f32_f16, over 18,336 f32 values: every top-10 payload of quiet and signalling NaNs of both signs (with 4 low-bit patterns), every exponent with 16 mantissa patterns (ties, sticky bits, overflow to infinity, the largest finite values), and ties at every shift of the f16 denormal range;
  • each under no float mode, every denormal kept, every denormal flushed with IEEE_MODE, and a directed f16 rounding mode with FP16_OVFL;
  • inputs are read from a buffer, so the driver cannot constant-fold them.

SpirvTarget::float16WidenNans / float16NarrowNans are set per direction only when every result matches; the emitter then returns the OpFConvert / UnpackHalf2x16 result directly. Both fields are in the recompile cache key. The probe runs on each device creation, so a driver update is probed again. APS5_NO_NATIVE_F16_NANS skips it. The round trip and the toward-zero programs are there because they put OpFConvert next to OpFConvert. That caught a real problem (found by @Lander0606 on RADV, and the same on NVIDIA): v_cvt_pkrtz_f16_f32 corrects the nearest-even half when it widens back above the input, and without the NaN rebuild between them the drivers folded the f32 -> f16 -> f32 pair, so 140,763 of 280,480 inputs came out nearest-even. NoContraction on the widening fixed RADV but not NVIDIA; with float16NarrowNans the half is now widened with integer operations (shift, exact multiply for denormals), which leaves nothing to fold, and without it the module is main's (the NaN rebuild still separates the two conversions): 0 differences on both GPUs here, and --verify-spirv requires that this program has no widening OpFConvert.

Both fields are saved in recompile requests (serializer format 54, after main's shader image minimum LOD flag of format 53; 50 stays rejected as on main; older requests read them as false, round trips of the four combinations in request_serializer), so a dumped request replays with the conversions of the device that wrote it. Landing order with #11483: both append to the request format; this PR lands first with 50 and #11483 then takes 51 (agreed there). agc_shader_replay --f16-widen-nans / --f16-narrow-nans force them on as explicit overrides, so the sizes below can be reproduced.

Probe results

GPU f16 -> f32 f32 -> f16
RTX 4090 (NVIDIA 616.92) emulated: every NaN becomes 0x7fffffff (2,046 of 65,536 halves per mode) emulated: every NaN becomes 0x7fff (9,233 of 280,480 in the test)
UHD 770 (Intel 101.6129) emulated: signalling NaNs come back quieted (0x7c01 -> 0x7fc02000, RDNA gives 0x7f802000), 1,022 halves; quiet NaNs, denormals and the rest match native: 0 of 220,032 probe results differ, 0 of 280,480 in the test for each of the three programs

| Radeon 860M (RADV, Mesa 26.2.5, run by @Lander0606) | not probed: float16DenormPreserve needs denormBehaviorIndependence ALL and RADV reports 32_BIT_ONLY | native: 0 of 220,032 probe results differ, 0 of 280,480 in the test for each of the three programs |

So on the RTX 4090 nothing changes, and the f32 -> f16 direction changes on Intel and RADV.

Tested

Windows 11 Pro, MinGW-w64 GCC 15.2.0 (WinLibs r7), Ninja, Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=ON (spirv-val on every module), this head 6740167447 on main 9ab6a281ea.

  • New test agc_driver_float16_conversion_probe (tests/execution/Float16ConversionProbe.cpp):

    • agc_driver_float16_conversion_probe_spirv (--verify-spirv, no device needed): with each field set, the conversion loses exactly its NaN select and keeps one OpFConvert;
    • agc_driver_float16_conversion_probe, on the device: the emulated results are checked against a CPU model of RDNA (v_cvt_f32_f16 for all halves, v_cvt_f16_f32 and the round trip for the probe set plus 2^18 random f32 values), the native results are compared with them per class (quiet NaN, signalling NaN, not NaN), and the test fails if the device chose the native path for a direction where any result differs. It does not exist on main.
  • Focused tests, main 9ab6a281ea (this head's base) vs this PR (6740167447), ctest -R "(^agc.*(f16|float16|f64|convert|pack|interpolation|denorm)|request_serializer|shader_memory|agc_float16_conversion)" -E "^agc_driver_bda_device$" -V, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation with VK_LOADER_DEBUG=layer (84 / 85 layer insertions, no was not found line), ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1:

    GPU main this PR VUID- lines (main / PR) conversions used by the tests
    RTX 4090 (NVIDIA 616.92) 95/95 97/97 0 / 0 both: NaN rebuilt in both directions
    UHD 770 (Intel) 95/95 97/97 0 / 0 main: rebuilt; PR: native f32 -> f16

    Both sides pass on both GPUs. The f64 tests skip there (no Float64). Probe lines: RTX 4090 f16->f32 emulated (8184 of 262144), f32->f16 emulated (98484 of 220032); UHD 770 f16->f32 emulated (4088), f32->f16 native (0 of 220032).

  • RADV, Radeon 860M (Mesa 26.2.5, Fedora 44, GCC 13.3), by @Lander0606 on f2300fd2d2 (the toward-zero fix, before it was made conditional on float16NarrowNans) against its base main 4e43321bd6, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, validation layer 1.4.341, three runs each:

    main this PR
    focused set, with and without the layer 59/59 61/61
    lavapipe, with the layer 59 pass, 2 skipped 61 pass, 2 skipped
    full ^agc (-j8) 1029 of 1030 1031 of 1032

    Every device creation logs f32 to f16 NaN results: native (0 of 220032 probe results differ); the three programs of the probe test match on all 280,480 inputs. No VUID- line, 53 / 54 layer insertions. The only full-suite failure is agc_driver_tessellation (Mesa 26.2.5 crash) on both trees. Probe time 89-115 ms. The rerun on 6e17eb4b75 is offered and will be posted in the comments; the change since f2300fd2d2 only affects devices without float16NarrowNans.

  • Serializer and probe tests on this head: request_serializer, agc_shader_memory (both updated for format 54), agc_driver_float16_conversion_probe and _spirv pass.

  • Full agc suite on the RTX 4090, on 9f386f3a29 before the rebase (ctest -R "^agc" -E "^agc_driver_bda_device$" -j12): 1061 of 1063 passed; the 2 failures (agc_host_import_cut_lifetime, agc_driver_depth_plane_partial_store) also fail on main. Every test that opens a device now runs the probe.

  • Size, Grand Theft Auto V compute shaders (the requests from #11265, saved on the RTX 4090, replayed with agc_shader_replay --spv on this head; with no flag the output is word-for-word main's). On current main 78 of them recompile; 0x25b390800 no longer does (reads or writes a converted float image with 16-bit data, which is not implemented, from main's eb68ad3b02 / ede33d56e2, the same with and without this PR):

    target words (78 requests) change
    main, and this PR on NVIDIA (identical modules) 1,337,873 0
    f32 -> f16 native (Intel's and RADV's probe result) 1,320,617 -1.3 %
    both directions native (no device selects it with this PR alone) 1,313,059 -1.9 %

    Per shader, f32 -> f16 native: 0x25b393000 (RCAS) 90,558 -> 73,594 (-18.7 %), both 66,544 (-26.5 %); 5 of 78 shaders change with f32 -> f16 native, 7 with both. On 5b5d24cb22, where 0x25b390800 still recompiled, it went 503,403 -> 419,089 (-16.7 %) with f32 -> f16 native.

  • Startup cost: the probe takes 60-80 ms when run alone (150 ms with the four float modes on either GPU, 236 ms on Intel while 4 tests ran in parallel), on every device creation.

  • In game (performance form), current main 1db077e876, RTX 4090 (NVIDIA 616.92), no-change control: the open-world load of Grand Theft Auto V from the same save, APS5_TRACE_SECONDS=40:80, APS5_MIMALLOC=1, an empty ANYPS5_SHADER_CACHE_DIR per run, in the order base, PR, base again. On plain main the game stops before the menu (#11513), then ~60 s into Story (#11425), so both arms carry #11580 and a revert of #9789 and nothing else: base 0eb521ce4e, PR a02cac6c3d (= base + 2b25bd1641), on the fork as test/cvt5-base / test/cvt5-pr. Traces, summaries and full digests (current main's trace_digest.py): fork release perf-11351-20261029.

    run frames p50 / p90 / p99 ms longest Vulkan.ComputePipeline (0x25b390800) all compute pipelines
    base 16.8 / 34.6 / 123.2 7543.9 ms 35, 9798 ms
    this PR 16.8 / 33.6 / 203.2 7521.8 ms 34, 9760 ms
    base again 16.8 / 33.5 / 131.9 7261.6 ms 33, 9479 ms

    On this GPU the probe keeps today's path, so the modules are main's and the pair is neutral; the probe itself took 138 ms at device creation. The 17.9-18.7 s max frame of each run is the load's Driver.Packet.memory_wait, not a compile. The first base trace dropped queue worker 0x0 events after 78.4 s, after its compile slice (+55.0 s).

{"commit":"0eb521ce4ed3","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":416,"ms":80021.538},"presents":2006,"frame_ms":{"p50":16.819,"p90":34.585,"p99":123.235,"max":17859.073},"gpu_busy_ms_per_present":3.029,"worker_busy_pct":{"queue worker 0x0":72.895,"queue worker 0x38":23.607,"queue worker 0x20":9.176,"queue worker 0x30":4.826,"queue worker 0x28":4.224},"top_phases_ms_per_frame":{"Driver.Packet":45.128,"Driver.Packet.memory_wait":16.790,"VideoOut.Flip":13.457,"Graphics.Draw":11.570,"VideoOut.Flip.vblank_wait":11.530,"Graphics.Draw.draw_and_resource_release":10.694,"Driver.Packet.rendering_wait":9.274,"Driver.Packet.draw":9.198},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":78.429,"events_lost":32143,"totals_full":false}},"trace":"aps5-trace-0eb521ce4ed3-6904.json.gz"}
{"commit":"a02cac6c3d21","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":455,"ms":80038.353},"presents":1897,"frame_ms":{"p50":16.805,"p90":33.589,"p99":203.153,"max":18680.495},"gpu_busy_ms_per_present":2.523,"worker_busy_pct":{"queue worker 0x0":72.994,"queue worker 0x38":1.010,"queue worker 0x20":28.604,"queue worker 0x28":10.702,"queue worker 0x30":2.442},"top_phases_ms_per_frame":{"Driver.Packet":48.503,"Driver.Packet.memory_wait":18.055,"VideoOut.Flip":17.665,"VideoOut.Flip.vblank_wait":15.721,"Graphics.Draw":13.106,"Graphics.Draw.draw_and_resource_release":12.376,"Driver.Packet.draw":11.764,"Driver.Draw":11.742},"trace_dropped":false,"trace":"aps5-trace-a02cac6c3d21-3276.json.gz"}


**What is and is not measured.** The changed path is taken on Intel and RADV, and on neither do we have a title running: this PR's measured effect is the module size above and the probe's correctness on three drivers, not a frame-time or pipeline-creation gain. The RTX 4090 pair only shows that devices which keep today's path are unaffected. Not tested: MoltenVK.

### 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: none
- [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); AMD Radeon 860M (RADV, Mesa 26.2.5, Fedora 44) by @Lander0606
- [x] AI-assisted: yes (Claude Code)

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

https://claude.ai/code/session_01PHJtpJ4hw3KWJhobipK8ia




<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5013523587 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11351). Originally posted by [tibzejoker](https://github.com/tibzejoker) on 2026-10-26T07:11:41Z. --- ### What Step 3 of #11183. Native f16 conversions keep their own NaN result when a startup probe shows it is already RDNA's. On a device with Float16, `RoundingModeRTE` 16 and `DenormPreserve` 16, `v_cvt_f16_f32` and friends are one `OpFConvert`, and `v_cvt_f32_f16` reads are one `UnpackHalf2x16` (#1252, #7698). Rounding, denormals and infinities are fixed by those execution modes; the NaN is not (Vulkan lets the driver return any NaN). So every conversion rebuilds RDNA's NaN with integer ops: - f32 -> f16: sign of the input, quiet bit set, top 10 payload bits (`0x7e00 | payload >> 13`): 11 extra instructions, about 52 words; - f16 -> f32: sign and payload kept, no quieting: 6 extra instructions, about 28 words. `ProbeFloat16Conversions` (Execution/src/Float16ConversionProbe.cpp) runs when the device is created, like `ProbeFloat32FlushToZero` (#6503). It compiles small RDNA programs twice, with the rebuilt NaN (today's code) and with the native result, dispatches both and compares every dword: - `v_cvt_f32_f16` over all 65,536 halves (garbage in the upper 16 bits); - `v_cvt_f16_f32`, `v_cvt_pkrtz_f16_f32` and `v_cvt_f16_f32` followed by `v_cvt_f32_f16`, over 18,336 f32 values: every top-10 payload of quiet and signalling NaNs of both signs (with 4 low-bit patterns), every exponent with 16 mantissa patterns (ties, sticky bits, overflow to infinity, the largest finite values), and ties at every shift of the f16 denormal range; - each under no float mode, every denormal kept, every denormal flushed with `IEEE_MODE`, and a directed f16 rounding mode with `FP16_OVFL`; - inputs are read from a buffer, so the driver cannot constant-fold them. `SpirvTarget::float16WidenNans` / `float16NarrowNans` are set per direction only when every result matches; the emitter then returns the `OpFConvert` / `UnpackHalf2x16` result directly. Both fields are in the recompile cache key. The probe runs on each device creation, so a driver update is probed again. `APS5_NO_NATIVE_F16_NANS` skips it. The round trip and the toward-zero programs are there because they put `OpFConvert` next to `OpFConvert`. That caught a real problem (found by @Lander0606 on RADV, and the same on NVIDIA): `v_cvt_pkrtz_f16_f32` corrects the nearest-even half when it widens back above the input, and without the NaN rebuild between them the drivers folded the f32 -> f16 -> f32 pair, so 140,763 of 280,480 inputs came out nearest-even. `NoContraction` on the widening fixed RADV but not NVIDIA; with `float16NarrowNans` the half is now widened with integer operations (shift, exact multiply for denormals), which leaves nothing to fold, and without it the module is `main`'s (the NaN rebuild still separates the two conversions): 0 differences on both GPUs here, and `--verify-spirv` requires that this program has no widening `OpFConvert`. Both fields are saved in recompile requests (serializer format 54, after main's shader image minimum LOD flag of format 53; 50 stays rejected as on `main`; older requests read them as false, round trips of the four combinations in `request_serializer`), so a dumped request replays with the conversions of the device that wrote it. **Landing order with #11483:** both append to the request format; this PR lands first with 50 and #11483 then takes 51 (agreed there). `agc_shader_replay --f16-widen-nans / --f16-narrow-nans` force them on as explicit overrides, so the sizes below can be reproduced. ### Probe results | GPU | f16 -> f32 | f32 -> f16 | |---|---|---| | RTX 4090 (NVIDIA 616.92) | emulated: every NaN becomes `0x7fffffff` (2,046 of 65,536 halves per mode) | emulated: every NaN becomes `0x7fff` (9,233 of 280,480 in the test) | | UHD 770 (Intel 101.6129) | emulated: signalling NaNs come back quieted (`0x7c01` -> `0x7fc02000`, RDNA gives `0x7f802000`), 1,022 halves; quiet NaNs, denormals and the rest match | **native**: 0 of 220,032 probe results differ, 0 of 280,480 in the test for each of the three programs | | Radeon 860M (RADV, Mesa 26.2.5, run by @Lander0606) | not probed: `float16DenormPreserve` needs `denormBehaviorIndependence` ALL and RADV reports 32_BIT_ONLY | **native**: 0 of 220,032 probe results differ, 0 of 280,480 in the test for each of the three programs | So on the RTX 4090 nothing changes, and the f32 -> f16 direction changes on Intel and RADV. ### Tested Windows 11 Pro, MinGW-w64 GCC 15.2.0 (WinLibs r7), Ninja, Release, `BUILD_TESTING=ON`, `ANYPS5_ENABLE_SPIRV_TOOLS=ON` (spirv-val on every module), this head `6740167447` on `main` `9ab6a281ea`. - **New test `agc_driver_float16_conversion_probe`** (tests/execution/Float16ConversionProbe.cpp): - `agc_driver_float16_conversion_probe_spirv` (`--verify-spirv`, no device needed): with each field set, the conversion loses exactly its NaN select and keeps one `OpFConvert`; - `agc_driver_float16_conversion_probe`, on the device: the emulated results are checked against a CPU model of RDNA (`v_cvt_f32_f16` for all halves, `v_cvt_f16_f32` and the round trip for the probe set plus 2^18 random f32 values), the native results are compared with them per class (quiet NaN, signalling NaN, not NaN), and the test fails if the device chose the native path for a direction where any result differs. It does not exist on `main`. - **Focused tests, `main` `9ab6a281ea` (this head's base) vs this PR (`6740167447`)**, `ctest -R "(^agc.*(f16|float16|f64|convert|pack|interpolation|denorm)|request_serializer|shader_memory|agc_float16_conversion)" -E "^agc_driver_bda_device$" -V`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` with `VK_LOADER_DEBUG=layer` (84 / 85 layer insertions, no `was not found` line), `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1`: | GPU | `main` | this PR | `VUID-` lines (main / PR) | conversions used by the tests | |---|---|---|---|---| | RTX 4090 (NVIDIA 616.92) | 95/95 | 97/97 | 0 / 0 | both: NaN rebuilt in both directions | | UHD 770 (Intel) | 95/95 | 97/97 | 0 / 0 | main: rebuilt; PR: native f32 -> f16 | Both sides pass on both GPUs. The f64 tests skip there (no Float64). Probe lines: RTX 4090 f16->f32 emulated (8184 of 262144), f32->f16 emulated (98484 of 220032); UHD 770 f16->f32 emulated (4088), f32->f16 native (0 of 220032). - **RADV, Radeon 860M (Mesa 26.2.5, Fedora 44, GCC 13.3), by @Lander0606** on `f2300fd2d2` (the toward-zero fix, before it was made conditional on `float16NarrowNans`) against its base `main` `4e43321bd6`, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, validation layer 1.4.341, three runs each: | | `main` | this PR | |---|---|---| | focused set, with and without the layer | 59/59 | 61/61 | | lavapipe, with the layer | 59 pass, 2 skipped | 61 pass, 2 skipped | | full `^agc` (`-j8`) | 1029 of 1030 | 1031 of 1032 | Every device creation logs `f32 to f16 NaN results: native (0 of 220032 probe results differ)`; the three programs of the probe test match on all 280,480 inputs. No `VUID-` line, 53 / 54 layer insertions. The only full-suite failure is `agc_driver_tessellation` (Mesa 26.2.5 crash) on both trees. Probe time 89-115 ms. The rerun on `6e17eb4b75` is offered and will be posted in the comments; the change since `f2300fd2d2` only affects devices without `float16NarrowNans`. - **Serializer and probe tests on this head:** `request_serializer`, `agc_shader_memory` (both updated for format 54), `agc_driver_float16_conversion_probe` and `_spirv` pass. - **Full agc suite on the RTX 4090**, on `9f386f3a29` before the rebase (`ctest -R "^agc" -E "^agc_driver_bda_device$" -j12`): 1061 of 1063 passed; the 2 failures (`agc_host_import_cut_lifetime`, `agc_driver_depth_plane_partial_store`) also fail on `main`. Every test that opens a device now runs the probe. - **Size, Grand Theft Auto V compute shaders** (the requests from #11265, saved on the RTX 4090, replayed with `agc_shader_replay --spv` on this head; with no flag the output is word-for-word `main`'s). On current `main` 78 of them recompile; `0x25b390800` no longer does (`reads or writes a converted float image with 16-bit data, which is not implemented`, from `main`'s eb68ad3b02 / ede33d56e2, the same with and without this PR): | target | words (78 requests) | change | |---|---|---| | `main`, and this PR on NVIDIA (identical modules) | 1,337,873 | 0 | | f32 -> f16 native (Intel's and RADV's probe result) | 1,320,617 | -1.3 % | | both directions native (no device selects it with this PR alone) | 1,313,059 | -1.9 % | Per shader, f32 -> f16 native: `0x25b393000` (RCAS) 90,558 -> 73,594 (-18.7 %), both 66,544 (-26.5 %); 5 of 78 shaders change with f32 -> f16 native, 7 with both. On `5b5d24cb22`, where `0x25b390800` still recompiled, it went 503,403 -> 419,089 (-16.7 %) with f32 -> f16 native. - **Startup cost:** the probe takes 60-80 ms when run alone (150 ms with the four float modes on either GPU, 236 ms on Intel while 4 tests ran in parallel), on every device creation. - **In game (performance form), current `main` `1db077e876`, RTX 4090 (NVIDIA 616.92), no-change control:** the open-world load of Grand Theft Auto V from the same save, `APS5_TRACE_SECONDS=40:80`, `APS5_MIMALLOC=1`, an empty `ANYPS5_SHADER_CACHE_DIR` per run, in the order base, PR, base again. On plain `main` the game stops before the menu (#11513), then ~60 s into Story (#11425), so both arms carry #11580 and a revert of #9789 and nothing else: base `0eb521ce4e`, PR `a02cac6c3d` (= base + `2b25bd1641`), on the fork as `test/cvt5-base` / `test/cvt5-pr`. Traces, summaries and full digests (current `main`'s `trace_digest.py`): [fork release perf-11351-20261029](https://github.com/tibzejoker/AnyPS5/releases/tag/perf-11351-20261029). | run | frames p50 / p90 / p99 ms | longest `Vulkan.ComputePipeline` (`0x25b390800`) | all compute pipelines | |---|---|---|---| | base | 16.8 / 34.6 / 123.2 | 7543.9 ms | 35, 9798 ms | | this PR | 16.8 / 33.6 / 203.2 | 7521.8 ms | 34, 9760 ms | | base again | 16.8 / 33.5 / 131.9 | 7261.6 ms | 33, 9479 ms | On this GPU the probe keeps today's path, so the modules are `main`'s and the pair is neutral; the probe itself took 138 ms at device creation. The 17.9-18.7 s max frame of each run is the load's `Driver.Packet.memory_wait`, not a compile. The first base trace dropped queue worker 0x0 events after 78.4 s, after its compile slice (+55.0 s). ``` {"commit":"0eb521ce4ed3","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":416,"ms":80021.538},"presents":2006,"frame_ms":{"p50":16.819,"p90":34.585,"p99":123.235,"max":17859.073},"gpu_busy_ms_per_present":3.029,"worker_busy_pct":{"queue worker 0x0":72.895,"queue worker 0x38":23.607,"queue worker 0x20":9.176,"queue worker 0x30":4.826,"queue worker 0x28":4.224},"top_phases_ms_per_frame":{"Driver.Packet":45.128,"Driver.Packet.memory_wait":16.790,"VideoOut.Flip":13.457,"Graphics.Draw":11.570,"VideoOut.Flip.vblank_wait":11.530,"Graphics.Draw.draw_and_resource_release":10.694,"Driver.Packet.rendering_wait":9.274,"Driver.Packet.draw":9.198},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":78.429,"events_lost":32143,"totals_full":false}},"trace":"aps5-trace-0eb521ce4ed3-6904.json.gz"} {"commit":"a02cac6c3d21","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":455,"ms":80038.353},"presents":1897,"frame_ms":{"p50":16.805,"p90":33.589,"p99":203.153,"max":18680.495},"gpu_busy_ms_per_present":2.523,"worker_busy_pct":{"queue worker 0x0":72.994,"queue worker 0x38":1.010,"queue worker 0x20":28.604,"queue worker 0x28":10.702,"queue worker 0x30":2.442},"top_phases_ms_per_frame":{"Driver.Packet":48.503,"Driver.Packet.memory_wait":18.055,"VideoOut.Flip":17.665,"VideoOut.Flip.vblank_wait":15.721,"Graphics.Draw":13.106,"Graphics.Draw.draw_and_resource_release":12.376,"Driver.Packet.draw":11.764,"Driver.Draw":11.742},"trace_dropped":false,"trace":"aps5-trace-a02cac6c3d21-3276.json.gz"} ``` **What is and is not measured.** The changed path is taken on Intel and RADV, and on neither do we have a title running: this PR's measured effect is the module size above and the probe's correctness on three drivers, not a frame-time or pipeline-creation gain. The RTX 4090 pair only shows that devices which keep today's path are unaffected. Not tested: MoltenVK. ### 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: none - [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); AMD Radeon 860M (RADV, Mesa 26.2.5, Fedora 44) by @Lander0606 - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PHJtpJ4hw3KWJhobipK8ia
MarcZX10 commented 2026-10-26 09:04:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T09:04:11Z.

Review: CHANGES_REQUESTED


Reviewed exact head 1081e2351a4b81d84ad1ce2ad627e6d29ab8368f. I found one blocking replay correctness issue:

VulkanDevice::Target() now sets float16WidenNans and float16NarrowNans, and those values control which SPIR-V the live driver emits. Shader captures go through Driver::dumpRequest() and RequestSerializer::Serialize(), but the serializer remains at format version 46 and writes neither field; Deserialize() likewise leaves both false. A captured request from a device that selected the native path therefore silently replays with the emulated NaN repair unless the user manually supplies the new agc_shader_replay flags. Those flags are a useful override, but they do not preserve the captured request's selected target behavior.

Please append both fields in a versioned serializer update and add round-trip coverage (including backward compatibility for older request versions). Keep the CLI switches if they are useful for explicit overrides.

The branch is also about 142 main commits behind its merge base. The current-main merge preview is clean; the two shared paths have unrelated adjacent changes in CMakeLists.txt and docs/dev/BUILD.md. Please sync to current main and rerun conventions and the focused AGC checks against the refreshed base. The existing GPU and trace results are useful historical evidence, but they were produced from the older base.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5649602312 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11351#pullrequestreview-5649602312). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T09:04:11Z. **Review:** CHANGES_REQUESTED --- Reviewed exact head `1081e2351a4b81d84ad1ce2ad627e6d29ab8368f`. I found one blocking replay correctness issue: `VulkanDevice::Target()` now sets `float16WidenNans` and `float16NarrowNans`, and those values control which SPIR-V the live driver emits. Shader captures go through `Driver::dumpRequest()` and `RequestSerializer::Serialize()`, but the serializer remains at format version 46 and writes neither field; `Deserialize()` likewise leaves both false. A captured request from a device that selected the native path therefore silently replays with the emulated NaN repair unless the user manually supplies the new `agc_shader_replay` flags. Those flags are a useful override, but they do not preserve the captured request's selected target behavior. Please append both fields in a versioned serializer update and add round-trip coverage (including backward compatibility for older request versions). Keep the CLI switches if they are useful for explicit overrides. The branch is also about 142 main commits behind its merge base. The current-main merge preview is clean; the two shared paths have unrelated adjacent changes in `CMakeLists.txt` and `docs/dev/BUILD.md`. Please sync to current `main` and rerun conventions and the focused AGC checks against the refreshed base. The existing GPU and trace results are useful historical evidence, but they were produced from the older base.
MarcZX10 commented 2026-10-26 10:52:20 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Re-reviewed exact head f2300fd2d20dc81095448ef7fe920f711f00a7f8. The serializer blocker is resolved: format 47 stores both flags, older requests default them to false, four flag combinations round-trip, truncation is rejected, and the cache key includes both flags. The new RADV 860M results on this exact head also address the previously pending focused GPU run. Current main advanced beyond the branch base, but none of the 42 intervening main paths overlap the PR's changed files and the merge preview is clean, so I found no new source-integration issue.

One required performance-report item remains. This PR is labeled , but its attached summary pair is for main commit and PR commit , not the final head . That trace pair also uses an RTX 4090 where the report says both native flags stay disabled, so it checks that the tested scene does not regress but does not measure the optimization. Please provide the required same-title/scene/machine main-and-final-head captures with output from a run that exercises the native path, or update the performance claim and follow the repository's reporting rule for the resulting scope. Please also bring the new RADV 860M exact-head result from the discussion into the Tested section, which still describes that rerun as pending.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5650879323 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11351#pullrequestreview-5650879323). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T10:52:20Z. **Review:** CHANGES_REQUESTED --- Re-reviewed exact head f2300fd2d20dc81095448ef7fe920f711f00a7f8. The serializer blocker is resolved: format 47 stores both flags, older requests default them to false, four flag combinations round-trip, truncation is rejected, and the cache key includes both flags. The new RADV 860M results on this exact head also address the previously pending focused GPU run. Current main advanced beyond the branch base, but none of the 42 intervening main paths overlap the PR's changed files and the merge preview is clean, so I found no new source-integration issue. One required performance-report item remains. This PR is labeled , but its attached summary pair is for main commit and PR commit , not the final head . That trace pair also uses an RTX 4090 where the report says both native flags stay disabled, so it checks that the tested scene does not regress but does not measure the optimization. Please provide the required same-title/scene/machine main-and-final-head captures with output from a run that exercises the native path, or update the performance claim and follow the repository's reporting rule for the resulting scope. Please also bring the new RADV 860M exact-head result from the discussion into the Tested section, which still describes that rerun as pending.
MarcZX10 commented 2026-10-26 10:52:29 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Re-reviewed exact head f2300fd2d20dc81095448ef7fe920f711f00a7f8. The serializer blocker is resolved: format 47 stores both flags, older requests default them to false, four flag combinations round-trip, truncation is rejected, and the cache key includes both flags. The new RADV 860M results on this exact head also address the previously pending focused GPU run. Current main advanced beyond the branch base, but none of the 42 intervening main paths overlap the PR's changed files and the merge preview is clean, so I found no new source-integration issue.

One required performance-report item remains. This PR is labeled perf, but its attached summary pair is for main commit 14c99b52ace3 and PR commit 1081e2351a4b, not the final head f2300fd2d2. That trace pair also uses an RTX 4090 where the report says both native flags stay disabled, so it checks that the tested scene does not regress but does not measure the optimization. Please provide the required same-title, same-scene, same-machine main-and-final-head captures with tools/trace_digest.py output from a run that exercises the native path, or update the performance claim and follow the repository's reporting rule for the resulting scope. Please also bring the new RADV 860M exact-head result from the discussion into the Tested section, which still describes that rerun as pending.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5650881130 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11351#pullrequestreview-5650881130). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T10:52:29Z. **Review:** CHANGES_REQUESTED --- Re-reviewed exact head `f2300fd2d20dc81095448ef7fe920f711f00a7f8`. The serializer blocker is resolved: format 47 stores both flags, older requests default them to false, four flag combinations round-trip, truncation is rejected, and the cache key includes both flags. The new RADV 860M results on this exact head also address the previously pending focused GPU run. Current main advanced beyond the branch base, but none of the 42 intervening main paths overlap the PR's changed files and the merge preview is clean, so I found no new source-integration issue. One required performance-report item remains. This PR is labeled `perf`, but its attached summary pair is for main commit `14c99b52ace3` and PR commit `1081e2351a4b`, not the final head `f2300fd2d2`. That trace pair also uses an RTX 4090 where the report says both native flags stay disabled, so it checks that the tested scene does not regress but does not measure the optimization. Please provide the required same-title, same-scene, same-machine main-and-final-head captures with `tools/trace_digest.py` output from a run that exercises the native path, or update the performance claim and follow the repository's reporting rule for the resulting scope. Please also bring the new RADV 860M exact-head result from the discussion into the Tested section, which still describes that rerun as pending.
MarcZX10 commented 2026-10-26 12:08:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T12:08:11Z.

Review: DISMISSED


Re-reviewed exact head 20a660bea49eb726e84a3ebfe4a3a92a28e2b7b4 against current main 4e38e2388219e065eba52461f2e59234fcb57b13. Two blockers remain:

  1. Current-main serializer integration. Since the branch was refreshed from 5b5d24cb22, main added ColorExportPacking::Uint and updated readColorExportPacking to accept it. This head still caps that decoder at Unorm4_4_4_4; after merging current main, valid requests using Uint would be rejected unless the new bound is retained alongside format 47’s two f16 flags. main also changed the shared AGC CMake and SPIR-V module-emitter files. Please merge current main, preserve both changes, and rerun request_serializer plus the focused f16 tests on the resulting head.

  2. Performance evidence does not exercise the optimized path. The body’s final-head GTA V pair is on an RTX 4090 where both native flags remain disabled and the replayed modules are word-for-word unchanged. That is useful as a no-regression control, but does not measure the claimed native-conversion optimization. The body also still says the RADV 860M rerun on this head is pending, although later comments report it. Please provide a same-title/main/final-head trace and digest on a device where the probe selects the changed path, or get maintainer direction for an applicable tooling/performance report and update the claim accordingly. Move the exact-head RADV result into Tested as well.

The policy checks pass, but the PR’s product jobs are skipped by path policy; these integration and GPU checks therefore need evidence on the refreshed head before approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5651679195 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11351#pullrequestreview-5651679195). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T12:08:11Z. **Review:** DISMISSED --- Re-reviewed exact head `20a660bea49eb726e84a3ebfe4a3a92a28e2b7b4` against current `main` `4e38e2388219e065eba52461f2e59234fcb57b13`. Two blockers remain: 1. **Current-main serializer integration.** Since the branch was refreshed from `5b5d24cb22`, `main` added `ColorExportPacking::Uint` and updated `readColorExportPacking` to accept it. This head still caps that decoder at `Unorm4_4_4_4`; after merging current `main`, valid requests using `Uint` would be rejected unless the new bound is retained alongside format 47’s two f16 flags. `main` also changed the shared AGC CMake and SPIR-V module-emitter files. Please merge current `main`, preserve both changes, and rerun `request_serializer` plus the focused f16 tests on the resulting head. 2. **Performance evidence does not exercise the optimized path.** The body’s final-head GTA V pair is on an RTX 4090 where both native flags remain disabled and the replayed modules are word-for-word unchanged. That is useful as a no-regression control, but does not measure the claimed native-conversion optimization. The body also still says the RADV 860M rerun on this head is pending, although later comments report it. Please provide a same-title/main/final-head trace and digest on a device where the probe selects the changed path, or get maintainer direction for an applicable tooling/performance report and update the claim accordingly. Move the exact-head RADV result into `Tested` as well. The policy checks pass, but the PR’s product jobs are skipped by path policy; these integration and GPU checks therefore need evidence on the refreshed head before approval.
MarcZX10 commented 2026-10-29 06:03:08 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Re-checked — changes requested

What I checked

  • Reviewed exact head e4c702e3312e8d9d656a1a1f9504a2498dec864b against fetched main 2960e9a6e7.
  • The author reports the RADV focused/full-suite comparisons and the required performance capture pair on earlier pinned heads. Hosted Windows, relinker, conventions, and eligibility checks pass; product Linux and specialized jobs were skipped. I did not run GPU tests locally.
  • The current-main merge preview conflicts in ShaderReplay.cpp. The pairwise preview with open #11483 conflicts in ShaderMemory.cpp, ShaderReplay.cpp, RequestSerializer.cpp, and RequestSerializerTests.cpp.

Blocking integration items

The branch is 232 commits behind fetched current main, and the body says its runtime results are from the earlier baseline 319621ba2e. Please refresh onto current main, resolve the replay conflict, and rerun the focused f16/serializer tests on that integration head.

Open #11483 also uses the same request-format version slot (both branches currently append format 50). The two PRs need an agreed landing order and corresponding next-version update; record the order with Depends on as CONTRIBUTING.md requires. The current merge preview with #11483 has conflicts, so I cannot treat their claims of independent topics as independent integration.

The earlier performance report is useful, but neither the current-main conflict nor the paired format integration has been validated. I cannot renew the previous review until these are resolved.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693514707 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11351#pullrequestreview-5693514707). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T06:03:08Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes requested ## What I checked - Reviewed exact head `e4c702e3312e8d9d656a1a1f9504a2498dec864b` against fetched `main` `2960e9a6e7`. - The author reports the RADV focused/full-suite comparisons and the required performance capture pair on earlier pinned heads. Hosted Windows, relinker, conventions, and eligibility checks pass; product Linux and specialized jobs were skipped. I did not run GPU tests locally. - The current-main merge preview conflicts in `ShaderReplay.cpp`. The pairwise preview with open #11483 conflicts in `ShaderMemory.cpp`, `ShaderReplay.cpp`, `RequestSerializer.cpp`, and `RequestSerializerTests.cpp`. ## Blocking integration items The branch is 232 commits behind fetched current `main`, and the body says its runtime results are from the earlier baseline `319621ba2e`. Please refresh onto current `main`, resolve the replay conflict, and rerun the focused f16/serializer tests on that integration head. Open #11483 also uses the same request-format version slot (both branches currently append format 50). The two PRs need an agreed landing order and corresponding next-version update; record the order with `Depends on` as `CONTRIBUTING.md` requires. The current merge preview with #11483 has conflicts, so I cannot treat their claims of independent topics as independent integration. The earlier performance report is useful, but neither the current-main conflict nor the paired format integration has been validated. I cannot renew the previous review until these are resolved.
MarcZX10 commented 2026-10-29 08:29:58 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Re-reviewed exact head 2b25bd1641812f1c39d5c664524eeaf89412a4fc against current upstream/main 4c7d275bef89d309313d16bc2bc05d37a1b50be2. The branch now includes current main, the cache format is 50 versus main’s 49, and the unsupported-format test now uses 51; that resolves the stale-main/version-number finding from my previous review. git merge-tree --write-tree is clean against main and git diff --check passes.

Two items remain before I can approve:

  1. The current pairwise merge preview with open #11483 conflicts in ShaderMemory.cpp, ShaderReplay.cpp, RequestSerializer.cpp, and RequestSerializerTests.cpp. Both PRs affect request serialization and are by the same author; please record an agreed landing order/dependency and preserve both changes in the final stack.
  2. The newest focused and performance reports are for head e4c702e331 on main 319621ba2e. This head adds the version-51 rejection test and merges current main. Please rerun the focused serializer/f16 validation on this exact head and refresh the performance comparison against current main, with the same title, scene, machine and required trace artifacts.

I did not run Vulkan/GPU tests locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5694799015 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11351#pullrequestreview-5694799015). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T08:29:58Z. **Review:** CHANGES_REQUESTED --- Re-reviewed exact head `2b25bd1641812f1c39d5c664524eeaf89412a4fc` against current `upstream/main` `4c7d275bef89d309313d16bc2bc05d37a1b50be2`. The branch now includes current main, the cache format is 50 versus main’s 49, and the unsupported-format test now uses 51; that resolves the stale-main/version-number finding from my previous review. `git merge-tree --write-tree` is clean against main and `git diff --check` passes. Two items remain before I can approve: 1. The current pairwise merge preview with open #11483 conflicts in `ShaderMemory.cpp`, `ShaderReplay.cpp`, `RequestSerializer.cpp`, and `RequestSerializerTests.cpp`. Both PRs affect request serialization and are by the same author; please record an agreed landing order/dependency and preserve both changes in the final stack. 2. The newest focused and performance reports are for head `e4c702e331` on main `319621ba2e`. This head adds the version-51 rejection test and merges current main. Please rerun the focused serializer/f16 validation on this exact head and refresh the performance comparison against current main, with the same title, scene, machine and required trace artifacts. I did not run Vulkan/GPU tests locally.
adriadam10 commented 2026-10-29 08:31:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-29T08:31:59Z.

Review: CHANGES_REQUESTED


Re-checked 2b25bd1641 on current main: the merge is clean and the code is the one already reviewed; the only changes since are the format 50 renumbering and the version 51 rejection test. Two things are left, both in @MarcZX10's open request:

  • Landing order with #11483. Both append request format 50. Proposal: this PR lands first with 50, and #11483 takes 51 when it rebases (its ShaderMemory.cpp, ShaderReplay.cpp, RequestSerializer.cpp and RequestSerializerTests.cpp conflicts are then a rebase that keeps both flags). Please state it in the body and ping #11483 so both sides agree.
  • Rerun on this exact head. The focused set (^agc.*(f16|float16|convert|pack)|request_serializer|shader_memory, validation layer, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1) and the GTA V pair are from e4c702e331 on main 319621ba2e. Please post the focused set on 2b25bd1641 for the RTX 4090 and the UHD 770, and refresh the trace pair against current main.

Once those are posted and MarcZX10's review is renewed, it goes to the merge queue.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5694822270 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11351#pullrequestreview-5694822270). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-29T08:31:59Z. **Review:** CHANGES_REQUESTED --- Re-checked `2b25bd1641` on current `main`: the merge is clean and the code is the one already reviewed; the only changes since are the format 50 renumbering and the version 51 rejection test. Two things are left, both in @MarcZX10's open request: - **Landing order with #11483.** Both append request format 50. Proposal: this PR lands first with 50, and #11483 takes 51 when it rebases (its `ShaderMemory.cpp`, `ShaderReplay.cpp`, `RequestSerializer.cpp` and `RequestSerializerTests.cpp` conflicts are then a rebase that keeps both flags). Please state it in the body and ping #11483 so both sides agree. - **Rerun on this exact head.** The focused set (`^agc.*(f16|float16|convert|pack)|request_serializer|shader_memory`, validation layer, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1`) and the GTA V pair are from `e4c702e331` on `main` `319621ba2e`. Please post the focused set on `2b25bd1641` for the RTX 4090 and the UHD 770, and refresh the trace pair against current `main`. Once those are posted and MarcZX10's review is renewed, it goes to the merge queue.
MarcZX10 commented 2026-11-01 00:00:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T00:00:48Z.

Review: DISMISSED


Re-checked — new head, changes requested

The reported focused rerun is for da083d0e1355ac816c9d45272c2b1a17c9977b77, but that head conflicts with current main 8a4fc62318a4b73b6895bf20a024c625efeb7c3b in VulkanDevice.cpp.

What I ran

Reviewed PR #11351 at head da083d0e1355ac816c9d45272c2b1a17c9977b77, PR base 381891927c2b3ff494a9853cb79fde8d5342b92d, against current main 8a4fc62318a4b73b6895bf20a024c625efeb7c3b. The current-main merge preview did not merge cleanly. Environment: Debian GNU/Linux, Python 3.11.2, Git 2.39.5. I did not configure or build the project.

cd /marc/AnyPS5
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11351
git diff --check 381891927c2b3ff494a9853cb79fde8d5342b92d...da083d0e1355ac816c9d45272c2b1a17c9977b77
git merge-tree --write-tree 8a4fc62318a4b73b6895bf20a024c625efeb7c3b da083d0e1355ac816c9d45272c2b1a17c9977b77

Results

Check Result
Diff whitespace Passed; git diff --check exited 0 with no output.
Repository conventions and PR template Passed in the precheck.
Current-main merge preview Failed: content conflict in core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp; GitHub also reports CONFLICTING / DIRTY.
Exact-head focused GPU tests The author reports RTX 4090 93/93 and UHD 770 92/93 against main 7a5d9bf02a; the single UHD failure is also present on main, with zero reported VUID- lines. I did not run these tests locally. Author report
Hosted CI Conventions, eligibility, portability, labels, report, relinker Ubuntu, relinker Windows, relinker macOS x86_64, and ASan passed. The Windows job failed with exit code 1; its available annotation gives no cause. Linux and several specialized jobs were skipped. The macOS arm64 relinker job was still in progress at the last check.
Other precheck helpers ABI audit and test-quality heuristic could not run because those helper scripts are absent from the PR head checkout; these are unavailable checks, not reported source failures.
Precheck output
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-11351-da083d0e1355/report.md
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-11351-da083d0e1355/report.json
Conclusion: checks failed
Current-main merge-preview output
9c8a6dea1e1ba387890852a0e7831e4710852fe4
100644 e0036db99a427765ea6a47e5561d67c3f3a79b56 1	core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
100644 4416c969b1ab6a31a74472bde3bbbb80cd9ff48e 2	core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
100644 f407288dff8b63d0461e7bfc46945b68dc4de9e0 3	core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp

Auto-merging core/libs/prx/libSceAgcDriver/CMakeLists.txt
Auto-merging core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
CONFLICT (content): Merge conflict in core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
Auto-merging docs/dev/BUILD.md
Auto-merging docs/dev/ENVIRONMENT.md
Conventions output
All conventions checks passed.

Findings

Blocking

  • Current-main integration conflict: the PR head and current main both change VulkanDevice.cpp, and the merge preview conflicts there. Please rebase onto current main, preserve both the current-main changes and this PR's float16 probe behavior, then rerun the focused tests and conventions on the resulting head. The author-reported test results currently use main 7a5d9bf02a, not the current target 8a4fc62318a4b73b6895bf20a024c625efeb7c3b.

Non-blocking

  • The PR description's Tested section still identifies older head/base revisions; update it to point to the latest reports after the integration rebase. The attached RTX 4090 trace pair is explicitly described as a no-change control, so I have not treated it as evidence of runtime gains on the native-conversion path.

Sources

Not verified

  • I did not build or run CTest, GPU validation, or title captures locally.
  • I could not determine the cause of the hosted Windows failure from its available annotation; the workflow logs were unavailable while the run remained in progress.
  • Linux and the skipped specialized hosted jobs did not run; the macOS arm64 relinker job was still running at the last status refresh.

To get this to a good state

Rebase this PR onto current main, resolve the VulkanDevice.cpp conflict while retaining both sides' behavior, update the Tested revision references, and rerun conventions plus the focused serializer/float16 tests on the resulting head. I will rerun the same no-build checks against that new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5725531688 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11351#pullrequestreview-5725531688). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T00:00:48Z. **Review:** DISMISSED --- # Re-checked — new head, changes requested The reported focused rerun is for `da083d0e1355ac816c9d45272c2b1a17c9977b77`, but that head conflicts with current `main` `8a4fc62318a4b73b6895bf20a024c625efeb7c3b` in `VulkanDevice.cpp`. ## What I ran Reviewed PR #11351 at head `da083d0e1355ac816c9d45272c2b1a17c9977b77`, PR base `381891927c2b3ff494a9853cb79fde8d5342b92d`, against current `main` `8a4fc62318a4b73b6895bf20a024c625efeb7c3b`. The current-main merge preview did not merge cleanly. Environment: Debian GNU/Linux, Python 3.11.2, Git 2.39.5. I did not configure or build the project. ```sh cd /marc/AnyPS5 python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11351 git diff --check 381891927c2b3ff494a9853cb79fde8d5342b92d...da083d0e1355ac816c9d45272c2b1a17c9977b77 git merge-tree --write-tree 8a4fc62318a4b73b6895bf20a024c625efeb7c3b da083d0e1355ac816c9d45272c2b1a17c9977b77 ``` ## Results | Check | Result | |---|---| | Diff whitespace | Passed; `git diff --check` exited 0 with no output. | | Repository conventions and PR template | Passed in the precheck. | | Current-main merge preview | Failed: content conflict in `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`; GitHub also reports `CONFLICTING` / `DIRTY`. | | Exact-head focused GPU tests | The author reports RTX 4090 93/93 and UHD 770 92/93 against `main` `7a5d9bf02a`; the single UHD failure is also present on `main`, with zero reported `VUID-` lines. I did not run these tests locally. [Author report](https://github.com/boykopovar/AnyPS5/pull/11351#issuecomment-6550400899) | | Hosted CI | Conventions, eligibility, portability, labels, report, relinker Ubuntu, relinker Windows, relinker macOS x86_64, and ASan passed. The Windows job failed with exit code 1; its available annotation gives no cause. Linux and several specialized jobs were skipped. The macOS arm64 relinker job was still in progress at the last check. | | Other precheck helpers | ABI audit and test-quality heuristic could not run because those helper scripts are absent from the PR head checkout; these are unavailable checks, not reported source failures. | <details><summary>Precheck output</summary> ```text /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-11351-da083d0e1355/report.md /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-11351-da083d0e1355/report.json Conclusion: checks failed ``` </details> <details><summary>Current-main merge-preview output</summary> ```text 9c8a6dea1e1ba387890852a0e7831e4710852fe4 100644 e0036db99a427765ea6a47e5561d67c3f3a79b56 1 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp 100644 4416c969b1ab6a31a74472bde3bbbb80cd9ff48e 2 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp 100644 f407288dff8b63d0461e7bfc46945b68dc4de9e0 3 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp Auto-merging core/libs/prx/libSceAgcDriver/CMakeLists.txt Auto-merging core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp CONFLICT (content): Merge conflict in core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp Auto-merging docs/dev/BUILD.md Auto-merging docs/dev/ENVIRONMENT.md ``` </details> <details><summary>Conventions output</summary> ```text All conventions checks passed. ``` </details> ## Findings ### Blocking - **Current-main integration conflict:** the PR head and current `main` both change `VulkanDevice.cpp`, and the merge preview conflicts there. Please rebase onto current `main`, preserve both the current-main changes and this PR's float16 probe behavior, then rerun the focused tests and conventions on the resulting head. The author-reported test results currently use `main` `7a5d9bf02a`, not the current target `8a4fc62318a4b73b6895bf20a024c625efeb7c3b`. ### Non-blocking - The PR description's `Tested` section still identifies older head/base revisions; update it to point to the latest reports after the integration rebase. The attached RTX 4090 trace pair is explicitly described as a no-change control, so I have not treated it as evidence of runtime gains on the native-conversion path. ## Sources - [Repository performance and focused-test requirements at current main](https://github.com/boykopovar/AnyPS5/blob/8a4fc62318a4b73b6895bf20a024c625efeb7c3b/CONTRIBUTING.md#L72-L73) - [PR float16 probe integration at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/da083d0e1355ac816c9d45272c2b1a17c9977b77/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L2334-L2350) - [Author's exact-head focused-test report](https://github.com/boykopovar/AnyPS5/pull/11351#issuecomment-6550400899) ## Not verified - I did not build or run CTest, GPU validation, or title captures locally. - I could not determine the cause of the hosted Windows failure from its available annotation; the workflow logs were unavailable while the run remained in progress. - Linux and the skipped specialized hosted jobs did not run; the macOS arm64 relinker job was still running at the last status refresh. ## To get this to a good state Rebase this PR onto current `main`, resolve the `VulkanDevice.cpp` conflict while retaining both sides' behavior, update the `Tested` revision references, and rerun conventions plus the focused serializer/float16 tests on the resulting head. I will rerun the same no-build checks against that new head.
adriadam10 commented 2026-11-01 01:41:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-11-01T01:41:03Z.

Review: CHANGES_REQUESTED


Re-checked against current main (029463ceb6). The branch conflicts in RequestSerializer.cpp, RequestSerializerTests.cpp and ShaderMemory.cpp, and it is not only text:

  • main took serialization format 51 (tessellationEvaluationSubgroups) and made 50 an unsupported version (32a6bdb6d3: "Version 50 is skipped"). The two f16 NaN fields can no longer be format 50.
  • Please move them to 52: writer, version >= 52u in Deserialize, upper bound 52 (keeping 50 rejected), the fixtures that pin the f16 fields, and the "unsupported" test at 53. Older requests (≤ 51) read both fields as false.
  • #11483 takes the next number after this one lands; its renumbering follows from the new order (53), so please update the note in the description.

The rest is the code already reviewed (probe, emitter, replay flags); nothing else needs to change once it is rebased on main.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5725912635 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11351#pullrequestreview-5725912635). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-11-01T01:41:03Z. **Review:** CHANGES_REQUESTED --- Re-checked against current `main` (`029463ceb6`). The branch conflicts in `RequestSerializer.cpp`, `RequestSerializerTests.cpp` and `ShaderMemory.cpp`, and it is not only text: - `main` took serialization format 51 (`tessellationEvaluationSubgroups`) and made 50 an unsupported version (`32a6bdb6d3`: "Version 50 is skipped"). The two f16 NaN fields can no longer be format 50. - Please move them to **52**: writer, `version >= 52u` in `Deserialize`, upper bound 52 (keeping 50 rejected), the fixtures that pin the f16 fields, and the "unsupported" test at 53. Older requests (≤ 51) read both fields as false. - #11483 takes the next number after this one lands; its renumbering follows from the new order (53), so please update the note in the description. The rest is the code already reviewed (probe, emitter, replay flags); nothing else needs to change once it is rebased on `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!11351
No description provided.