pan/bi: Add clause encodings as a table
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 29 Dec 2020 12:51:29 +0000 (07:51 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 29 Jan 2021 16:55:44 +0000 (16:55 +0000)
commit9496689f57757d981d43954327d0780978e56619
tree31a639a344e49502d864a7ee8e75d14e287f6f9d
parent34a80e910e68f1d8070cba73d0cf5afc035477b2
pan/bi: Add clause encodings as a table

We would rather not type out all of the packs by hand (that's error
prone), so declaratively specify the encodings as a table corresponding
to the bit patterns.

This is all formats, except for format 12 which just encodes constants.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8723>
src/panfrost/bifrost/bifrost.h