nir: Add un/pack_32_4x8 opcodes
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 13 May 2020 17:51:06 +0000 (13:51 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 25 May 2020 20:03:52 +0000 (20:03 +0000)
commitfcbc022787d4fdfcfdf843d9f720a587e1f0579d
tree7c79ab32faddcb68c8ec17b067c21f1382eaaedf
parent46d5b07c5c39d1b8cf10976f6574a63062dea9c4
nir: Add un/pack_32_4x8 opcodes

Complement the existing un/pack_32_2x16 opcodes. These are useful for
8-bit format packing. On Midgard, they are equivalent to just a 32-bit
move, but other GPUs could lower to other packs if needed.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5107>
src/compiler/nir/nir_opcodes.py