mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
pan/mdg: Lower shifts to 32-bit
Kind of a hack.. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5153>
This commit is contained in:
parent
7a52e975e4
commit
197b398c32
1 changed files with 8 additions and 0 deletions
|
|
@ -52,6 +52,14 @@ algebraic_late = [
|
|||
|
||||
# Fuse clamp_positive. This should probably be shared with Utgard/bifrost
|
||||
(('fmax', a, 0.0), ('fclamp_pos', a)),
|
||||
|
||||
(('ishl', 'a@16', b), ('u2u16', ('ishl', ('u2u32', a), b))),
|
||||
(('ishr', 'a@16', b), ('i2i16', ('ishr', ('i2i32', a), b))),
|
||||
(('ushr', 'a@16', b), ('u2u16', ('ushr', ('u2u32', a), b))),
|
||||
|
||||
(('ishl', 'a@8', b), ('u2u8', ('u2u16', ('ishl', ('u2u32', ('u2u16', a)), b)))),
|
||||
(('ishr', 'a@8', b), ('i2i8', ('i2i16', ('ishr', ('i2i32', ('i2i16', a)), b)))),
|
||||
(('ushr', 'a@8', b), ('u2u8', ('u2u16', ('ushr', ('u2u32', ('u2u16', a)), b)))),
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue