Skip to content

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

Open
tibzejoker wants to merge 3 commits into
boykopovar:mainfrom
tibzejoker:perf/coupled-f16-f64-denorms
Open

tibzejoker wants to merge 3 commits into
boykopovar:mainfrom
tibzejoker:perf/coupled-f16-f64-denorms

Conversation

@tibzejoker

@tibzejoker tibzejoker commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

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 perf(shader): keep native f16 conversion NaN results when a startup probe matches RDNA #11351's f16 conversion NaN flags of format 54 and feat(agc): blend into 11_11_10 float color targets in the pixel shader #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 feat(agc): blend into 11_11_10 float color targets in the pixel shader #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 perf(shader): keep native f16 conversion NaN results when a startup probe matches RDNA #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 perf(shader): compute v_pk_fma_f16 and v_pk_fmac_f16 with OpFmaKHR #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 (perf(shader): keep native f16 conversion NaN results when a startup probe matches RDNA #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

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 e476a8a); 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.

@tibzejoker
tibzejoker force-pushed the perf/coupled-f16-f64-denorms branch from 95a385d to 406bf3f Compare October 26, 2026 17:09
@tibzejoker

Copy link
Copy Markdown
Contributor Author

@MarcZX10 rebased: head 406bf3fdc2 on current main 48c160c58b, no conflict.

  • Serializer: main is still at format 46, so this PR stays at 47. perf(shader): keep native f16 conversion NaN results when a startup probe matches RDNA #11351 also uses 47. Whichever of the two merges second moves to 48 on its rebase, with the same test pins. Neither depends on the other.
  • Rerun on this exact head with the validation layer, main 48c160c58b vs the PR: RTX 4090 85/85 vs 85/85; UHD 770 83/85 vs 83/85, the same 2 unorm4444 failures on both; 0 VUID- lines. request_serializer, agc_shader_memory, agc_float16_conversion and agc_driver_f64_denorm_preserve_spirv pass.
  • Sizes recounted on this head: RADV shape 1,348,484 -> 1,333,848 words (-1.1 %), RCAS -11.5 %. The body is updated.

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1395 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4448 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4847 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5609 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 5925 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.hpp
PR 6188 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.hpp
PR 6280 docs/dev/debt/shader.md
PR 6412 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
docs/dev/debt/shader.md
PR 6488 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
docs/dev/debt/shader.md
PR 6924 core/shader/recompiler/Recompiler.cpp
docs/dev/debt/shader.md
PR 7002 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7085 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 7392 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
docs/dev/debt/shader.md
PR 7642 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 7643 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7684 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
docs/dev/debt/shader.md
PR 7689 core/shader/recompiler/Recompiler.hpp
PR 9289 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9356 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 9387 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
docs/dev/debt/shader.md
PR 9508 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 9633 docs/dev/debt/shader.md
PR 9748 core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 9749 docs/dev/debt/shader.md
PR 9790 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
docs/dev/debt/shader.md
PR 9852 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 9897 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 9969 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
docs/dev/debt/shader.md
PR 10193 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 10351 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 10359 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 10867 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
PR 11435 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 11551 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 12324 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
PR 12828 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 12944 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
docs/dev/debt/shader.md
PR 13148 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 13863 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 13920 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 13928 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 13929 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 14032 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 14217 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 14218 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 14260 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 14853 docs/dev/debt/shader.md
PR 14871 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
docs/dev/debt/shader.md
PR 14944 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 15343 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 15488 docs/dev/debt/shader.md
PR 15548 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 15555 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
docs/dev/debt/shader.md
PR 16260 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 16321 docs/dev/debt/shader.md
PR 16391 core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 16415 docs/dev/debt/shader.md
PR 16571 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/shader.md
PR 16796 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 16812 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 16814 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 16831 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 16935 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 16953 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 17056 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 17606 docs/dev/debt/shader.md
PR 17611 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 17943 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 18029 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 18082 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 18106 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
docs/dev/debt/shader.md
PR 18107 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
docs/dev/debt/shader.md
PR 18173 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 18241 docs/dev/debt/shader.md
PR 18829 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 19096 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 19429 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 19479 core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 19557 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 19710 core/shader/recompiler/Recompiler.hpp
PR 19821 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 19852 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 20010 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 20030 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 20111 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 20130 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 20131 docs/dev/debt/shader.md
PR 20153 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 20172 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 20248 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 20518 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 20519 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 20891 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 20944 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 21211 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 21240 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 21303 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 21745 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 21763 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 21776 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 21923 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 22001 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 22025 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 22029 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 22034 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
PR 22071 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 22190 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 22251 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 22328 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 22424 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 22439 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 22446 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
PR 22531 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 22583 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 22628 core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 22647 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 22690 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 22692 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 22697 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 22703 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 22944 core/libs/prx/libSceAgcDriver/tests/Float16Conversion.cpp
core/libs/prx/libSceAgcDriver/tests/execution/F64FmaSubnormals.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 23242 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 23244 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 23258 core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 23281 core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 23409 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 23545 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 23553 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 23587 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 23595 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 23811 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 23818 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 23955 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 24049 core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 24294 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 24327 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 24523 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 24661 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 24704 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 24714 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 24756 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 25010 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 25374 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 25422 core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 25489 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 25559 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 25609 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 25978 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
PR 26012 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 26099 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 26100 core/shader/recompiler/Recompiler.hpp
PR 26101 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
PR 26365 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 26613 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 26630 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 26686 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 26691 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 26756 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 26766 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 26797 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 27288 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 27343 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 27648 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 27670 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 27744 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 27811 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tools/ShaderReplay.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 27847 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 27870 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 27947 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 28001 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28059 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28077 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 28090 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 28102 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 28132 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 28142 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 28176 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 28193 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28197 core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 28209 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28234 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28252 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28262 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 28279 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 28280 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 28289 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 28290 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28291 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28292 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28293 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28295 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 28296 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 28332 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 28350 core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 28372 core/shader/recompiler/Recompiler.cpp
PR 28376 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 28384 core/shader/recompiler/Recompiler.cpp
PR 28387 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 28388 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28389 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28390 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 28396 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28400 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 28403 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
PR 28410 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 28411 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
PR 28414 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 28421 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28469 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 28470 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 28476 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28480 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 28487 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 28488 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 28490 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 28520 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
PR 28525 core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
PR 28537 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28564 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 28582 core/shader/recompiler/Recompiler.cpp
PR 28586 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 28590 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 28624 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28638 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 28659 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28660 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 28668 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterHelpers.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvModuleSetup.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
core/shader/recompiler/tests/RequestSerializerTests.cpp
PR 28673 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CacheKey.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitter.hpp
core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
core/shader/recompiler/SpirvBackend/src/SpirvEmitter.cpp
core/shader/recompiler/SpirvBackend/src/SpirvModuleEmitter.cpp
PR 28692 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
Report truncated: 70 more lines omitted.

