pan/bi: Pack csel4 opcodes
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sun, 22 Mar 2020 01:19:43 +0000 (21:19 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sun, 22 Mar 2020 03:32:35 +0000 (03:32 +0000)
commitd9d549ff8837b488f76981f23fa56c42164ee683
tree1ed24b478a148f3657cca4995616bcab320ee664
parent5cdc31abd63302e3da82a1bfee625019e818fc3f
pan/bi: Pack csel4 opcodes

These are pretty straightforward but there's a lot of details to keep
straight. In the IR, we keep a general logical comparator and types
separately; in the hardware, the type gets fused with a (much more)
limited number of comparators. So there's a fair bit of code here to
account for these differences, fusing in the type information, and
changing up argument order as necessary to make it actually correct.
Anything to save a bit!

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4276>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4276>
src/panfrost/bifrost/bi_pack.c
src/panfrost/bifrost/bifrost.h