nir: Add relaxed 24bit opcodes
authorJesse Natalie <jenatali@microsoft.com>
Fri, 30 Apr 2021 18:46:09 +0000 (11:46 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 5 May 2021 22:06:42 +0000 (22:06 +0000)
commitd7ca0319d72af55597d8ac4146a5e8a3d55322f5
treebed33e0edec120746ffac1dd3741b7aab4a13c85
parent9410eb7e39e8c90f647f7d4373d54dc44b30c5b2
nir: Add relaxed 24bit opcodes

These are equivalent to the 32bit opcodes if there are no more efficient
24bit opcodes available, but inputs are guaranteed to already be 24bit,
so the 24bit opcodes can be used instead if they exist and are efficient.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10549>
src/compiler/nir/nir_opcodes.py
src/compiler/nir/nir_opt_algebraic.py