@tibzejoker

Copy link
Copy Markdown
Contributor Author

On the overlap table: these PRs all bump the request serializer format, so they edit the same version pins in RequestSerializerTests.cpp and ShaderMemory.cpp. Any of them merging first only means this PR moves to the next format on rebase. None is a functional dependency (Depends on: none), and no other PR touches the denormal mode emission or coupledF16F64Denorms.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@tibzejoker

Copy link
Copy Markdown
Contributor Author

Thanks @MarcZX10 for the review and for checking the branch freshness.

@THEMANnt THEMANnt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@tibzejoker

Copy link
Copy Markdown
Contributor Author

More RADV coverage for the coupling, from @tablefrogpillow on #11351 (comment), on the switched version of this change, Mesa 25.2.8, validation layer on:

  • gfx1036 (RDNA2) and gfx1100 (RDNA3): both log the share one mode line. The f16 -> f32 NaN probe goes native with 0 of 262144 differences. The focused f16/f64/convert/pack/interpolation set passes 76/76 on each, with and without the coupling.
  • The only layer message is a VUID-VkDeviceCreateInfo-pNext-pNext from an older layer, with the same count with and without the coupling.
  • On Shader float mode (IEEE_MODE, DX10_CLAMP, FLOAT_MODE) is per shader; the recompiler assumes one #981 they measured that on gfx1036 and gfx1100 the f64 denormal flush follows the same FLOAT_MODE field as f16. That is the hardware basis for declaring the two modes together.

@github-actions github-actions Bot added shader core/shader docs agc libSceAgc* labels Oct 26, 2026
@oneandonlydean oneandonlydean self-assigned this Oct 26, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 27, 2026
@Lander0606

Copy link
Copy Markdown
Contributor

@tibzejoker, the 860M run of this PR itself, without any variable: head 406bf3fdc2 against its base main 48c160c58b, without merging onto current main. The setup is the same as on #11351: Radeon 860M (RADV KRACKAN1), Mesa 26.2.5, Fedora 44, built in an Ubuntu 24.04 container with GCC 13.3 (Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=ON), ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, validation layer 1.4.341 with VK_LOADER_DEBUG=layer.

