panfrost: Simplify format class selection
authorAlyssa Rosenzweig <alyssa@collabora.com>
Tue, 25 Jan 2022 23:08:55 +0000 (18:08 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 26 Jan 2022 01:45:09 +0000 (01:45 +0000)
commit5a8d86f69efa4723f703d135a9cd27a982a62861
tree8cc1e920f93ef00abb9a36542b68706c3cf339d4
parentda9d6a643af59f60981f0214055873ae8d49cbb7
panfrost: Simplify format class selection

This was made way more complicated than it needs to be for a Midgard-only pass.
The only caller doesn't care about the class, only if it's native or not.
Simplify it appropriately.

It really isn't that hard.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14724>
src/panfrost/util/pan_lower_framebuffer.c
src/panfrost/util/pan_lower_framebuffer.h