shader: round f16 ALU results to nearest even on every host #1598

Closed
github-bot wants to merge 2 commits from gh-pr/1598/head into gh-pr/1598/base
Owner

@⁠Nawid3333 on GitHub · 2026-10-17 13:35 UTC · original
Nawid3333:shader/f16-round-nearest-even → main · +137 −11 · 4 files · 2 commits · closed without merging

Kyty computes f16 ALU results in f32 and converted them to f16 with PackHalf2x16 (EmitConvertF16F32, and the PackHalf2x16 IR op behind packed f16 math and the f16 unary/trig ops). On RDNA2, V_CVT_F16_F32 and f16 arithmetic round to nearest even. AMD drivers compile PackHalf2x16 to v_cvt_pkrtz_f16_f32 / v_cvt_pk_rtz_f16_f32, which round toward zero (see #1575), so with AMD's own driver every inexact f16 result was truncated. On the Ryzen 7600X iGPU (RDNA2, AMD's non-LLPC compiler) even a plain OpFConvert to f16 compiles to v_cvt_pkrtz_f16_f32 unless the module sets RoundingModeRTE 16.

Change: EmitF32ToF16RneBits converts with integer operations, like your EmitF32BitsToF16RtzBits (9f88043e, renamed in 59d8256b): round to nearest even, also into the f16 denormals; finite values from 65520 up become infinity; NaN keeps the top mantissa bits and gets the quiet bit. EmitConvertF16F32 uses it, and Translator::PackHalf2x16 packs both halves through ConvertF16F32, so the PackHalf2x16 IR op has no producers left and is removed. D16 format loads and formatted stores are not changed here: they are format conversions in the hardware, which round toward zero and keep NaN payloads (measured on both GPUs). The stores are #1588; the D16 loads can follow the same way.

Tests

  • CvtF16F32RoundsToNearestEven: 24 inputs (ties whose lower half has an even and an odd last bit, values just above a tie, 65504 / 65520 / 2^16 / f32 max, the denormal range (the smallest denormals give +0 and -0), NaN payloads) loaded from memory and converted with V_CVT_F16_F32; the expected values are what v_cvt_f16_f32 gives on both GPUs.
  • F16AddRoundsToNearestEven: V_ADD_F16 and V_PK_ADD_F16 sums that fall halfway between two halves, and one that rounds to infinity; the expected values are what v_add_f16 / v_pk_add_f16 give on both GPUs.
  • Both forbid PackHalf2x16 in the SPIR-V and pass on both GPUs, also with the harness forced to 32-wide subgroups (a local switch), with no validation-layer messages. With the tie-breaking bit left out of the rounding (a local mutant), both fail in every configuration.
  • VectorFractF16CapturedAndEdges, VectorFractF16Modifiers, VectorCosF16CapturedSdwaAndEdges and VectorSinF16SdwaAndEdges required PackHalf2x16 in the SPIR-V; that requirement is removed, the rest of each test is unchanged and their results pass.
  • VectorFractF16CapturedAndEdges: since e864cb20, V_FRACT clamps its result below one and the test expects 0x3bff for the tiny negative inputs, the hardware result of my #1209 measurement; it passes on main and with this change.
  • A GLSL copy of EmitF32ToF16RneBits against the GPUs' own v_cvt_f16_f32 for all 2^32 f32 inputs: 0 differences on the RX 9070 XT (RDNA4) and the Ryzen 7600X iGPU (RDNA2), NaNs included. packHalf2x16 differs from it on 2,231,337,984 inputs on both GPUs.
  • On both GPUs, compared with 6aa3846f: the other 723 compute-suite entries in both subgroup modes and the 30 graphics cases keep their status. After merging main (c67352d5), on the RX 9070 XT compared with main: every other compute-suite entry keeps its status, natively and with 32-wide subgroups, and both new tests pass on the iGPU too.
  • shader_cfg_tests (not run by CI) passes.
  • CI (build and tests on Windows, Linux and macOS) passes on 9ebe1892 (the merge with main).

If you'd like this done differently, tell me and I'll change it.

Written with Claude Code (AI): it wrote the change and ran the tests and measurements on my PC (drivers 26.8.1 and 26.10.1, Windows 11).

🤖 Generated with Claude Code

**@⁠Nawid3333** on GitHub · 2026-10-17 13:35 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1598) `Nawid3333:shader/f16-round-nearest-even` → `main` · +137 −11 · 4 files · 2 commits · closed without merging Kyty computes f16 ALU results in f32 and converted them to f16 with `PackHalf2x16` (`EmitConvertF16F32`, and the `PackHalf2x16` IR op behind packed f16 math and the f16 unary/trig ops). On RDNA2, `V_CVT_F16_F32` and f16 arithmetic round to nearest even. AMD drivers compile `PackHalf2x16` to `v_cvt_pkrtz_f16_f32` / `v_cvt_pk_rtz_f16_f32`, which round toward zero (see #1575), so with AMD's own driver every inexact f16 result was truncated. On the Ryzen 7600X iGPU (RDNA2, AMD's non-LLPC compiler) even a plain `OpFConvert` to f16 compiles to `v_cvt_pkrtz_f16_f32` unless the module sets `RoundingModeRTE 16`. **Change:** `EmitF32ToF16RneBits` converts with integer operations, like your `EmitF32BitsToF16RtzBits` (9f88043e, renamed in 59d8256b): round to nearest even, also into the f16 denormals; finite values from 65520 up become infinity; NaN keeps the top mantissa bits and gets the quiet bit. `EmitConvertF16F32` uses it, and `Translator::PackHalf2x16` packs both halves through `ConvertF16F32`, so the `PackHalf2x16` IR op has no producers left and is removed. D16 format loads and formatted stores are not changed here: they are format conversions in the hardware, which round toward zero and keep NaN payloads (measured on both GPUs). The stores are #1588; the D16 loads can follow the same way. **Tests** - `CvtF16F32RoundsToNearestEven`: 24 inputs (ties whose lower half has an even and an odd last bit, values just above a tie, 65504 / 65520 / 2^16 / f32 max, the denormal range (the smallest denormals give +0 and -0), NaN payloads) loaded from memory and converted with V_CVT_F16_F32; the expected values are what `v_cvt_f16_f32` gives on both GPUs. - `F16AddRoundsToNearestEven`: V_ADD_F16 and V_PK_ADD_F16 sums that fall halfway between two halves, and one that rounds to infinity; the expected values are what `v_add_f16` / `v_pk_add_f16` give on both GPUs. - Both forbid `PackHalf2x16` in the SPIR-V and pass on both GPUs, also with the harness forced to 32-wide subgroups (a local switch), with no validation-layer messages. With the tie-breaking bit left out of the rounding (a local mutant), both fail in every configuration. - `VectorFractF16CapturedAndEdges`, `VectorFractF16Modifiers`, `VectorCosF16CapturedSdwaAndEdges` and `VectorSinF16SdwaAndEdges` required ` PackHalf2x16 ` in the SPIR-V; that requirement is removed, the rest of each test is unchanged and their results pass. - `VectorFractF16CapturedAndEdges`: since e864cb20, V_FRACT clamps its result below one and the test expects `0x3bff` for the tiny negative inputs, the hardware result of my #1209 measurement; it passes on main and with this change. - A GLSL copy of `EmitF32ToF16RneBits` against the GPUs' own `v_cvt_f16_f32` for all 2^32 f32 inputs: 0 differences on the RX 9070 XT (RDNA4) and the Ryzen 7600X iGPU (RDNA2), NaNs included. `packHalf2x16` differs from it on 2,231,337,984 inputs on both GPUs. - On both GPUs, compared with 6aa3846f: the other 723 compute-suite entries in both subgroup modes and the 30 graphics cases keep their status. After merging main (c67352d5), on the RX 9070 XT compared with main: every other compute-suite entry keeps its status, natively and with 32-wide subgroups, and both new tests pass on the iGPU too. - `shader_cfg_tests` (not run by CI) passes. - CI (build and tests on Windows, Linux and macOS) passes on 9ebe1892 (the merge with main). If you'd like this done differently, tell me and I'll change it. Written with Claude Code (AI): it wrote the change and ran the tests and measurements on my PC (drivers 26.8.1 and 26.10.1, Windows 11). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
V_CVT_F16_F32 and f16 arithmetic round to nearest even on RDNA2. Kyty converted their f32 results
with PackHalf2x16, which AMD drivers compile to v_cvt_pkrtz_f16_f32 (round toward zero), so on
AMD every inexact f16 result was truncated. Convert with integer operations instead, matching
v_cvt_f16_f32, and pack the halves of packed f16 results through the same conversion.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main moved the RTZ helper out of the anonymous namespace (9f88043e); keep
EmitF32ToF16RneBits inside it and drop the duplicated EmitF32ToU32 and
namespace end from this side of the conflict.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:01:23 +00:00
github-bot closed this pull request 2026-11-26 10:01:23 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-17 13:39 UTC · original · edited 2026-10-28 19:39 UTC

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between da867ea141 and 9ebe189248.

Files selected for processing: 4
  • src/graphics/shader/recompiler/backend/spirv/spirvEmitterAlu.cpp
  • src/graphics/shader/recompiler/frontend/translate/Translate.cpp
  • src/graphics/shader/recompiler/ir/opcodes/ValueOpcodes.inc
  • tests/ShaderRecompilerComputeTests.cpp
Files with no reviewable changes: 1
  • src/graphics/shader/recompiler/ir/opcodes/ValueOpcodes.inc

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Walkthrough

The SPIR-V backend now converts F32 bit patterns to F16 with integer round-to-nearest-even logic, including subnormal handling, overflow, sign preservation, and NaN encoding. The translator converts each packed F32 input to F16 and combines the resulting bits. The PackHalf2x16 IR opcode is removed. Compute tests add conversion and F16 addition cases, and update SPIR-V expectations.

Suggested reviewers: nmzik

Priority: Normal

Change: Bug fix

Merge Risk: Minimal · up to 9ebe1

No identified issue needs resolution before merge; proceed with normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title names the main change: f16 ALU results are rounded to nearest even on every host. The changeset adds an integer-based F32-to-F16 round-to-nearest-even converter, uses it in EmitConvertF16F32…
Description check Passed The description covers the change in detail. It explains the AMD truncation problem caused by PackHalf2x16, the new EmitF32ToF16RneBits converter, the removal of the PackHalf2x16 IR op, the excluded D…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: f16 ALU results are rounded to nearest even on every host. The changeset adds an integer-based F32-to-F16 round-to-nearest-even converter, uses it in EmitConvertF16F32 and Translator::PackHalf2x16, and removes the PackHalf2x16 IR opcode. The title is specific and matches the objectives. It does not mention the removed opcode or the D16 exclusion, which is acceptable.

Full details: Description check

Explanation

The description covers the change in detail. It explains the AMD truncation problem caused by PackHalf2x16, the new EmitF32ToF16RneBits converter, the removal of the PackHalf2x16 IR op, the excluded D16 paths, the added tests, and the verification measurements. It is directly related to the changeset.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files. (1 skipped: 1 too large.)

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-17 13:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1598#issuecomment-6234552691) · edited 2026-10-28 19:39 UTC <!-- coderabbit-ai-generated:v1 --> <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/1598?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg?v=3"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg?v=3"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg?v=3" alt="Review in Change Stack →" height="32"></picture></a> <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. <details> <summary><strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="16" height="16" align="absmiddle" alt=""></picture> Recent review info</strong></summary> <dl> <dd> <!-- review_info_content --> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary> <dl> <dd> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/c67352d5d6dc6fc3fd375deed5c1a89b3e33974e/.coderabbit.yaml>) - **Commit**: [c67352d](<https://github.com/KytyPS5/KytyPS5/commit/c67352d5d6dc6fc3fd375deed5c1a89b3e33974e>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `5f4bf4ae-5682-489a-9cab-c050351c1eca` </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</strong></summary> <dl> <dd> Reviewing files that changed from the base of the PR and between da867ea141ed1344325cb0e88c8b354726468d69 and 9ebe189248f8b2f75d544b6480287194d7e9b77e. </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 4</strong></summary> <dl> <dd> * `src/graphics/shader/recompiler/backend/spirv/spirvEmitterAlu.cpp` * `src/graphics/shader/recompiler/frontend/translate/Translate.cpp` * `src/graphics/shader/recompiler/ir/opcodes/ValueOpcodes.inc` * `tests/ShaderRecompilerComputeTests.cpp` </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-no-changes-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-no-changes.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files with no reviewable changes: 1</strong></summary> <dl> <dd> * src/graphics/shader/recompiler/ir/opcodes/ValueOpcodes.inc </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. </dd> </dl> </details> <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary><strong>Walkthrough</strong></summary> <dl> <dd> The SPIR-V backend now converts F32 bit patterns to F16 with integer round-to-nearest-even logic, including subnormal handling, overflow, sign preservation, and NaN encoding. The translator converts each packed F32 input to F16 and combines the resulting bits. The `PackHalf2x16` IR opcode is removed. Compute tests add conversion and F16 addition cases, and update SPIR-V expectations. **Suggested reviewers:** `nmzik` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> <strong>Priority: <picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/priority-normal-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Normal</strong> <!-- change_assessment_commit:"9ebe189248f8b2f75d544b6480287194d7e9b77e" --> **Change:** Bug fix <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-unassessed-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minimal</strong> · up to <code>9ebe1</code></summary> <dl> <dd> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **⚪ Minimal** · up to `9ebe1` --> <!-- final_review_risk_coverage:{"sourceCommitId":"9ebe189248f8b2f75d544b6480287194d7e9b77e","coveredCommitId":"9ebe189248f8b2f75d544b6480287194d7e9b77e","kind":"reviewed"} --> No identified issue needs resolution before merge; proceed with normal checks. <!-- final_review_risk_end --> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_start --> <details> <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 5</strong></summary> <dl> <dd> | Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title names the main change: f16 ALU results are rounded to nearest even on every host. The changeset adds an integer-based F32-to-F16 round-to-nearest-even converter, uses it in EmitConvertF16F32… | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The description covers the change in detail. It explains the AMD truncation problem caused by PackHalf2x16, the new EmitF32ToF16RneBits converter, the removal of the PackHalf2x16 IR op, the excluded D… | | Docstring Coverage | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… | | Linked Issues check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | <details> <summary><strong>Full details: Title check</strong></summary> <dl> <dd> **Explanation** The title names the main change: f16 ALU results are rounded to nearest even on every host. The changeset adds an integer-based F32-to-F16 round-to-nearest-even converter, uses it in EmitConvertF16F32 and Translator::PackHalf2x16, and removes the PackHalf2x16 IR opcode. The title is specific and matches the objectives. It does not mention the removed opcode or the D16 exclusion, which is acceptable. </dd> </dl> </details> <details> <summary><strong>Full details: Description check</strong></summary> <dl> <dd> **Explanation** The description covers the change in detail. It explains the AMD truncation problem caused by PackHalf2x16, the new EmitF32ToF16RneBits converter, the removal of the PackHalf2x16 IR op, the excluded D16 paths, the added tests, and the verification measurements. It is directly related to the changeset. </dd> </dl> </details> <details> <summary><strong>Full details: Docstring Coverage</strong></summary> <dl> <dd> **Explanation** No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files. (1 skipped: 1 too large.) </dd> </dl> </details> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- autopilot:start --> - [ ] <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autofix</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts <!-- autopilot:end --> <!-- tips_start --> Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=1598)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary><strong>❤️ Share</strong></summary> <dl> <dd> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </dd> </dl> </details> <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
Author
Owner

@⁠NeySlim on GitHub · 2026-10-17 23:09 UTC · original

RADV data point: Radeon 8060S (RDNA 3.5), Mesa 26.2.4, against 763d3be3. The two new tests fail on main here the same way (with the PackHalf2x16 check removed): CvtF16F32RoundsToNearestEven gets 0x3c03 for 0x3c04, 0x7bff for infinity and truncated denormals, and ACO emits s_cvt_pk_rtz_f16_f32 for PackHalf2x16. With the PR both pass, VectorFractF16CapturedAndEdges goes from fail to pass, and the rest of the suite is unchanged.

**@⁠NeySlim** on GitHub · 2026-10-17 23:09 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1598#issuecomment-6242863279) RADV data point: Radeon 8060S (RDNA 3.5), Mesa 26.2.4, against 763d3be3. The two new tests fail on main here the same way (with the `PackHalf2x16` check removed): `CvtF16F32RoundsToNearestEven` gets `0x3c03` for `0x3c04`, `0x7bff` for infinity and truncated denormals, and ACO emits `s_cvt_pk_rtz_f16_f32` for `PackHalf2x16`. With the PR both pass, `VectorFractF16CapturedAndEdges` goes from fail to pass, and the rest of the suite is unchanged.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.