On RADV the coupling turns on by itself. Every device creation in the focused set logs this line, 74 per run; on main it never appears:

[float-controls] f16 and f64 denormals share one mode on this device: DenormPreserve 16 and 64 are declared together

The focused set is the one in the description: ctest -j1 -V -R "(^agc.*(f16|float16|f64|convert|pack|interpolation|denorm)|request_serializer|shader_memory|agc_float16_conversion)" -E "^agc_driver_bda_device$". It has 86 tests on this build.

main 48c160c58b this PR 406bf3fdc2
RADV, with the layer 86/86, 86/86, 86/86 86/86, 86/86, 86/86
RADV, without the layer 86/86 86/86
lavapipe, with the layer 86 pass, 3 of them skipped 86 pass, 3 of them skipped
RADV, full ^agc (-j8, without the layer) 1039 of 1040 1039 of 1040
  • What changes on RADV: of the tests' result lines (... tests passed ...), one differs between the two trees. On main, agc_driver_f16_to_f32_unpack logs f16 to f32 unpack tests passed (65536 halves, integer decode only). With this PR it logs (65536 halves, both decodes). So UnpackHalf2x16 now runs on RADV and matches the integer decode for every half.
  • f64: the 13 f64 tests of the set pass with DenormPreserve 64 declared, and their output is the same as on main (v_fma_f64 subnormal tests passed, for example).
  • SPIR-V and serializer checks: agc_float16_conversion, agc_driver_f64_denorm_preserve_spirv, request_serializer and agc_shader_memory pass.
  • Validation: the layer was inserted 75 times per run on both trees. No log contains the not-found line, and no run logs a VUID- line. As before, the layer does not flag an uncoupled declaration, so the SPIR-V checks above are what show the coupling.
  • lavapipe: no share one mode line. The 3 skips are agc_driver_f64_fma_subnormals, agc_driver_float16_native and agc_driver_packed_float16_native, on both trees.
  • Full ^agc run: on both trees, the only failure is agc_driver_tessellation, the Mesa 26.2.5 crash, with the same 15 skips.

The branch now conflicts with main in RequestSerializerTests.cpp. If the rebase only moves the serializer format, I can rerun the same set on the new head.

Logs of every run above, with an index in README.txt:
anyps5-pr11483-406bf3fdc2-radv-860m-logs.zip

AI assisted: yes

@ycbuzi

ycbuzi commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

A run on the case Tested lists as not covered: AMD's Windows driver. Windows 11 Home 10.0.26200, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. GPU: AMD Radeon(TM) Graphics (1002:164e, the Ryzen 9 7900's RDNA2 iGPU), driver 25.10.30.02 (AMD proprietary shader compiler), Vulkan 1.4.315.

vulkaninfo on this device reports denormBehaviorIndependence = SHADER_FLOAT_CONTROLS_INDEPENDENCE_32_BIT_ONLY with shaderDenormPreserveFloat16, shaderDenormPreserveFloat64 and shaderFloat64 all true, so it takes the new path. The RTX 4070 SUPER and GTX 1650 SUPER here (NVIDIA 616.92) report INDEPENDENCE_ALL and don't.

This head now conflicts with main, so both sides are this PR's own base and head: main 48c160c58b and 406bf3fdc2. Your focused set (ctest -R "(^agc.*(f16|float16|f64|convert|pack|interpolation|denorm)|request_serializer|shader_memory|agc_float16_conversion)" -V -j1, 85 tests from 80 executables) ran with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (layer 1.4.363), ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and ANYPS5_GPU=Radeon, in a non-elevated process.

main 48c160c58b this PR 406bf3fdc2
focused set 85/85 85/85
VUID- lines 0 0
[float-controls] ... share one mode lines 0 74 (every device creation, out of 74 Selected GPU lines)
missing-layer lines 0 0

The layer was active on both sides: each log has 19 Validation messages (none of them VUID-), and a best-practices check of agc_driver_f64_fma_subnormals on the RTX 4070 SUPER, in the same process before each side, wrote a 28-line layer log.

Not run: the full ^agc suite on this device, a title, frame time.

AI-assisted: yes (Claude Code)

@tibzejoker
tibzejoker force-pushed the perf/coupled-f16-f64-denorms branch from 406bf3f to 5a8a216 Compare October 27, 2026 19:41
@tibzejoker

