mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
agx: Lower f2u8/f2i8
The less 8-bit we need to emulate in the backend the better. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24635>
This commit is contained in:
parent
b3ed5228b4
commit
fa2a7cb2a8
1 changed files with 4 additions and 0 deletions
|
|
@ -39,6 +39,10 @@ lower_pack = [
|
|||
(('u2f32', ('u2u32', a)), ('u2f32', a)),
|
||||
(('i2f32', ('i2i32', a)), ('i2f32', a)),
|
||||
|
||||
# Chew through some 8-bit before the backend has to deal with it
|
||||
(('f2u8', a), ('u2u8', ('f2u16', a))),
|
||||
(('f2i8', a), ('i2i8', ('f2i16', a))),
|
||||
|
||||
# These are based on the lowerings from nir_opt_algebraic, but conditioned
|
||||
# on the number of bits not being constant. If the bit count is constant
|
||||
# (the happy path) we can use our native instruction instead.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue