fix(shader): declare f16 and f64 DenormPreserve together when their modes are shared #11483

Open
tibzejoker wants to merge 3 commits from upstream-pr/11483 into main
tibzejoker commented 2026-10-26 16:46:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by tibzejoker on 2026-10-26T16:46:42Z.


What

Part of #11183. On a device whose f16 and f64 denormal modes are tied together, both are now preserved, and every module that declares DenormPreserve for one of the two widths declares it for the other.

Vulkan's denormBehaviorIndependence = VK_SHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY means an entry point must use the same denormal execution mode for 16-bit and 64-bit floats (VkShaderFloatControlsIndependence). #2977 enabled DenormPreserve 64 only with independence ALL and noted that "the backend does not yet emit coupled execution modes for 32_BIT_ONLY or NONE". float16DenormPreserve has the same ALL condition. RADV reports 32_BIT_ONLY, so on RADV today:

  • f64 denormals are left to the driver (no DenormPreserve 64), and agc_driver_f64_fma_subnormals checks the result only where the driver keeps them;
  • v_cvt_f32_f16 and the other f16 -> f32 reads use the decoded integer emulation instead of UnpackHalf2x16, because that path needs float16DenormPreserve;
  • the native f32 -> f16 conversions still declare DenormPreserve 16 by themselves (their condition, Float16 with RoundingModeRTE and DenormPreserve 16 supported, does not look at the independence), so a module with both those conversions and f64 code declares a 16-bit mode with no 64-bit one. None of the 78 GTA V compute modules below has both.

RDNA has a single f16/f64 denormal field in FLOAT_MODE (bits 7:6), so preserving both together is also the console's shape.

