panfrost: Use ASTC 2D enums
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 30 Sep 2021 13:35:23 +0000 (09:35 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Sep 2021 14:26:12 +0000 (14:26 +0000)
commita1c6a150123d680de148042a15924d4df39bdd38
treefeb14d9f982f1b8e527ef14f4159c18db8dd49bb
parent3d28039b3ec43e00628681cc3b89ba428be1484b
panfrost: Use ASTC 2D enums

Rather than manipulating the bits to do the mapping, use a dead simple
switch() with the enum definition.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12814>
src/panfrost/lib/pan_texture.c