panfrost: Switch formats to table
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 15 May 2020 22:43:41 +0000 (18:43 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 18:09:26 +0000 (18:09 +0000)
commit861e7dcae6b1156f9eca5ad28b6e21a1e62358da
tree4a2723702f2114235f425ec5a87333ac23f59f9a
parent6be9e094737aa9bf221724f14228bf2f1286bb2f
panfrost: Switch formats to table

Rather than heuristically guessing what PIPE formats correspond to what
in the hardware, hardcode a table. This is more verbose, but a lot more
obvious -- the previous format support code was a source of endless
silent bugs.

v2: Don't report RGB233 (icecream95). Allow RGB5 for texturing
(icecream95).

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5069>
.gitlab-ci/deqp-panfrost-t860-fails.txt
src/gallium/drivers/panfrost/pan_blending.c
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_screen.c
src/panfrost/encoder/pan_format.c
src/panfrost/encoder/pan_texture.c
src/panfrost/encoder/pan_texture.h