fix(shader): interpolate 16-bit values with 64-bit integers on devices without Float64 #6767

Merged
DavidSamir merged 6 commits from upstream-pr/6767 into main 2026-10-19 10:54:25 +00:00
DavidSamir commented 2026-10-16 11:00:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DavidSamir on 2026-10-16T11:00:53Z.


What

The 16-bit interpolation steps round an exact sum once (#697, measured on RDNA2):

  • v_interp_p1ll_f16 and v_interp_p1lv_f16 round P10 * I + P0 to f32;
  • v_interp_p2_f16 rounds P20 * J + S2 to f16;
  • v_fma_mixlo_f16 and v_fma_mixhi_f16 reuse the f16 step in every f16 rounding mode.

The exact sum is computed in f64, so on a device without the Float64 capability every shader using them fails to compile:

ShaderRecompiler::Recompile: 64-bit float instructions need the Float64 capability, which the device lacks

Apple GPUs have no f64. With MoltenVK 1.4.2 on Apple M2 this stops four catalog titles at their first such pixel shader: ProsperoStore (PPSA99000), PokeMMO Prospero (PPSA98001), Régie5 (PPSA99520) and PS5 OpenGL Showcase (PPSA99005). A temporary log line in AnalyzeProgramRequirements showed FPInterpolateF16 is the only 64-bit float operation in all four.

Without Float64, FPInterpolateF32 and FPInterpolateF16 are now computed in 64-bit integers, which the shader device profile already requires:

  1. The inputs are flushed as before and decoded to integer significands. The 24 by 24 bit product is exact in 64 bits.
  2. Both terms are normalized to bit 62. The smaller one is shifted down, and the bits it loses are kept as a sticky bit.
  3. The exact sum is rounded once: to f32 to nearest even, or to f16 in the f16 rounding mode, with f32 and f16 subnormal steps.
  4. Overflow, signed zeros (including the round-down zero sign), NaN quieting and the order in which NaN operands win follow the f64 path.

No floating-point arithmetic is involved, so the device's denormal handling doesn't matter; MoltenVK reports shaderDenormPreserveFloat32 = false. The module declares Int64 instead of Float64. Devices with Float64 keep the f64 path unchanged, and other f64 instructions still need Float64.

Commits:

  1. Record the two operations apart from other f64 requirements, with no change in output.
  2. The integer path.
  3. The hardware rows through it.
  4. The random-row reference.
  5. agc_driver_mix_precision without Float64.
  6. The debt entries.

Tested

macOS 26.7.1, Apple M2, MoltenVK 1.4.2 from the LunarG Vulkan SDK 1.4.363, AppleClang 21.0.0, x86-64 under Rosetta, Release. The GPU tests ran with the SDK's loader on the path; plain ctest skips them here, since it finds no libvulkan.1.dylib. main doesn't build the system libraries on macOS by itself, so the tests and titles ran in a local tree: main ce991f1ec with the macOS runtime work merged (#4627, #4630, #6124, the macOS relinker PRs, mugurc's port branches), plus #6535 and #6741. The branch's 8 files are identical to the ones tested.

  • agc_driver_interpolation_modes skipped on main here ("interpolation modes require Float64"). Now it passes 5 runs of 5, 0.4 s with a warm shader cache and 5 s without one:
    • the 32 RDNA2 rows, for the three instructions in all eight float modes, through the integer path;
    • 2,048 random rows in all 32 modes (the eight float modes with each f16 rounding mode) against the new CPU reference.
  • Wrong versions: the test fails for each of 6 deliberately wrong versions of the integer path: ties away from zero, no sticky bit, +0 for an exact cancellation rounding down, up and down swapped, subnormal results flushed, and toward zero rounding to nearest. The hardware rows catch two of them, and the random rows the rest.
  • agc_driver_mix_precision (v_fma_mixlo_f16 and v_fma_mixhi_f16) skipped on main here ("computed in f64 and the device has no shaderFloat64"). It now passes 5 runs of 5.
  • All 600 agc_/shader tests here, with this branch and with main's files: the same 39 fail with both, all MoltenVK issues outside this change, such as f16 signed zeros in agc_driver_float16_fma_rounding and agc_driver_fp16_overflow. That's why agc_driver_fp16_overflow keeps its Float64 skip. Nothing fails only with the branch.
  • Titles, catalog sha256 checked, 2 runs of 2 at 40 s each, all past the Float64 stop:
    • PokeMMO (PPSA98001, 1.0.2) is still running at 40 s;
    • ProsperoStore (PPSA99000, 1.000.070) and Régie5 (PPSA99520, 0.5.0) next stop on Barycentric geometry SPIR-V: geometry shaders are unavailable (#6222's area);
    • PS5 OpenGL Showcase (PPSA99005, 1.0.2) next stops on the viewport-depth case #4650 addresses.
  • tools/check_conventions.py --base origin/main and git diff --check pass.

Not tested here: the f64 path, since this device has no Float64. On a device with Float64 the test runs both paths against the hardware rows, and the f64 path against the same reference.

Limits of this Mac's GPU. vulkaninfo on Apple M2 with MoltenVK 1.4.2 reports no geometry shaders, no shaderFloat64, no VK_EXT_depth_range_unrestricted and no VK_EXT_provoking_vertex. AnyPS5 turns MoltenVK's VK_KHR_fragment_shader_barycentric off (5333a2053), so barycentric pixel shaders need the geometry-shader fallback. These are limits of the device. Apart from the Float64 case below, this PR doesn't remove them. A title named here as stopping on one of them is not tested past that stop:

  • Barycentric geometry SPIR-V: geometry shaders are unavailable: no geometry shaders; #6222 has a route around it.
  • viewport depth outside [0, 1] requires VK_EXT_depth_range_unrestricted: #4650 works around it.
  • last provoking vertex requires VK_EXT_provoking_vertex: #6741 removes it only for draws whose pixel shader can't observe the provoking vertex.
  • 64-bit float instructions: this PR removes the need only for the 16-bit interpolation steps. Other f64 instructions still need Float64.

Overlap:

  • #6503 adds the f32 flush-to-zero execution mode on the lines just above the Float64 declaration in SpirvModuleSetup.cpp. The conflict is textual only, and the integer path does no float arithmetic, so the mode doesn't affect it.
  • #5782 and #6009 edit the debt entries next to the two changed ones in shader.md.
  • Of the 22 pull requests the overlap check couldn't compare against these files, none changes Interpolate, InterpolateFunction, the FPInterpolate operations or the Float64 requirement.

Whichever lands second rebases.

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
  • Unblocks: PPSA98001 (macOS), PPSA99000, PPSA99520 and PPSA99005 #6289 (macOS; their next stops are named above)
  • GPUs tested: Apple M2, MoltenVK 1.4.2 (LunarG Vulkan SDK 1.4.363), macOS 26.7.1; the f64 path is not run here
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4887395350 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6767). Originally posted by [DavidSamir](https://github.com/DavidSamir) on 2026-10-16T11:00:53Z. --- ### What The 16-bit interpolation steps round an exact sum once (#697, measured on RDNA2): - `v_interp_p1ll_f16` and `v_interp_p1lv_f16` round `P10 * I + P0` to f32; - `v_interp_p2_f16` rounds `P20 * J + S2` to f16; - `v_fma_mixlo_f16` and `v_fma_mixhi_f16` reuse the f16 step in every f16 rounding mode. The exact sum is computed in f64, so on a device without the Float64 capability every shader using them fails to compile: ``` ShaderRecompiler::Recompile: 64-bit float instructions need the Float64 capability, which the device lacks ``` Apple GPUs have no f64. With MoltenVK 1.4.2 on Apple M2 this stops four catalog titles at their first such pixel shader: ProsperoStore (PPSA99000), PokeMMO Prospero (PPSA98001), Régie5 (PPSA99520) and PS5 OpenGL Showcase (PPSA99005). A temporary log line in `AnalyzeProgramRequirements` showed `FPInterpolateF16` is the only 64-bit float operation in all four. Without Float64, `FPInterpolateF32` and `FPInterpolateF16` are now computed in 64-bit integers, which the shader device profile already requires: 1. The inputs are flushed as before and decoded to integer significands. The 24 by 24 bit product is exact in 64 bits. 2. Both terms are normalized to bit 62. The smaller one is shifted down, and the bits it loses are kept as a sticky bit. 3. The exact sum is rounded once: to f32 to nearest even, or to f16 in the f16 rounding mode, with f32 and f16 subnormal steps. 4. Overflow, signed zeros (including the round-down zero sign), NaN quieting and the order in which NaN operands win follow the f64 path. No floating-point arithmetic is involved, so the device's denormal handling doesn't matter; MoltenVK reports `shaderDenormPreserveFloat32 = false`. The module declares `Int64` instead of `Float64`. Devices with Float64 keep the f64 path unchanged, and other f64 instructions still need Float64. Commits: 1. Record the two operations apart from other f64 requirements, with no change in output. 2. The integer path. 3. The hardware rows through it. 4. The random-row reference. 5. `agc_driver_mix_precision` without Float64. 6. The debt entries. ### Tested macOS 26.7.1, Apple M2, MoltenVK 1.4.2 from the LunarG Vulkan SDK 1.4.363, AppleClang 21.0.0, x86-64 under Rosetta, Release. The GPU tests ran with the SDK's loader on the path; plain `ctest` skips them here, since it finds no `libvulkan.1.dylib`. `main` doesn't build the system libraries on macOS by itself, so the tests and titles ran in a local tree: `main` ce991f1ec with the macOS runtime work merged (#4627, #4630, #6124, the macOS relinker PRs, mugurc's port branches), plus #6535 and #6741. The branch's 8 files are identical to the ones tested. - **`agc_driver_interpolation_modes`** skipped on `main` here ("interpolation modes require Float64"). Now it passes 5 runs of 5, 0.4 s with a warm shader cache and 5 s without one: - the 32 RDNA2 rows, for the three instructions in all eight float modes, through the integer path; - 2,048 random rows in all 32 modes (the eight float modes with each f16 rounding mode) against the new CPU reference. - **Wrong versions:** the test fails for each of 6 deliberately wrong versions of the integer path: ties away from zero, no sticky bit, +0 for an exact cancellation rounding down, up and down swapped, subnormal results flushed, and toward zero rounding to nearest. The hardware rows catch two of them, and the random rows the rest. - **`agc_driver_mix_precision`** (v_fma_mixlo_f16 and v_fma_mixhi_f16) skipped on `main` here ("computed in f64 and the device has no shaderFloat64"). It now passes 5 runs of 5. - **All 600 `agc_`/shader tests here, with this branch and with `main`'s files:** the same 39 fail with both, all MoltenVK issues outside this change, such as f16 signed zeros in `agc_driver_float16_fma_rounding` and `agc_driver_fp16_overflow`. That's why `agc_driver_fp16_overflow` keeps its Float64 skip. Nothing fails only with the branch. - **Titles,** catalog sha256 checked, 2 runs of 2 at 40 s each, all past the Float64 stop: - PokeMMO (PPSA98001, 1.0.2) is still running at 40 s; - ProsperoStore (PPSA99000, 1.000.070) and Régie5 (PPSA99520, 0.5.0) next stop on `Barycentric geometry SPIR-V: geometry shaders are unavailable` (#6222's area); - PS5 OpenGL Showcase (PPSA99005, 1.0.2) next stops on the viewport-depth case #4650 addresses. - `tools/check_conventions.py --base origin/main` and `git diff --check` pass. Not tested here: the f64 path, since this device has no Float64. On a device with Float64 the test runs both paths against the hardware rows, and the f64 path against the same reference. **Limits of this Mac's GPU.** `vulkaninfo` on Apple M2 with MoltenVK 1.4.2 reports no geometry shaders, no `shaderFloat64`, no `VK_EXT_depth_range_unrestricted` and no `VK_EXT_provoking_vertex`. AnyPS5 turns MoltenVK's `VK_KHR_fragment_shader_barycentric` off (5333a2053), so barycentric pixel shaders need the geometry-shader fallback. These are limits of the device. Apart from the Float64 case below, this PR doesn't remove them. A title named here as stopping on one of them is not tested past that stop: - `Barycentric geometry SPIR-V: geometry shaders are unavailable`: no geometry shaders; #6222 has a route around it. - `viewport depth outside [0, 1] requires VK_EXT_depth_range_unrestricted`: #4650 works around it. - `last provoking vertex requires VK_EXT_provoking_vertex`: #6741 removes it only for draws whose pixel shader can't observe the provoking vertex. - 64-bit float instructions: this PR removes the need only for the 16-bit interpolation steps. Other f64 instructions still need Float64. Overlap: - #6503 adds the f32 flush-to-zero execution mode on the lines just above the Float64 declaration in `SpirvModuleSetup.cpp`. The conflict is textual only, and the integer path does no float arithmetic, so the mode doesn't affect it. - #5782 and #6009 edit the debt entries next to the two changed ones in `shader.md`. - Of the 22 pull requests the overlap check couldn't compare against these files, none changes `Interpolate`, `InterpolateFunction`, the `FPInterpolate` operations or the Float64 requirement. Whichever lands second rebases. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: PPSA98001 (macOS), PPSA99000, PPSA99520 and PPSA99005 #6289 (macOS; their next stops are named above) - [x] GPUs tested: Apple M2, MoltenVK 1.4.2 (LunarG Vulkan SDK 1.4.363), macOS 26.7.1; the f64 path is not run here - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-16 11:22:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T11:22:56Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 5782 docs/dev/debt/shader.md L98-99
PR 7074 docs/dev/debt/shader.md L98-99

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 5021 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
docs/dev/debt/shader.md
PR 5371 docs/dev/debt/shader.md
PR 5426 docs/dev/debt/shader.md
PR 5500 docs/dev/debt/shader.md
PR 5941 docs/dev/debt/shader.md
PR 6009 docs/dev/debt/shader.md
PR 6177 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 6235 docs/dev/debt/shader.md
PR 6612 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
docs/dev/debt/shader.md
PR 6683 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 6924 docs/dev/debt/shader.md
PR 6941 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 6947 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 6976 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 6977 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
docs/dev/debt/shader.md
PR 7042 docs/dev/debt/shader.md
PR 7201 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 7223 docs/dev/debt/shader.md
PR 7392 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
docs/dev/debt/shader.md
PR 7395 docs/dev/debt/shader.md
PR 7429 core/shader/recompiler/SpirvBackend/src/SpirvAnalysis.cpp
docs/dev/debt/shader.md
PR 7484 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
docs/dev/debt/shader.md
PR 7642 core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp
PR 7803 docs/dev/debt/shader.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6214416480 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6767#issuecomment-6214416480). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T11:22:56Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 5782](https://www.github.com/boykopovar/AnyPS5/pull/5782) | `docs/dev/debt/shader.md` [L98-99](https://github.com/boykopovar/AnyPS5/blob/118266aec293b0967639bb508e0ec232fee08cce/docs/dev/debt/shader.md#L98-L99) | | | | [PR 7074](https://www.github.com/boykopovar/AnyPS5/pull/7074) | `docs/dev/debt/shader.md` [L98-99](https://github.com/boykopovar/AnyPS5/blob/118266aec293b0967639bb508e0ec232fee08cce/docs/dev/debt/shader.md#L98-L99) | | | 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 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`docs/dev/debt/shader.md` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `docs/dev/debt/shader.md` | | [PR 5426](https://www.github.com/boykopovar/AnyPS5/pull/5426) | `docs/dev/debt/shader.md` | | [PR 5500](https://www.github.com/boykopovar/AnyPS5/pull/5500) | `docs/dev/debt/shader.md` | | [PR 5941](https://www.github.com/boykopovar/AnyPS5/pull/5941) | `docs/dev/debt/shader.md` | | [PR 6009](https://www.github.com/boykopovar/AnyPS5/pull/6009) | `docs/dev/debt/shader.md` | | [PR 6177](https://www.github.com/boykopovar/AnyPS5/pull/6177) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `docs/dev/debt/shader.md` | | [PR 6612](https://www.github.com/boykopovar/AnyPS5/pull/6612) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`docs/dev/debt/shader.md` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 6924](https://www.github.com/boykopovar/AnyPS5/pull/6924) | `docs/dev/debt/shader.md` | | [PR 6941](https://www.github.com/boykopovar/AnyPS5/pull/6941) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 6976](https://www.github.com/boykopovar/AnyPS5/pull/6976) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`docs/dev/debt/shader.md` | | [PR 7042](https://www.github.com/boykopovar/AnyPS5/pull/7042) | `docs/dev/debt/shader.md` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 7223](https://www.github.com/boykopovar/AnyPS5/pull/7223) | `docs/dev/debt/shader.md` | | [PR 7392](https://www.github.com/boykopovar/AnyPS5/pull/7392) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`docs/dev/debt/shader.md` | | [PR 7395](https://www.github.com/boykopovar/AnyPS5/pull/7395) | `docs/dev/debt/shader.md` | | [PR 7429](https://www.github.com/boykopovar/AnyPS5/pull/7429) | `core/shader/recompiler/SpirvBackend/src/SpirvAnalysis.cpp`<br>`docs/dev/debt/shader.md` | | [PR 7484](https://www.github.com/boykopovar/AnyPS5/pull/7484) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp`<br>`docs/dev/debt/shader.md` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/shader/recompiler/SpirvBackend/include/SpirvBackend/SpirvEmitterState.hpp` | | [PR 7803](https://www.github.com/boykopovar/AnyPS5/pull/7803) | `docs/dev/debt/shader.md` |
blawesom commented 2026-10-17 10:49:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-17T10:49:42Z.


Rebase handoff — rebased onto current main (all commits, authorship unchanged). One docs-debt conflict, unioned with main's entries.

Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV):

  • builds; tools/check_conventions.py --base origin/main passes
  • full suite: 1338/1339 — the only failure is the known main regression (agc_driver_tessellation segfault, #4727), not this PR

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/6767
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is 09c8b0921.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6233013989 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6767#issuecomment-6233013989). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-17T10:49:42Z. --- **Rebase handoff** — rebased onto current `main` (all commits, authorship unchanged). One docs-debt conflict, unioned with `main`'s entries. Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): - builds; `tools/check_conventions.py --base origin/main` passes - **full suite: 1338/1339** — the only failure is the known `main` regression (`agc_driver_tessellation` segfault, #4727), not this PR **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/6767 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `09c8b0921`.
DavidSamir commented 2026-10-17 15:34:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by DavidSamir on 2026-10-17T15:34:35Z.


Thanks, @blawesom. I checked your rebase/6767 against this branch: the code commits are identical, and the debt-file commit differs only by the conflict resolution. Rather than force-pushing, I merged current main into the branch with the same resolution, so the history stays as reviewed. The PR's diff against main now matches your rebase. Since your rebase, main also reworded the two shader.md entries this PR edits, so I merged at the word level: both entries keep main's new text plus this PR's Float64 sentences. Head is f53e01220, and it merges cleanly with main.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6235844661 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6767#issuecomment-6235844661). Originally posted by [DavidSamir](https://github.com/DavidSamir) on 2026-10-17T15:34:35Z. --- Thanks, @blawesom. I checked your `rebase/6767` against this branch: the code commits are identical, and the debt-file commit differs only by the conflict resolution. Rather than force-pushing, I merged current `main` into the branch with the same resolution, so the history stays as reviewed. The PR's diff against `main` now matches your rebase. Since your rebase, `main` also reworded the two `shader.md` entries this PR edits, so I merged at the word level: both entries keep `main`'s new text plus this PR's Float64 sentences. Head is `f53e01220`, and it merges cleanly with `main`. AI-assisted: yes
Neithennn commented 2026-10-17 20:12:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Neithennn on 2026-10-17T20:12:41Z.


Windows NVIDIA run, since the description lists Apple M2 / MoltenVK only.

Windows 11 Pro 26200, NVIDIA GeForce RTX 4080 (driver 617.42), AMD Ryzen 7 5800X, WinLibs GCC 15.2.0 r7, Ninja, Release, bundled dependencies, BUILD_TESTING=ON, ANYPS5_NO_SHADER_CACHE=1. Head f53e01220 (on main f51724078); full build succeeds.

  • 35 interpolation and f16 tests (agc_driver_interpolation_f16, agc_driver_interpolation_modes, agc_interpolant_mapping, agc_driver_float16_*, agc_driver_f16_*, agc_float16_conversion, ...): 35/35 pass, with ANYPS5_REQUIRE_VULKAN=1.
  • Full ctest -j 8: 1398/1398. Unchanged main on the same machine: 1398/1398.

I did not check which interpolation path the RTX 4080 takes with this change, so this shows no regression on NVIDIA rather than coverage of the new path. No title run.

AI-assisted: yes (runs done with Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6240248235 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6767#issuecomment-6240248235). Originally posted by [Neithennn](https://github.com/Neithennn) on 2026-10-17T20:12:41Z. --- Windows NVIDIA run, since the description lists Apple M2 / MoltenVK only. Windows 11 Pro 26200, NVIDIA GeForce RTX 4080 (driver 617.42), AMD Ryzen 7 5800X, WinLibs GCC 15.2.0 r7, Ninja, Release, bundled dependencies, `BUILD_TESTING=ON`, `ANYPS5_NO_SHADER_CACHE=1`. Head `f53e01220` (on main `f51724078`); full build succeeds. - 35 interpolation and f16 tests (`agc_driver_interpolation_f16`, `agc_driver_interpolation_modes`, `agc_interpolant_mapping`, `agc_driver_float16_*`, `agc_driver_f16_*`, `agc_float16_conversion`, ...): 35/35 pass, with `ANYPS5_REQUIRE_VULKAN=1`. - Full `ctest -j 8`: 1398/1398. Unchanged main on the same machine: 1398/1398. I did not check which interpolation path the RTX 4080 takes with this change, so this shows no regression on NVIDIA rather than coverage of the new path. No title run. AI-assisted: yes (runs done with Claude Code).
Neithennn commented 2026-10-19 09:34:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Neithennn on 2026-10-19T09:34:28Z.


Rerun of the new head 2b81cc1c6 on the RTX 4080 (my earlier run was on f53e01220).

Windows 11 Pro 26200, NVIDIA GeForce RTX 4080 (driver 617.42), AMD Ryzen 7 5800X, WinLibs GCC 15.2.0 r7, Ninja, Release, bundled dependencies, BUILD_TESTING=ON, ANYPS5_NO_SHADER_CACHE=1. Head merged onto main f78675ae4; full build succeeds.

  • 36 interpolation and f16 tests (agc_driver_interpolation_f16, agc_driver_interpolation_modes, agc_interpolant_mapping, agc_driver_float16_*, agc_driver_f16_*, agc_f16_single_convert, agc_float16_conversion, ...): 36/36 pass, with ANYPS5_REQUIRE_VULKAN=1.
  • Full ctest -j 8: 1627/1628, the same as unchanged main on this machine; the one failure is agc_driver_bda_device (device lost, #7584), which fails on main too and is fixed by #7571.

As before, I did not check which interpolation path the RTX 4080 takes, so this shows no regression on NVIDIA rather than coverage of the new path. No title run.

AI-assisted: yes (runs done with Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6264156553 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6767#issuecomment-6264156553). Originally posted by [Neithennn](https://github.com/Neithennn) on 2026-10-19T09:34:28Z. --- Rerun of the new head `2b81cc1c6` on the RTX 4080 (my earlier run was on `f53e01220`). Windows 11 Pro 26200, NVIDIA GeForce RTX 4080 (driver 617.42), AMD Ryzen 7 5800X, WinLibs GCC 15.2.0 r7, Ninja, Release, bundled dependencies, `BUILD_TESTING=ON`, `ANYPS5_NO_SHADER_CACHE=1`. Head merged onto main `f78675ae4`; full build succeeds. - 36 interpolation and f16 tests (`agc_driver_interpolation_f16`, `agc_driver_interpolation_modes`, `agc_interpolant_mapping`, `agc_driver_float16_*`, `agc_driver_f16_*`, `agc_f16_single_convert`, `agc_float16_conversion`, ...): 36/36 pass, with `ANYPS5_REQUIRE_VULKAN=1`. - Full `ctest -j 8`: 1627/1628, the same as unchanged main on this machine; the one failure is `agc_driver_bda_device` (device lost, #7584), which fails on main too and is fixed by #7571. As before, I did not check which interpolation path the RTX 4080 takes, so this shows no regression on NVIDIA rather than coverage of the new path. No title run. AI-assisted: yes (runs done with Claude Code).
adriadam10 commented 2026-10-19 10:55:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T10:55:45Z.


Rebased onto current main (conflicts with #6503 in SpirvModuleSetup.cpp, now merged, and with the two reworded entries in docs/dev/debt/shader.md); no logic changed. Checked the integer path (alignment with sticky bit, single rounding in all four f16 modes, overflow, f32/f16 subnormal steps, zero signs, NaN order) against the f64 path, the 32 hardware rows and the random-row reference, which runs on every device. Ctest on the rebased tree passes; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6265577375 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6767#issuecomment-6265577375). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T10:55:45Z. --- Rebased onto current `main` (conflicts with #6503 in `SpirvModuleSetup.cpp`, now merged, and with the two reworded entries in `docs/dev/debt/shader.md`); no logic changed. Checked the integer path (alignment with sticky bit, single rounding in all four f16 modes, overflow, f32/f16 subnormal steps, zero signs, NaN order) against the f64 path, the 32 hardware rows and the random-row reference, which runs on every device. Ctest on the rebased tree passes; merged.
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!6767
No description provided.