rdna2spirv: accept VOP3 clamp/omod as hardware no-op on v_cvt_{i16,u16}_f16 #435

Open
github-bot wants to merge 1 commit from github-bot/gh-435 into main AGit
Owner

@⁠tahffo68hk-hash on GitHub · 2026-11-24 05:13 UTC · original
tahffo68hk-hash:fix/shader-cvt16-outmod-noop → main · +35 −5 · 2 files · 1 commits · open

Summary

(AI-assisted) Fixes SHADER-CVT16-OUTMOD-NOOP: ools/rdna2spirv.py previously rejected VOP3 clamp, mul:2, mul:4, and div:2 (and SDWA clamp) with Unsupported on the integer-destination 16-bit conversions _cvt_i16_f16 and _cvt_u16_f16.

Native RDNA2 hardware measurement (gfx1036) across all 4 HW_REG_MODE configurations (

**@⁠tahffo68hk-hash** on GitHub · 2026-11-24 05:13 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/435) `tahffo68hk-hash:fix/shader-cvt16-outmod-noop` → `main` · +35 −5 · 2 files · 1 commits · open ### Summary (AI-assisted) Fixes SHADER-CVT16-OUTMOD-NOOP: ools/rdna2spirv.py previously rejected VOP3 clamp, mul:2, mul:4, and div:2 (and SDWA clamp) with Unsupported on the integer-destination 16-bit conversions _cvt_i16_f16 and _cvt_u16_f16. Native RDNA2 hardware measurement (gfx1036) across all 4 HW_REG_MODE configurations (
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:59:59 +00:00
Author
Owner

@⁠Oliwettoo on GitHub · 2026-11-24 10:36 UTC · original

test_alu_cvt_16.py passes with the PR on current main, but the contract isn't updated: docs/design.md's v_cvt_u16_f16/v_cvt_i16_f16 row still says clamp and the output multipliers are rejected as Unsupported rather than guessed, which this PR changes. Please change that row to the new rule. The measured words are only in the PR text, so nobody can reproduce them: please commit a reproducible gfx103x case (an int_hw_probe.py case, or the tools/hw_oracle .asm plus its raw output), as the maintainer asked on #392/#398 (AGENTS.md: a new rule goes in with how it was confirmed). AI-assisted review.

**@⁠Oliwettoo** on GitHub · 2026-11-24 10:36 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/435#issuecomment-7129010070) `test_alu_cvt_16.py` passes with the PR on current `main`, but the contract isn't updated: `docs/design.md`'s `v_cvt_u16_f16`/`v_cvt_i16_f16` row still says `clamp` and the output multipliers are rejected as `Unsupported` rather than guessed, which this PR changes. Please change that row to the new rule. The measured words are only in the PR text, so nobody can reproduce them: please commit a reproducible gfx103x case (an `int_hw_probe.py` case, or the `tools/hw_oracle` .asm plus its raw output), as the maintainer asked on #392/#398 (AGENTS.md: a new rule goes in with how it was confirmed). AI-assisted review.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/435/head:github-bot/gh-435'
git switch 'github-bot/gh-435'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-435'
git switch 'github-bot/gh-435'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-435'
git switch 'github-bot/gh-435'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-435'
git switch 'main'
git merge --squash 'github-bot/gh-435'
git switch 'main'
git merge --ff-only 'github-bot/gh-435'
git switch 'main'
git merge 'github-bot/gh-435'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.