mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:05:54 +01:00
[PR #426] rdna2spirv: accept VOP3 clamp no-op on scalar 16-bit mul_lo/max/min/shifts #476
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#476
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/426
Author: @tahffo68hk-hash
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix/shader-int16-clamp-noop📝 Commits (1)
a203bc2rdna2spirv: accept VOP3 clamp no-op on scalar 16-bit mul_lo/max/min/shifts📊 Changes
3 files changed (+31 additions, -7 deletions)
View changed files
📝
docs/design.md(+1 -1)📝
tests/semantic/test_alu_u16_clamp.py(+22 -0)📝
tools/rdna2spirv.py(+8 -6)📄 Description
Summary
(AI-assisted) Fixes SHADER-INT16-CLAMP-NOOP: ools/rdna2spirv.py previously rejected the VOP3 clamp modifier with Unsupported on the eight scalar 16-bit integer instructions _mul_lo_u16, _max_u16, _min_u16, _max_i16, _min_i16, _lshlrev_b16, _lshrrev_b16, and _ashrrev_i16.
Native RDNA2 hardware measurement (gfx1036) shows that all eight instructions accept the VOP3 clamp bit and treat it as a hardware no-op (for example, _mul_lo_u16 0xffff, 0xffff clamp wraps modulo
2^16to🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.