fix(shader): compute v_rcp_f64, v_rsq_f64 and v_sqrt_f64 of denormal operands on scaled values #27859

Open
GiannisG1 wants to merge 3 commits from upstream-pr/27859 into main
GiannisG1 commented 2026-11-27 15:47:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by GiannisG1 on 2026-11-27T15:47:33Z.


What

agc_driver_float64_transcendental_denormals (#22384) fails on Intel ANV (HD Graphics 630, Mesa 25.2.8): v_rsq_f64 of 0x0000000000000001 with FLOAT_MODE 0x70 is 0x63041cfe99c5bfa8, expected the RDNA 2 value 0x6180000000000000. That device reports shaderDenormPreserveFloat64, so the test checks the denormal rows there. The GTX 1050 Ti and llvmpipe report it false and skip them.

The translation computes the three instructions with the host's Sqrt and FDiv on the operand as it is. Mesa lowers f64 sqrt, rsq and reciprocal in src/compiler/nir/nir_lower_double_ops.c (lower_sqrt_rsq and lower_rcp; with nir_lower_ddiv, fdiv becomes a multiply by frcp). Both build their first estimate from the exponent field as if the operand were normal. For a denormal, whose field is 0 and which has no implicit bit, that estimate is wrong. On top of that, fix_inv_result flushes a reciprocal whose exponent comes out at or below zero, so a denormal result becomes ±0 even under DenormPreserve. On the HD 630 this gives 10 wrong rows (listed under Tested).

EmitFPRcp64, EmitFPRsq64 and EmitFPSqrt64 now give the host only normal operands and results:

  • A denormal operand is normalized in integer operations (FrexpFields) and scaled by 2^128. It reaches the emitter only when bit 0 of the field keeps it, because the translation flushes it otherwise. Sqrt scales the result back by 2^-64, rsq by 2^64 and rcp by 2^128, so the rcp overflows to ±inf where it should. Multiplying a normal value by a power of two is exact, so the result is the host's value for the operand with its exponent moved.
  • v_rcp_f64 of a finite operand with exponent field 0x7fd or above (|x| ≥ 2^1022, whose reciprocal is at most 2^-1022) divides x·2^-128 and multiplies the quotient by 2^-128, so a denormal result comes from a multiply. That rounds twice in the last place of a denormal result. JJenkx measured at most 1 ULP against exact-rational references, over 49,176 inputs from the normal-result cutoff up to the largest finite value; one example is 0x7fd0005b5e3ca0de → 0x000fffa4a3cd159c, where a single rounding gives 0x000fffa4a3cd159b (review). RDNA2's own results are approximations (see the shader debt entry for these instructions), and the test allows 4 ulp.
  • Every other operand takes the same path as before, so normal operands give the same results.

The test now checks kept denormal inputs on every device, because they no longer depend on the host's f64 denormal support. Devices without shaderDenormPreserveFloat64 still skip denormal results, which their drivers may flush.

Tested

Linux Mint 22.3, kernel 7.0.0-38, GCC 13.3.0, Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=ON. Head on main 4cb7752e50; it merges cleanly with main 10c3156e1c, where none of the three files has changed.

  • RED, with the test change alone on main's emitter: the HD 630 fails. A local copy of the test that prints every mismatch instead of stopping at the first shows these 10 rows. The GTX 1050 Ti and llvmpipe pass, with their 4 denormal results skipped:
instruction input FLOAT_MODE HD 630 RDNA2
v_rsq_f64 0x0000000000000001 0x70, 0xf0 0x63041cfe99c5bfa8 0x6180000000000000
v_rcp_f64 0x0008000000000000 0x70, 0xf0 0x7fdf9add3da12f66 0x7fe0000000000000
v_rcp_f64 0x8008000000000000 0x70, 0xf0 0xffdf9add3da12f66 0xffe0000000000000
v_rcp_f64 0x7fe0000000000000 0xb0, 0xf0 0x0000000000000000 0x0008000000000000
v_rcp_f64 0xffe0000000000000 0xb0, 0xf0 0x8000000000000000 0x8008000000000000
  • GREEN: 3/3 on the GTX 1050 Ti, HD 630, llvmpipe and lavapipe 26.0.8, and once on each with the validation layer (SDK 1.4.363.1), with no VUIDs. The copy that prints every mismatch finds none on any device. The HD 630 now checks every row (0 skipped).
  • Added after MarcZX10's review (test commit 83bf6c1eec): a second table of 16 v_rcp_f64 operands, from just below the 2^1022 threshold up to the largest finite values, both signs, in all four modes, checked against the exactly rounded reciprocal. With main's emitter the HD 630 returns ±0 for 20 of them: every operand above 2^1022, in the two modes that keep denormal results. With this PR all pass 3/3 on the four devices, with no VUIDs. The GTX 1050 Ti and llvmpipe skip the 24 denormal results.
  • The split suite of this head against a full run of main 8b40357971 on the same machine (every test once on the GTX 1050 Ti, the 2089 GPU tests on all three devices). GTX: no failure. HD 630: 13. llvmpipe: 4. These are the failures main 4cb7752e50 has on this machine, minus float64_transcendental_denormals on the HD 630.
  • check_conventions.py, check_test_registration.py, check_compile.py (2 translation units), check_main_sync.py (merges cleanly) and the source-scanning tests (162) are clean.
  • tools/pr_overlap.py --branch: no conflict with the 7 pull requests it compared. It could not compare #19710 and #26100, which conflict with main. Both change SpirvAluEmitterFloat64.cpp around lines 344-535 and 1411, away from the three emitters (lines 1016-1060).

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce GTX 1050 Ti (580.178.04), Intel HD Graphics 630 (Mesa 25.2.8 ANV), llvmpipe (Mesa 25.2.8), lavapipe (Mesa 26.0.8); Linux Mint 22.3, kernel 7.0.0-38
  • AI-assisted: yes

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Improved Float64 reciprocal, reciprocal-square-root, and square-root accuracy for very small nonzero values, and improved reciprocal calculations for very large values.
    • Improved handling of denormal values, including results that depend on whether denormals are preserved.
    • Expanded reciprocal checks across floating-point modes to verify results against correctly rounded values, while allowing small rounding differences.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5529388602 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/27859). Originally posted by [GiannisG1](https://github.com/GiannisG1) on 2026-11-27T15:47:33Z. --- ### What `agc_driver_float64_transcendental_denormals` (#22384) fails on Intel ANV (HD Graphics 630, Mesa 25.2.8): `v_rsq_f64 of 0x0000000000000001 with FLOAT_MODE 0x70 is 0x63041cfe99c5bfa8, expected the RDNA 2 value 0x6180000000000000`. That device reports `shaderDenormPreserveFloat64`, so the test checks the denormal rows there. The GTX 1050 Ti and llvmpipe report it false and skip them. The translation computes the three instructions with the host's `Sqrt` and `FDiv` on the operand as it is. Mesa lowers f64 sqrt, rsq and reciprocal in `src/compiler/nir/nir_lower_double_ops.c` (`lower_sqrt_rsq` and `lower_rcp`; with `nir_lower_ddiv`, `fdiv` becomes a multiply by `frcp`). Both build their first estimate from the exponent field as if the operand were normal. For a denormal, whose field is 0 and which has no implicit bit, that estimate is wrong. On top of that, `fix_inv_result` flushes a reciprocal whose exponent comes out at or below zero, so a denormal result becomes ±0 even under `DenormPreserve`. On the HD 630 this gives 10 wrong rows (listed under Tested). `EmitFPRcp64`, `EmitFPRsq64` and `EmitFPSqrt64` now give the host only normal operands and results: - A denormal operand is normalized in integer operations (`FrexpFields`) and scaled by 2^128. It reaches the emitter only when bit 0 of the field keeps it, because the translation flushes it otherwise. Sqrt scales the result back by 2^-64, rsq by 2^64 and rcp by 2^128, so the rcp overflows to ±inf where it should. Multiplying a normal value by a power of two is exact, so the result is the host's value for the operand with its exponent moved. - `v_rcp_f64` of a finite operand with exponent field 0x7fd or above (|x| ≥ 2^1022, whose reciprocal is at most 2^-1022) divides x·2^-128 and multiplies the quotient by 2^-128, so a denormal result comes from a multiply. That rounds twice in the last place of a denormal result. JJenkx measured at most 1 ULP against exact-rational references, over 49,176 inputs from the normal-result cutoff up to the largest finite value; one example is `0x7fd0005b5e3ca0de` → `0x000fffa4a3cd159c`, where a single rounding gives `0x000fffa4a3cd159b` ([review](https://github.com/boykopovar/AnyPS5/pull/27859#pullrequestreview-6090749216)). RDNA2's own results are approximations (see the shader debt entry for these instructions), and the test allows 4 ulp. - Every other operand takes the same path as before, so normal operands give the same results. The test now checks kept denormal inputs on every device, because they no longer depend on the host's f64 denormal support. Devices without `shaderDenormPreserveFloat64` still skip denormal results, which their drivers may flush. ### Tested Linux Mint 22.3, kernel 7.0.0-38, GCC 13.3.0, Release, `BUILD_TESTING=ON`, `ANYPS5_ENABLE_SPIRV_TOOLS=ON`. Head on `main` `4cb7752e50`; it merges cleanly with `main` `10c3156e1c`, where none of the three files has changed. - RED, with the test change alone on `main`'s emitter: the HD 630 fails. A local copy of the test that prints every mismatch instead of stopping at the first shows these 10 rows. The GTX 1050 Ti and llvmpipe pass, with their 4 denormal results skipped: | instruction | input | FLOAT_MODE | HD 630 | RDNA2 | |---|---|---|---|---| | `v_rsq_f64` | `0x0000000000000001` | 0x70, 0xf0 | `0x63041cfe99c5bfa8` | `0x6180000000000000` | | `v_rcp_f64` | `0x0008000000000000` | 0x70, 0xf0 | `0x7fdf9add3da12f66` | `0x7fe0000000000000` | | `v_rcp_f64` | `0x8008000000000000` | 0x70, 0xf0 | `0xffdf9add3da12f66` | `0xffe0000000000000` | | `v_rcp_f64` | `0x7fe0000000000000` | 0xb0, 0xf0 | `0x0000000000000000` | `0x0008000000000000` | | `v_rcp_f64` | `0xffe0000000000000` | 0xb0, 0xf0 | `0x8000000000000000` | `0x8008000000000000` | - GREEN: 3/3 on the GTX 1050 Ti, HD 630, llvmpipe and lavapipe 26.0.8, and once on each with the validation layer (SDK 1.4.363.1), with no VUIDs. The copy that prints every mismatch finds none on any device. The HD 630 now checks every row (0 skipped). - Added after MarcZX10's review (test commit `83bf6c1eec`): a second table of 16 `v_rcp_f64` operands, from just below the 2^1022 threshold up to the largest finite values, both signs, in all four modes, checked against the exactly rounded reciprocal. With `main`'s emitter the HD 630 returns ±0 for 20 of them: every operand above 2^1022, in the two modes that keep denormal results. With this PR all pass 3/3 on the four devices, with no VUIDs. The GTX 1050 Ti and llvmpipe skip the 24 denormal results. - The split suite of this head against a full run of `main` `8b40357971` on the same machine (every test once on the GTX 1050 Ti, the 2089 GPU tests on all three devices). GTX: no failure. HD 630: 13. llvmpipe: 4. These are the failures `main` `4cb7752e50` has on this machine, minus `float64_transcendental_denormals` on the HD 630. - `check_conventions.py`, `check_test_registration.py`, `check_compile.py` (2 translation units), `check_main_sync.py` (merges cleanly) and the source-scanning tests (162) are clean. - `tools/pr_overlap.py --branch`: no conflict with the 7 pull requests it compared. It could not compare #19710 and #26100, which conflict with `main`. Both change `SpirvAluEmitterFloat64.cpp` around lines 344-535 and 1411, away from the three emitters (lines 1016-1060). ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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) and the licence notice of code adapted from upstream (see AGENTS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce GTX 1050 Ti (580.178.04), Intel HD Graphics 630 (Mesa 25.2.8 ANV), llvmpipe (Mesa 25.2.8), lavapipe (Mesa 26.0.8); Linux Mint 22.3, kernel 7.0.0-38 - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Improved Float64 reciprocal, reciprocal-square-root, and square-root accuracy for very small nonzero values, and improved reciprocal calculations for very large values. * Improved handling of denormal values, including results that depend on whether denormals are preserved. * Expanded reciprocal checks across floating-point modes to verify results against correctly rounded values, while allowing small rounding differences. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
JJenkx commented 2026-11-27 16:04:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-11-27T16:04:42Z.

Review: COMMENTED


I checked the scaling formulas at 01532ad9c against exact-rational and 150-digit Decimal CPU references. The integer normalization was exact for 8,345 positive subnormals, including neighbors of every possible leading-one position, and preserved the sign in every negative counterpart. All 16,690 signed subnormal-input reciprocals matched the rounded reference. The largest observed differences were 0 ULP for sqrt and 1 ULP for rsq.

Across 49,176 signed inputs around the normal-result cutoff and up to maximum finite, reciprocal differed by at most 1 ULP. One double-rounding example is 0x7fd0005b5e3ca0de → 0x000fffa4a3cd159c after scaling, versus 0x000fffa4a3cd159b with one exact-rational rounding. This checks the arithmetic independently of Vulkan and the guest hardware measurements.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6090749216 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/27859#pullrequestreview-6090749216). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-11-27T16:04:42Z. **Review:** COMMENTED --- I checked the scaling formulas at `01532ad9c` against exact-rational and 150-digit Decimal CPU references. The integer normalization was exact for 8,345 positive subnormals, including neighbors of every possible leading-one position, and preserved the sign in every negative counterpart. All 16,690 signed subnormal-input reciprocals matched the rounded reference. The largest observed differences were 0 ULP for sqrt and 1 ULP for rsq. Across 49,176 signed inputs around the normal-result cutoff and up to maximum finite, reciprocal differed by at most 1 ULP. One double-rounding example is `0x7fd0005b5e3ca0de` → `0x000fffa4a3cd159c` after scaling, versus `0x000fffa4a3cd159b` with one exact-rational rounding. This checks the arithmetic independently of Vulkan and the guest hardware measurements.
MarcZX10 commented 2026-11-27 16:05:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T16:05:53Z.

Review: COMMENTED


Reviewed — comments

Nothing blocks this review; the points below are optional.

What I ran

Reviewed head 01532ad9cac36e1b8f595a61f0d3625ef8813b38 using repo_read.py. No build or tests were run.

Results

Check Result Note
Source review passed Both changed files read
Build and runtime checks not run Author-reported results are not independently verified

Findings

Blocking

None.

Non-blocking

  • The documented host-dependent tolerance is tested only by author-reported device runs. Consider adding a deterministic test for reciprocal rescaling at the largest finite inputs and near the exponent threshold used by huge (core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterFloat64.cpp:1039).

Not verified

Build, tests, runtime behavior, and author-reported results were not independently verified. Read description.md, commits.md, manifest.json, diff.patch, core/libs/prx/libSceAgcDriver/tests/execution/Float64TranscendentalDenormals.cpp, and core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterFloat64.cpp. files.json was not available in the review bundle; list_files showed both changed files as included, with no excluded changed files.

To get this to a good state

Nothing is required. The optional test suggestion above is the only review comment.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6090761136 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/27859#pullrequestreview-6090761136). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-27T16:05:53Z. **Review:** COMMENTED --- # Reviewed — comments Nothing blocks this review; the points below are optional. ## What I ran Reviewed head `01532ad9cac36e1b8f595a61f0d3625ef8813b38` using `repo_read.py`. No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Both changed files read | | Build and runtime checks | not run | Author-reported results are not independently verified | ## Findings ### Blocking None. ### Non-blocking - The documented host-dependent tolerance is tested only by author-reported device runs. Consider adding a deterministic test for reciprocal rescaling at the largest finite inputs and near the exponent threshold used by `huge` (`core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterFloat64.cpp:1039`). ## Not verified Build, tests, runtime behavior, and author-reported results were not independently verified. Read `description.md`, `commits.md`, `manifest.json`, `diff.patch`, `core/libs/prx/libSceAgcDriver/tests/execution/Float64TranscendentalDenormals.cpp`, and `core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterFloat64.cpp`. `files.json` was not available in the review bundle; `list_files` showed both changed files as included, with no excluded changed files. ## To get this to a good state Nothing is required. The optional test suggestion above is the only review comment.
MarcZX10 commented 2026-12-03 00:38:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-03T00:38:32Z.

Review: APPROVED


Reviewed — looks good

The reviewed change is sound at head 83bf6c1eec1fcd0aabf1cf43b5e92b3c3a3aca19; I found no verified blocking defects.

What I ran

Reviewed the source at the exact head above using repo_read.py. No base merge preview or automated checks were run. The two changed files listed as reviewed were both read; files.json lists no excluded files.

Results

Check Result Note
Source review passed Both changed files read
Automated checks not run No tests or builds run
Author-reported validation not run GPU results not independently verified

Negative control

Not run; no tests were run during this review.

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

No tests, builds, merged-preview checks, GPU runs, or validation-layer runs were performed during this review. The description reports those results, but they were not independently verified. No files were excluded from the review.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6161643830 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/27859#pullrequestreview-6161643830). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-12-03T00:38:32Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed change is sound at head `83bf6c1eec1fcd0aabf1cf43b5e92b3c3a3aca19`; I found no verified blocking defects. ## What I ran Reviewed the source at the exact head above using `repo_read.py`. No base merge preview or automated checks were run. The two changed files listed as reviewed were both read; `files.json` lists no excluded files. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Both changed files read | | Automated checks | not run | No tests or builds run | | Author-reported validation | not run | GPU results not independently verified | ## Negative control Not run; no tests were run during this review. ## Findings ### Blocking None. ### Non-blocking None. ## Sources - [Float64 emitter changes at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/83bf6c1eec1fcd0aabf1cf43b5e92b3c3a3aca19/core/shader/recompiler/SpirvBackend/src/SpirvAlu/SpirvAluEmitterFloat64.cpp#L1021-L1077) - [Denormal and reciprocal test changes at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/83bf6c1eec1fcd0aabf1cf43b5e92b3c3a3aca19/core/libs/prx/libSceAgcDriver/tests/execution/Float64TranscendentalDenormals.cpp#L59-L76) - [Test execution and denormal-result handling at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/83bf6c1eec1fcd0aabf1cf43b5e92b3c3a3aca19/core/libs/prx/libSceAgcDriver/tests/execution/Float64TranscendentalDenormals.cpp#L115-L190) ## Not verified No tests, builds, merged-preview checks, GPU runs, or validation-layer runs were performed during this review. The description reports those results, but they were not independently verified. No files were excluded from the review. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 09:28:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T09:28:28Z.

Review: COMMENTED


Paired Linux CTest runs of agc_driver_float64_transcendental_denormals and agc_driver_gcn_scalar_buffer_base passed on b97867d3ce6b and this patch. The patched fixture includes the added reciprocal assertions. It reported the same 28 device-dependent results skipped as main. Both Mesa lavapipe logs show Khronos validation 1.4.369 inserted and zero VUID- errors.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6166948051 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/27859#pullrequestreview-6166948051). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T09:28:28Z. **Review:** COMMENTED --- Paired Linux CTest runs of `agc_driver_float64_transcendental_denormals` and `agc_driver_gcn_scalar_buffer_base` passed on `b97867d3ce6b` and this patch. The patched fixture includes the added reciprocal assertions. It reported the same 28 device-dependent results skipped as main. Both Mesa lavapipe logs show Khronos validation 1.4.369 inserted and zero `VUID-` errors. AI-assisted: yes.
Plyxen commented 2026-12-03 10:42:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-03T10:42:09Z.

Review: APPROVED


I read the diff at 83bf6c1eec. Windows 11, GCC 15.2, merged into main at b97867d3ce6 together with other open PRs (so not an isolated build), with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 and VK_LAYER_KHRONOS_validation on an RTX 5080 (621.24) and a Radeon iGPU (26.11.2).

  • agc_driver_float64_transcendental_denormals: pass on both GPUs. The loader log shows the layer inserted and no "was not found" line, and neither run has a VUID- or SYNC-HAZARD line.
  • Control (same tree and tests, the changed files of those PRs put back to main's): passes too, because neither of these GPUs shows the fault. So this shows the scaled values give the same results here, not that the fault is gone.

Not checked: a GPU that shows it.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6168176212 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/27859#pullrequestreview-6168176212). Originally posted by [Plyxen](https://github.com/Plyxen) on 2026-12-03T10:42:09Z. **Review:** APPROVED --- I read the diff at `83bf6c1eec`. Windows 11, GCC 15.2, merged into `main` at `b97867d3ce6` together with other open PRs (so not an isolated build), with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1` and `VK_LAYER_KHRONOS_validation` on an RTX 5080 (621.24) and a Radeon iGPU (26.11.2). - `agc_driver_float64_transcendental_denormals`: pass on both GPUs. The loader log shows the layer inserted and no "was not found" line, and neither run has a `VUID-` or `SYNC-HAZARD` line. - Control (same tree and tests, the changed files of those PRs put back to `main`'s): passes too, because neither of these GPUs shows the fault. So this shows the scaled values give the same results here, not that the fault is gone. Not checked: a GPU that shows it. AI-assisted: yes (Claude Code)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.

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

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

No due date set.

Reference
boykopovar/AnyPS5!27859
No description provided.