Copy link
Copy Markdown
Contributor Author

Rebased on main d13b3d7 (head 5a8a216c9b, conflicts were the serializer and the debt list). main took serializer format 48 for fragmentBarycentricBuiltins (a95ced5), so the flag is now the byte after it, format 49; a format 48 request reads it as false. #11351 is rebased the same way, so whichever of the two merges second moves to 50.

Focused set from the description with VK_LAYER_KHRONOS_validation + ANYPS5_NO_SHADER_CACHE=1 + ANYPS5_REQUIRE_VULKAN=1: RTX 4090 85/85, UHD 770 83/85 (the two unorm4444 partial-write failures that main has too), 0 VUID- on both.

@Lander0606 @ycbuzi thanks for the RADV 860M and AMD Windows runs.

AI-assisted: yes (Claude Code)

@ycbuzi

ycbuzi commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Same AMD Windows comparison on the rebased head 5a8a216c9b, against its base, current main d13b3d7c55. Same setup as above: Radeon iGPU, AMD 25.10.30.02 (32_BIT_ONLY with DenormPreserve 16 and 64), your focused set, Khronos layer in a non-elevated process.

main d13b3d7c55 this PR 5a8a216c9b
focused set 85/85 85/85
VUID- lines 0 0
share one mode lines 0 74
missing-layer lines 0 0

The layer check before each side wrote a 28-line log, as before. The serializer format change to 49 doesn't change anything here.

AI-assisted: yes (Claude Code)

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 27, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 28, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

@tibzejoker this no longer merges into main: tests/ShaderMemory.cpp and recompiler/tests/RequestSerializerTests.cpp conflict. Main has also taken request serialization version 49 for its own new field, while this PR writes coupledF16F64Denorms under version >= 49. RequestSerializer.cpp merges without a textual conflict, so a merged build would read version-49 requests written by main as if they carried your trailing flag. Could you rebase onto current main and move the new flag to version 50, then renumber the serializer tests to match?

Note: #10547, #11483 and #10846 all need the next request-serializer version, so whichever lands first takes 50 and each later one takes the next number after it.

@tibzejoker

Copy link
Copy Markdown
Contributor Author