Change:

  • VulkanDevice: with Float64 enabled, 32_BIT_ONLY, shaderDenormPreserveFloat16 and shaderDenormPreserveFloat64, the device sets SpirvTarget::coupledF16F64Denorms, float16DenormPreserve and float64DenormPreserve, and logs [float-controls] f16 and f64 denormals share one mode on this device: DenormPreserve 16 and 64 are declared together. With independence ALL or NONE, or a missing preserve property, nothing changes.
  • Backend: EmitF16DenormPreserve and the new EmitF64DenormPreserve each declare the other when the flag is set. They are the only places that emit the 16-bit and 64-bit DenormPreserve modes (git grep ExecutionModeDenorm), so every module declares both or neither.
  • The flag is in the recompile cache key and in recompile requests (serializer format 56, after #11351's f16 conversion NaN flags of format 54 and #9020's color target merge fields of format 55; older requests read it as false). agc_shader_replay --unpreserved-f16-f64-denorms / --coupled-f16-f64-denorms replay a saved request in the two shapes, so the size numbers below can be reproduced from requests saved on any GPU.

Landing order with #11351 (agreed on #11351): #11351 landed with format 54, and #9020 then took 55. This PR now takes 56 (57 is the first unsupported version), with its flag written after #11351's two.

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), on main 48c160c58b.

  • SPIR-V checks (no device needed):

    • agc_driver_f64_denorm_preserve_spirv: an f64 shader declares DenormPreserve 64 and not 16 with independent modes, and both with coupledF16F64Denorms;
    • agc_float16_conversion: a native f16 conversion declares DenormPreserve 16 and not 64 with independent modes, and both when coupled.

    With the two coupling lines removed from SpirvModuleEmitter.cpp, both tests fail; with them, both pass.

  • Serializer: request_serializer round-trips the flag both ways, reads a format 55 request as false and rejects a truncated one; agc_shader_memory pins format 56.

  • Focused tests, main a7e789e5b5 vs this PR (09ee9542f8), 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 (100 Insert instance layer "VK_LAYER_KHRONOS_validation" lines per run, no was not found but was requested by env var VK_INSTANCE_LAYERS), ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1:

    GPU main this PR VUID- lines
    RTX 4090 (NVIDIA 616.92) 113/113 113/113 0 / 0
    UHD 770 (Intel 101.6129) 112/113, 1 failed 112/113, 1 failed 0 / 0

    Neither device reports 32_BIT_ONLY, so neither takes the new path: this run is the no-change control. On Intel the f64 tests skip (no Float64). The one failure is agc_driver_packed_float_blend, from #9020, on both trees.

  • RADV, Radeon 860M (Mesa 26.2.5, Fedora 44, GCC 13.3), by @Lander0606, on the same change behind a switch (test/coupled-f16-f64-denorms fe10c0205c, on top of #11351), validation layer 1.4.341, ctest -j1 -V -R "^agc.*(f16|float16|f64|convert|pack|interpolation)" -E "^agc_driver_bda_device$":

    without the coupling with the coupling
    focused set, with the layer (3 runs) 76/76 76/76
    full ^agc (-j8) 1031 of 1032 1031 of 1032

    Every device creation logs the share one mode line. The 13 f64 tests of the set pass with DenormPreserve 64 on (f64_fma_subnormals, f64_rounding_denormal_modes, div_fixup_f64_denormal_modes, ...), and so do interpolation_modes and pixel_exec_interpolation. The only full-suite failure is agc_driver_tessellation (the Mesa 26.2.5 crash), on both. No VUID- line, but @Lander0606 also checked that the layer does not flag an uncoupled declaration (VUID-RuntimeSpirv-denormBehaviorIndependence-06289 stayed silent with the f64 half removed), which is why the two SPIR-V checks above test the coupling directly. On lavapipe (denormBehaviorIndependence not 32_BIT_ONLY) the flag stays off. A rerun on this branch is offered.

  • Size, Grand Theft Auto V compute shaders (the requests of #11265 saved on the RTX 4090, replayed with agc_shader_replay --spv; 78 of them recompile on current main):

    shape words change
    --unpreserved-f16-f64-denorms (a 32_BIT_ONLY device on main) 1,348,484
    --coupled-f16-f64-denorms (the same device with this PR) 1,333,848 -1.1 %
    as saved on the RTX 4090 (ALL, unchanged by this PR) 1,336,356

    0x25b393000 (RCAS) 102,227 -> 90,517 (-11.5 %), 0x25b433400 112,824 -> 110,242 (-2.3 %), 0x25b3c4e00 -0.6 %, 0x25b3c3a00 -1.0 %; modules that change nothing else gain the 4 words of the second mode. Both coupled modules checked with spirv-val --target-env vulkan1.3 (0x25b393000: 16 and 64; 0x25b433400, which has Float64: 64 and 16).

What is and is not measured. The path is taken only on 32_BIT_ONLY devices (RADV here). Measured: module shape, size and test correctness on RADV. Not measured: frame time or pipeline creation on such a device (no title runs on the 860M). Not tested: AMD's Windows driver, MoltenVK.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none (#11351 merged; this PR is at format 56)
  • Fixes: none
  • Unblocks: none
  • 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 on the switched version
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

https://claude.ai/code/session_01PHJtpJ4hw3KWJhobipK8ia

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5021234169 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11483). Originally posted by [tibzejoker](https://github.com/tibzejoker) on 2026-10-26T16:46:42Z. --- ### What Part of #11183. On a device whose f16 and f64 denormal modes are tied together, both are now preserved, and every module that declares `DenormPreserve` for one of the two widths declares it for the other. Vulkan's `denormBehaviorIndependence` = `VK_SHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY` means an entry point must use the same denormal execution mode for 16-bit and 64-bit floats ([VkShaderFloatControlsIndependence](https://docs.vulkan.org/refpages/latest/refpages/source/VkShaderFloatControlsIndependence.html)). #2977 enabled `DenormPreserve` 64 only with independence `ALL` and noted that "the backend does not yet emit coupled execution modes for `32_BIT_ONLY` or `NONE`". `float16DenormPreserve` has the same `ALL` condition. RADV reports `32_BIT_ONLY`, so on RADV today: - f64 denormals are left to the driver (no `DenormPreserve` 64), and `agc_driver_f64_fma_subnormals` checks the result only where the driver keeps them; - `v_cvt_f32_f16` and the other f16 -> f32 reads use the decoded integer emulation instead of `UnpackHalf2x16`, because that path needs `float16DenormPreserve`; - the native f32 -> f16 conversions still declare `DenormPreserve` 16 by themselves (their condition, `Float16` with `RoundingModeRTE` and `DenormPreserve` 16 supported, does not look at the independence), so a module with both those conversions and f64 code declares a 16-bit mode with no 64-bit one. None of the 78 GTA V compute modules below has both. RDNA has a single f16/f64 denormal field in `FLOAT_MODE` (bits 7:6), so preserving both together is also the console's shape. Change: - `VulkanDevice`: with Float64 enabled, `32_BIT_ONLY`, `shaderDenormPreserveFloat16` and `shaderDenormPreserveFloat64`, the device sets `SpirvTarget::coupledF16F64Denorms`, `float16DenormPreserve` and `float64DenormPreserve`, and logs `[float-controls] f16 and f64 denormals share one mode on this device: DenormPreserve 16 and 64 are declared together`. With independence `ALL` or `NONE`, or a missing preserve property, nothing changes. - Backend: `EmitF16DenormPreserve` and the new `EmitF64DenormPreserve` each declare the other when the flag is set. They are the only places that emit the 16-bit and 64-bit `DenormPreserve` modes (`git grep ExecutionModeDenorm`), so every module declares both or neither. - The flag is in the recompile cache key and in recompile requests (serializer format 56, after #11351's f16 conversion NaN flags of format 54 and #9020's color target merge fields of format 55; older requests read it as false). `agc_shader_replay --unpreserved-f16-f64-denorms` / `--coupled-f16-f64-denorms` replay a saved request in the two shapes, so the size numbers below can be reproduced from requests saved on any GPU. **Landing order with #11351** (agreed on #11351): #11351 landed with format 54, and #9020 then took 55. This PR now takes **56** (57 is the first unsupported version), with its flag written after #11351's two. ### 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), on `main` `48c160c58b`. - **SPIR-V checks (no device needed)**: - `agc_driver_f64_denorm_preserve_spirv`: an f64 shader declares `DenormPreserve` 64 and not 16 with independent modes, and both with `coupledF16F64Denorms`; - `agc_float16_conversion`: a native f16 conversion declares `DenormPreserve` 16 and not 64 with independent modes, and both when coupled. With the two coupling lines removed from `SpirvModuleEmitter.cpp`, both tests fail; with them, both pass. - **Serializer**: `request_serializer` round-trips the flag both ways, reads a format 55 request as false and rejects a truncated one; `agc_shader_memory` pins format 56. - **Focused tests, `main` `a7e789e5b5` vs this PR (`09ee9542f8`)**, `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` (100 `Insert instance layer "VK_LAYER_KHRONOS_validation"` lines per run, no `was not found but was requested by env var VK_INSTANCE_LAYERS`), `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1`: | GPU | `main` | this PR | `VUID-` lines | |---|---|---|---| | RTX 4090 (NVIDIA 616.92) | 113/113 | 113/113 | 0 / 0 | | UHD 770 (Intel 101.6129) | 112/113, 1 failed | 112/113, 1 failed | 0 / 0 | Neither device reports `32_BIT_ONLY`, so neither takes the new path: this run is the no-change control. On Intel the f64 tests skip (no Float64). The one failure is `agc_driver_packed_float_blend`, from #9020, on both trees. - **RADV, Radeon 860M (Mesa 26.2.5, Fedora 44, GCC 13.3), by @Lander0606**, on the same change behind a switch (`test/coupled-f16-f64-denorms` `fe10c0205c`, on top of #11351), validation layer 1.4.341, `ctest -j1 -V -R "^agc.*(f16|float16|f64|convert|pack|interpolation)" -E "^agc_driver_bda_device$"`: | | without the coupling | with the coupling | |---|---|---| | focused set, with the layer (3 runs) | 76/76 | 76/76 | | full `^agc` (`-j8`) | 1031 of 1032 | 1031 of 1032 | Every device creation logs the `share one mode` line. The 13 f64 tests of the set pass with `DenormPreserve` 64 on (`f64_fma_subnormals`, `f64_rounding_denormal_modes`, `div_fixup_f64_denormal_modes`, ...), and so do `interpolation_modes` and `pixel_exec_interpolation`. The only full-suite failure is `agc_driver_tessellation` (the Mesa 26.2.5 crash), on both. No `VUID-` line, but @Lander0606 also checked that the layer does **not** flag an uncoupled declaration (`VUID-RuntimeSpirv-denormBehaviorIndependence-06289` stayed silent with the f64 half removed), which is why the two SPIR-V checks above test the coupling directly. On lavapipe (`denormBehaviorIndependence` not `32_BIT_ONLY`) the flag stays off. A rerun on this branch is offered. - **Size, Grand Theft Auto V compute shaders** (the requests of #11265 saved on the RTX 4090, replayed with `agc_shader_replay --spv`; 78 of them recompile on current `main`): | shape | words | change | |---|---|---| | `--unpreserved-f16-f64-denorms` (a `32_BIT_ONLY` device on `main`) | 1,348,484 | | | `--coupled-f16-f64-denorms` (the same device with this PR) | 1,333,848 | -1.1 % | | as saved on the RTX 4090 (`ALL`, unchanged by this PR) | 1,336,356 | | `0x25b393000` (RCAS) 102,227 -> 90,517 (-11.5 %), `0x25b433400` 112,824 -> 110,242 (-2.3 %), `0x25b3c4e00` -0.6 %, `0x25b3c3a00` -1.0 %; modules that change nothing else gain the 4 words of the second mode. Both coupled modules checked with `spirv-val --target-env vulkan1.3` (`0x25b393000`: 16 and 64; `0x25b433400`, which has Float64: 64 and 16). **What is and is not measured.** The path is taken only on `32_BIT_ONLY` devices (RADV here). Measured: module shape, size and test correctness on RADV. Not measured: frame time or pipeline creation on such a device (no title runs on the 860M). Not tested: AMD's Windows driver, 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 (#11351 merged; this PR is at format 56) - [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 on the switched version - [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 16:49:04 +00:00 (Migrated from github.com)

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

Review: DISMISSED


I checked the float-control gating and paired emission, the recompile cache key, and the serializer’s format-gated backward compatibility. The submitted Windows and RADV results are detailed, and the automated policy checks pass. The branch is 87 commits behind current (merge base ); CONTRIBUTING requires keeping branches current. Please rebase onto current , resolve the serializer-version interaction with open #11351 if needed, and rerun the focused tests on the rebased head. I’ll review the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5655759875 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11483#pullrequestreview-5655759875). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T16:49:04Z. **Review:** DISMISSED --- I checked the float-control gating and paired emission, the recompile cache key, and the serializer’s format-gated backward compatibility. The submitted Windows and RADV results are detailed, and the automated policy checks pass. The branch is 87 commits behind current (merge base ); CONTRIBUTING requires keeping branches current. Please rebase onto current , resolve the serializer-version interaction with open #11351 if needed, and rerun the focused tests on the rebased head. I’ll review the new head.
MarcZX10 commented 2026-10-26 16:49:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T16:49:16Z.

Review: DISMISSED


I checked the float-control gating and paired DenormPreserve emission, the recompile cache key, and the serializer’s format-gated backward compatibility. The submitted Windows and RADV results are detailed, and the automated policy checks pass. The branch is 87 commits behind current upstream/main (merge base e476a8ab3); CONTRIBUTING requires keeping branches current. Please rebase onto current main, resolve the serializer-version interaction with open #11351 if needed, and rerun the focused tests on the rebased head. I’ll review the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5655762591 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11483#pullrequestreview-5655762591). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T16:49:16Z. **Review:** DISMISSED --- I checked the float-control gating and paired DenormPreserve emission, the recompile cache key, and the serializer’s format-gated backward compatibility. The submitted Windows and RADV results are detailed, and the automated policy checks pass. The branch is 87 commits behind current upstream/main (merge base e476a8ab3); CONTRIBUTING requires keeping branches current. Please rebase onto current main, resolve the serializer-version interaction with open #11351 if needed, and rerun the focused tests on the rebased head. I’ll review the new head.
MarcZX10 commented 2026-10-26 17:21:12 +00:00 (Migrated from github.com)

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

Review: APPROVED


Correction to my earlier review: its formatting omitted the branch refs. I fetched the current PR head 406bf3fdc2d5 and verified it is 2 commits ahead and 0 behind current upstream/main (48c160c58b58); the merge is clean. The stale-base concern is resolved.

Thanks for clarifying the serializer overlap with #11351. I agree those are independent changes that only need sequential serializer version numbers, so Depends on: none is appropriate.

I reviewed the coupled-mode device gating, cache-key and request serialization propagation, and paired SPIR-V execution-mode emission. The Vulkan rule for 32_BIT_ONLY requires identical denormal modes for 16-bit and 64-bit types; this change emits both when the device supports both and the shader uses either. The current policy checks pass. The PR reports focused NVIDIA results and a separate RADV run; I did not rerun the GPU tests locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5656180788 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11483#pullrequestreview-5656180788). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T17:21:12Z. **Review:** APPROVED --- Correction to my earlier review: its formatting omitted the branch refs. I fetched the current PR head `406bf3fdc2d5` and verified it is 2 commits ahead and 0 behind current `upstream/main` (`48c160c58b58`); the merge is clean. The stale-base concern is resolved. Thanks for clarifying the serializer overlap with #11351. I agree those are independent changes that only need sequential serializer version numbers, so `Depends on: none` is appropriate. I reviewed the coupled-mode device gating, cache-key and request serialization propagation, and paired SPIR-V execution-mode emission. The Vulkan rule for `32_BIT_ONLY` requires identical denormal modes for 16-bit and 64-bit types; this change emits both when the device supports both and the shader uses either. The current policy checks pass. The PR reports focused NVIDIA results and a separate RADV run; I did not rerun the GPU tests locally.
THEMANnt commented 2026-10-26 17:35:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-26T17:35:56Z.

Review: APPROVED


Reviewed 406bf3fdc2d5 against 48c160c58b58. No actionable findings.
The device gate requires Float64, Vulkan 32_BIT_ONLY, and preserve support for both widths. Either backend path that emits DenormPreserve also emits the paired 16/64 mode. The coupled flag is carried through the cache key and request format 47; older format 46 requests default it to false.
Validation: GCC 15.3.0, CMake 4.3.3 and Ninja 1.13.2 built libSceAgcDriver, shader_recompiler_agc_driver, the serializer/f16/f64 tests and agc_shader_replay. Focused CTest passed 4/4; replay fixture tests passed 2/2. Both replay mode switches materialized the fixture. A review-only cache-key assertion passed; removing the cache-key append made it fail as expected. On the exact-head Actions run, eligibility passed while Windows, Linux, relinker, ASan, register-context and write-watch jobs were skipped.
The local build used a cached base integration (035ac96) with the PR source overlay, not a full checkout of the pinned base/head pair. No local 32_BIT_ONLY GPU was exercised; the PR's RADV results remain author-reported.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5656367751 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11483#pullrequestreview-5656367751). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-26T17:35:56Z. **Review:** APPROVED --- Reviewed `406bf3fdc2d5` against `48c160c58b58`. No actionable findings. The device gate requires Float64, Vulkan `32_BIT_ONLY`, and preserve support for both widths. Either backend path that emits DenormPreserve also emits the paired 16/64 mode. The coupled flag is carried through the cache key and request format 47; older format 46 requests default it to false. **Validation:** GCC 15.3.0, CMake 4.3.3 and Ninja 1.13.2 built `libSceAgcDriver`, `shader_recompiler_agc_driver`, the serializer/f16/f64 tests and `agc_shader_replay`. Focused CTest passed 4/4; replay fixture tests passed 2/2. Both replay mode switches materialized the fixture. A review-only cache-key assertion passed; removing the cache-key append made it fail as expected. On the exact-head Actions run, eligibility passed while Windows, Linux, relinker, ASan, register-context and write-watch jobs were skipped. The local build used a cached base integration (`035ac96`) with the PR source overlay, not a full checkout of the pinned base/head pair. No local `32_BIT_ONLY` GPU was exercised; the PR's RADV results remain author-reported.
MarcZX10 commented 2026-10-29 06:02:33 +00:00 (Migrated from github.com)

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

Review: DISMISSED


Re-checked — changes requested

What I checked

  • Reviewed exact head b81b8a12ff1e0b0ccaae3c7e11baebaac54b5e18 against fetched main 2960e9a6e7.
  • The author reports exact-head SPIR-V, serializer, and paired GPU tests on the earlier pinned baseline, including RADV validation-layer results. 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 #11351 conflicts in ShaderMemory.cpp, ShaderReplay.cpp, RequestSerializer.cpp, and RequestSerializerTests.cpp.

Blocking integration items

The branch's latest tested main is 319621ba2e, 232 commits behind fetched current main. Please refresh it onto current main, resolve the reported conflicts, and rerun the focused shader/SPIR-V and serializer tests on that integration head. The PR and #11351 both use the request-format version slot; agree which one lands first and record the corresponding Depends on order/version update in both PRs as required by CONTRIBUTING.md.

The older test results are useful evidence, but they do not validate the current conflicting integration. I cannot renew the earlier approval on this head until the rebase, order, and focused rerun are complete.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693510420 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11483#pullrequestreview-5693510420). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T06:02:33Z. **Review:** DISMISSED --- # Re-checked — changes requested ## What I checked - Reviewed exact head `b81b8a12ff1e0b0ccaae3c7e11baebaac54b5e18` against fetched `main` `2960e9a6e7`. - The author reports exact-head SPIR-V, serializer, and paired GPU tests on the earlier pinned baseline, including RADV validation-layer results. 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 #11351 conflicts in `ShaderMemory.cpp`, `ShaderReplay.cpp`, `RequestSerializer.cpp`, and `RequestSerializerTests.cpp`. ## Blocking integration items The branch's latest tested main is `319621ba2e`, 232 commits behind fetched current `main`. Please refresh it onto current `main`, resolve the reported conflicts, and rerun the focused shader/SPIR-V and serializer tests on that integration head. The PR and #11351 both use the request-format version slot; agree which one lands first and record the corresponding `Depends on` order/version update in both PRs as required by `CONTRIBUTING.md`. The older test results are useful evidence, but they do not validate the current conflicting integration. I cannot renew the earlier approval on this head until the rebase, order, and focused rerun are complete.
MarcZX10 commented 2026-10-29 11:12:32 +00:00 (Migrated from github.com)

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

Review: DISMISSED


Re-checked — changes requested

The update resolves the earlier serializer/replay concerns and provides current-head Vulkan validation runs on an RTX 4090 and UHD 770, with the layer confirmed loaded and no new VUID- lines. Current main is now ba5b5330b3; the PR head df510d2219 does not include it, and the intervening change touches the shader debt file this PR edits. Please integrate current main and rerun conventions on the resulting tree. Since the report says the intervening change is documentation-only and the tested source is unchanged, the existing GPU results can stand if the refreshed diff confirms that. Keep the declared stack ordering intact.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5696756999 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11483#pullrequestreview-5696756999). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T11:12:32Z. **Review:** DISMISSED --- ## Re-checked — changes requested The update resolves the earlier serializer/replay concerns and provides current-head Vulkan validation runs on an RTX 4090 and UHD 770, with the layer confirmed loaded and no new `VUID-` lines. Current `main` is now `ba5b5330b3`; the PR head `df510d2219` does not include it, and the intervening change touches the shader debt file this PR edits. Please integrate current main and rerun conventions on the resulting tree. Since the report says the intervening change is documentation-only and the tested source is unchanged, the existing GPU results can stand if the refreshed diff confirms that. Keep the declared stack ordering intact.
MarcZX10 commented 2026-10-29 20:01:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T20:01:19Z.

Review: APPROVED


Re-checked — new head, looks good

The rebased head resolves the current-main integration finding, preserves the serializer/replay changes, and has refreshed author-reported GPU results with no new validation IDs.

What I ran

  • Exact PR head: 80cb2cd3acfdcde0abd374bc3f8886b5bd23e092.
  • Current base: main 420b6a064eadaa7c5e50b080c7fad59c41150b4b; merge preview is clean (97f6e7e7826a2d278e1bad3d108f26170528ca44).
  • The prior reported test base 184afa49adce16e298c47d136706fd2356198852 differs from current main only in five unrelated relinker/usage paths; none of the PR's 17 changed paths changed in between.
  • Environment: Linux 6.1.0-54-amd64 x86_64, Git 2.39.5, Python 3.11.2. I did not run a local C++ build or GPU tests; available disk space is insufficient for a build.
  • Commands:
git merge-tree --write-tree upstream/main refs/remotes/review/pr-11483
git diff --check upstream/main...refs/remotes/review/pr-11483
python3 tools/check_conventions.py --base upstream/main --head refs/remotes/review/pr-11483
git diff --name-status 184afa49adce16e298c47d136706fd2356198852 upstream/main -- <the 17 PR paths>

Results

Check Result
Current-main merge preview Clean; tree 97f6e7e7826a2d278e1bad3d108f26170528ca44.
git diff --check Passed; no output.
Conventions Passed.
Intervening-main path comparison None of the PR's changed paths changed between the reported test base and current main.
Author-reported focused GPU tests Exact head 80cb2cd3ac: RTX 4090, 89/89; UHD 770, 88/89 with the same agc_driver_packed_unorm4444_multisample_partial_write failure on main; 0 VUID- lines on either. request_serializer, agc_shader_memory, and the coupled f16/f64 checks passed on both GPUs.
Hosted checks Windows, Ubuntu relinker, relinker ASan, eligibility, conventions, labels and report pass; Linux product job is skipped; two macOS relinker jobs remain queued.
Unedited local output
$ git merge-tree --write-tree upstream/main refs/remotes/review/pr-11483
97f6e7e7826a2d278e1bad3d108f26170528ca44
$ python3 tools/check_conventions.py --base upstream/main --head refs/remotes/review/pr-11483
All conventions checks passed.
$ git diff --name-status 184afa49adce16e298c47d136706fd2356198852 upstream/main -- <the 17 PR paths>
(no output)

Negative control

Assertion Change to code under test Did the new test fail?
Paired baseline for the focused serializer/SPIR-V behavior Author ran unchanged main 184afa49adce and the PR head on each GPU; this is a baseline comparison, not a mutation. No new failure reported; UHD 770's one failure is reported on both trees. No mutation control was run.

Findings

Blocking

None found on this exact head.

Non-blocking

#11351 remains open and also currently targets serializer format 50. The PR description records the agreed order: if #11351 lands first, this PR will move to 51 and rerun the focused set. Recheck that exact changed head before approval of any subsequent revision.

Sources

Not verified

I did not build or run the C++ tests locally, independently repeat the NVIDIA/Intel runs, test the console, or wait for the queued macOS jobs. The GPU results above are author-reported.

To get this to a good state

No change is requested on the reviewed head. Keep the stated serializer landing order; if #11351 lands first and this PR moves to format 51, I will review and rerun the focused commands on that new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5704169630 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11483#pullrequestreview-5704169630). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T20:01:19Z. **Review:** APPROVED --- # Re-checked — new head, looks good The rebased head resolves the current-main integration finding, preserves the serializer/replay changes, and has refreshed author-reported GPU results with no new validation IDs. ## What I ran - Exact PR head: `80cb2cd3acfdcde0abd374bc3f8886b5bd23e092`. - Current base: `main` `420b6a064eadaa7c5e50b080c7fad59c41150b4b`; merge preview is clean (`97f6e7e7826a2d278e1bad3d108f26170528ca44`). - The prior reported test base `184afa49adce16e298c47d136706fd2356198852` differs from current `main` only in five unrelated relinker/usage paths; none of the PR's 17 changed paths changed in between. - Environment: Linux 6.1.0-54-amd64 x86_64, Git 2.39.5, Python 3.11.2. I did not run a local C++ build or GPU tests; available disk space is insufficient for a build. - Commands: ```sh git merge-tree --write-tree upstream/main refs/remotes/review/pr-11483 git diff --check upstream/main...refs/remotes/review/pr-11483 python3 tools/check_conventions.py --base upstream/main --head refs/remotes/review/pr-11483 git diff --name-status 184afa49adce16e298c47d136706fd2356198852 upstream/main -- <the 17 PR paths> ``` ## Results | Check | Result | |---|---| | Current-main merge preview | Clean; tree `97f6e7e7826a2d278e1bad3d108f26170528ca44`. | | `git diff --check` | Passed; no output. | | Conventions | Passed. | | Intervening-main path comparison | None of the PR's changed paths changed between the reported test base and current `main`. | | Author-reported focused GPU tests | Exact head `80cb2cd3ac`: RTX 4090, 89/89; UHD 770, 88/89 with the same `agc_driver_packed_unorm4444_multisample_partial_write` failure on main; 0 `VUID-` lines on either. `request_serializer`, `agc_shader_memory`, and the coupled f16/f64 checks passed on both GPUs. | | Hosted checks | Windows, Ubuntu relinker, relinker ASan, eligibility, conventions, labels and report pass; Linux product job is skipped; two macOS relinker jobs remain queued. | <details> <summary>Unedited local output</summary> ```text $ git merge-tree --write-tree upstream/main refs/remotes/review/pr-11483 97f6e7e7826a2d278e1bad3d108f26170528ca44 $ python3 tools/check_conventions.py --base upstream/main --head refs/remotes/review/pr-11483 All conventions checks passed. $ git diff --name-status 184afa49adce16e298c47d136706fd2356198852 upstream/main -- <the 17 PR paths> (no output) ``` </details> ## Negative control | Assertion | Change to code under test | Did the new test fail? | |---|---|---| | Paired baseline for the focused serializer/SPIR-V behavior | Author ran unchanged `main` `184afa49adce` and the PR head on each GPU; this is a baseline comparison, not a mutation. | No new failure reported; UHD 770's one failure is reported on both trees. No mutation control was run. | ## Findings ### Blocking None found on this exact head. ### Non-blocking #11351 remains open and also currently targets serializer format 50. The PR description records the agreed order: if #11351 lands first, this PR will move to 51 and rerun the focused set. Recheck that exact changed head before approval of any subsequent revision. ## Sources - [PR head](https://github.com/boykopovar/AnyPS5/commit/80cb2cd3acfdcde0abd374bc3f8886b5bd23e092) - [Current main](https://github.com/boykopovar/AnyPS5/tree/420b6a064eadaa7c5e50b080c7fad59c41150b4b) - [Author's current-head GPU report](https://github.com/boykopovar/AnyPS5/pull/11483#issuecomment-6506771301) - [Open serializer-order PR #11351](https://github.com/boykopovar/AnyPS5/pull/11351) ## Not verified I did not build or run the C++ tests locally, independently repeat the NVIDIA/Intel runs, test the console, or wait for the queued macOS jobs. The GPU results above are author-reported. ## To get this to a good state No change is requested on the reviewed head. Keep the stated serializer landing order; if #11351 lands first and this PR moves to format 51, I will review and rerun the focused commands on that new head.
XairRrR commented 2026-11-03 14:31:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T14:31:43Z.

Review: DISMISSED


Reviewed — changes requested

This pull request does not merge cleanly into main (4f41f4c375): head 80cb2cd3acfdcde0abd374bc3f8886b5bd23e092 conflicts in

  • core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
  • core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
  • core/shader/recompiler/tests/RequestSerializerTests.cpp
  • docs/dev/debt/shader.md

Please rebase it onto current main. I will review the change once it merges cleanly.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5753961882 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11483#pullrequestreview-5753961882). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T14:31:43Z. **Review:** DISMISSED --- # Reviewed — changes requested This pull request does not merge cleanly into `main` (4f41f4c375f5abb487dbd184fbc150f31994d762): head 80cb2cd3acfdcde0abd374bc3f8886b5bd23e092 conflicts in - `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` - `core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp` - `core/shader/recompiler/tests/RequestSerializerTests.cpp` - `docs/dev/debt/shader.md` Please rebase it onto current `main`. I will review the change once it merges cleanly. <!-- anyps5-bots job=2262 head=80cb2cd3acfdcde0abd374bc3f8886b5bd23e092 -->
XairRrR commented 2026-11-03 18:26:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T18:26:42Z.

Review: DISMISSED


Reviewed — changes requested

This pull request does not merge cleanly into main (1e658521a0): head 80cb2cd3acfdcde0abd374bc3f8886b5bd23e092 conflicts in

  • core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
  • core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
  • core/shader/recompiler/tests/RequestSerializerTests.cpp
  • docs/dev/debt/shader.md

Please rebase it onto current main. I will review the change once it merges cleanly.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5757474910 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11483#pullrequestreview-5757474910). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T18:26:42Z. **Review:** DISMISSED --- # Reviewed — changes requested This pull request does not merge cleanly into `main` (1e658521a0a599872612bb91949311e2956b5283): head 80cb2cd3acfdcde0abd374bc3f8886b5bd23e092 conflicts in - `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` - `core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp` - `core/shader/recompiler/tests/RequestSerializerTests.cpp` - `docs/dev/debt/shader.md` Please rebase it onto current `main`. I will review the change once it merges cleanly. <!-- anyps5-bots job=3511 head=80cb2cd3acfdcde0abd374bc3f8886b5bd23e092 -->
MarcZX10 commented 2026-11-14 07:23:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T07:23:26Z.

Review: APPROVED


Reviewed — looks good

The reviewed change at a1c260d762d3113a9bc7555748d33e8c637f63c3 consistently enables and emits both denormal execution modes for coupled f16/f64 devices; no checks were run in this review.

What I ran

No commands were run. I inspected the prepared diff and targeted changed source ranges with the provided reader.

Results

Check Result Note
Diff and source review passed Coupled mode and serialization paths inspected
Tests not run Author-reported results were not independently run

Findings

Blocking

None.

Non-blocking

None.

Not verified

Tests and device behavior were not independently verified. Read: VulkanDevice.cpp, Float16Conversion.cpp, ShaderMemory.cpp (changed ranges), F64FmaSubnormals.cpp, ShaderReplay.cpp, CacheKey.hpp, RequestSerializer.cpp, Recompiler.cpp, Recompiler.hpp, SpirvEmitter.hpp, SpirvEmitterHelpers.hpp (diff only), SpirvEmitterState.hpp, SpirvEmitter.cpp, SpirvModuleSetup.cpp, SpirvModuleEmitter.cpp, RequestSerializerTests.cpp (diff only), and shader.md. No changed files were excluded from review; full text was not read for VulkanDevice.cpp and ShaderMemory.cpp because they exceeded the prepared bundle limits.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5902634224 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11483#pullrequestreview-5902634224). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T07:23:26Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed change at `a1c260d762d3113a9bc7555748d33e8c637f63c3` consistently enables and emits both denormal execution modes for coupled f16/f64 devices; no checks were run in this review. ## What I ran No commands were run. I inspected the prepared diff and targeted changed source ranges with the provided reader. ## Results | Check | Result | Note | |---|---|---| | Diff and source review | passed | Coupled mode and serialization paths inspected | | Tests | not run | Author-reported results were not independently run | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified Tests and device behavior were not independently verified. Read: `VulkanDevice.cpp`, `Float16Conversion.cpp`, `ShaderMemory.cpp` (changed ranges), `F64FmaSubnormals.cpp`, `ShaderReplay.cpp`, `CacheKey.hpp`, `RequestSerializer.cpp`, `Recompiler.cpp`, `Recompiler.hpp`, `SpirvEmitter.hpp`, `SpirvEmitterHelpers.hpp` (diff only), `SpirvEmitterState.hpp`, `SpirvEmitter.cpp`, `SpirvModuleSetup.cpp`, `SpirvModuleEmitter.cpp`, `RequestSerializerTests.cpp` (diff only), and `shader.md`. No changed files were excluded from review; full text was not read for `VulkanDevice.cpp` and `ShaderMemory.cpp` because they exceeded the prepared bundle limits. ## To get this to a good state Nothing is required.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.

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

git switch 'main'
git merge --no-ff 'upstream-pr/11483'
git switch 'upstream-pr/11483'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/11483'
git switch 'upstream-pr/11483'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/11483'
git switch 'main'
git merge --squash 'upstream-pr/11483'
git switch 'main'
git merge --ff-only 'upstream-pr/11483'
git switch 'main'
git merge 'upstream-pr/11483'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!11483
No description provided.