Rebased on main 319621ba2e (head b81b8a12ff). main took serializer format 49 for the depth export clamp bounds (#10348), so the flag is now format 50; a format 49 request reads it as false. The test fixtures that build legacy depth export and dithered requests drop the trailing byte before relabelling them. agc_shader_replay also conflicted with main's new --lds-lock-fences: both flags are kept. #11351 is at format 50 too, so whichever merges second moves to 51.

Focused set from the description, with VK_LAYER_KHRONOS_validation + ANYPS5_NO_SHADER_CACHE=1 + ANYPS5_REQUIRE_VULKAN=1. main 319621ba2e was run in the same session for #11351:

main 319621ba2e this PR b81b8a12ff
RTX 4090 (NVIDIA 616.92) 88/88 88/88
UHD 770 87/88 87/88
VUID- lines 0 / 0 0 / 0

The UHD 770 failure is agc_driver_packed_unorm4444_multisample_partial_write on both sides. Neither device here reports 32_BIT_ONLY, so neither takes the new path. ycbuzi's Radeon runs above cover it.

AI-assisted: yes (Claude Code)

agc_shader_replay --unpreserved-f16-f64-denorms clears float16DenormPreserve
and float64DenormPreserve, as on a 32_BIT_ONLY device before the coupling;
--coupled-f16-f64-denorms sets both with coupledF16F64Denorms, as on such a
device now. Requests saved on another GPU can then show both module shapes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PHJtpJ4hw3KWJhobipK8ia
@tibzejoker
tibzejoker force-pushed the perf/coupled-f16-f64-denorms branch from 80cb2cd to 09ee954 Compare November 8, 2026 08:25
@tibzejoker

Copy link
Copy Markdown
Contributor Author

Rebased onto main a7e789e5b5 now that #11351 has merged, as announced above. The new head is 09ee9542f8.

I re-ran the focused set with the same command as the body: validation layer inserted in every run (100 per run), ANYPS5_NO_SHADER_CACHE=1.

GPU main a7e789e5b5 this PR VUID- lines
RTX 4090 (616.92) 113/113 113/113 0 / 0
UHD 770 112/113 112/113 0 / 0

The Intel failure is the same on both sides: agc_driver_packed_float_blend, new with #9020. Neither GPU reports 32_BIT_ONLY, so this run is the no-change control; the RADV numbers in the body still describe the coupled path. check_conventions.py passes.

@Nesyth heads-up for #15719: if it ends up serializing its new target field too, the next free format after this PR is 57.

AI-assisted: yes (Claude Code)

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Nov 8, 2026
@oneandonlydean
oneandonlydean dismissed stale reviews from MarcZX10, MarcZX10, MarcZX10, MarcZX10, XairRrR, and XairRrR November 9, 2026 10:08

Stale: rebase-only request; the conflict is handled by a merge-main from our side.

Credit: PR author tibzejoker. Main moved the recompile request serialization to version 56 (compute VGPR counts) while this PR also used version 56 for coupledF16F64Denorms. Conflicts in core/shader/recompiler/ControlFlow/src/RequestSerializer.cpp, core/shader/recompiler/tests/RequestSerializerTests.cpp and core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp: main keeps version 56, the coupledF16F64Denorms flag is now written and read at version 57 after main's compute block, the writer emits 57 and the accepted range is 1..57, and the tests that assert the current version, its prefix and its tail bytes were moved to 57, and the unsupported-future-version checks now use 58.
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 9, 2026
@Jirka135

Copy link
Copy Markdown
Contributor

An RDNA 3.5 data point for "RDNA has a single f16/f64 denormal field in FLOAT_MODE (bits 7:6)", measured with tools/hw-oracle (HIP runtime). It's independent of the recompiler. The PS5's gfx1013 is not measured.

Setup:

  • AMD Radeon 8060S (Ryzen AI MAX+ 395, gfx1151), Windows 11 Pro 10.0.26300, driver 32.0.22032.6002
  • oracle from tools/hw-oracle at f57c971
  • wave32, round to nearest even, DX10_CLAMP 1, FP16_OVFL 0
  • IEEE 0 and 1 × f16/f64 denormal field (.amdhsa_float_denorm_mode_16_64) 0, 1, 2 and 3 × f32 denormal field 0, 1, 2 and 3: 32 runs

Rows: one per run. The constants are built in the program.

Forms: for each width there is one input test and one output test. The input test adds the largest denormal and the smallest denormal; the result is the smallest normal if input denormals are kept, and 0 if they are flushed. The output test multiplies the smallest normal by 0.5; the result is a denormal if output denormals are kept, and 0 if they are flushed.

  • f16: v_add_f16 0x03ff, 0x0001 and v_mul_f16 0x0400, 0x3800.
  • f64: v_add_f64 0x000fffffffffffff, 0x0000000000000001 and v_mul_f64 0x0010000000000000, 0.5.
  • f32: v_add_f32 0x007fffff, 0x00000001 and v_mul_f32 0x00800000, 0.5.
  • MODE is read with s_getreg_b32 hwreg(HW_REG_MODE).

Results for all 32 runs, the same at IEEE 0 and IEEE 1 and for every f32 field:

f16/f64 field f16 inputs f16 outputs f64 inputs f64 outputs MODE bits 7:6
0 flushed flushed flushed flushed 0
1 kept flushed kept flushed 1
2 flushed kept flushed kept 2
3 kept kept kept kept 3

The f32 results follow only the f32 field, with the same bit meaning: bit 0 keeps inputs and bit 1 keeps outputs. MODE was 0x100 | f16f64 << 6 | f32 << 4 | IEEE << 9 in every run. For example, field 3 for f16/f64 with field 0 for f32 at IEEE 1 reads 0x3c0; there, f16 and f64 keep both input and output denormals and f32 flushes both.

So gfx1151 has one denormal field for f16 and f64, in MODE bits 7:6, separate from the f32 field in bits 5:4. Preserving f16 and f64 denormals together, as this PR does on a 32_BIT_ONLY device, is the shape the hardware has.

This measures the hardware only. It says nothing about RADV's denormBehaviorIndependence or about the SPIR-V the PR emits.

Not run: the recompiler side (no Windows build of the runner here), and the PR's tests.

AI-assisted: yes (measurement scripted with Claude Code; rows and results checked by me).

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 12, 2026

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

I tried to merge main into this and stopped. This PR adds coupledF16F64Denorms as request serialization version 57. Main is now at version 64, rejects 58 to 61, and can end a request with an optional barycentrics flag, so the new field needs a new version and a place before that flag, and the byte offset tests need updating. Could you rebase on current main?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* docs needs rebase Conflicts with main, rebase needed shader core/shader

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants