panfrost: Only use AFBC YTR with RGB and RGBA
authorIcecream95 <ixn@keemail.me>
Tue, 2 Jun 2020 02:14:12 +0000 (14:14 +1200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Jun 2020 15:19:43 +0000 (15:19 +0000)
commit99446c9f7d34a0bbefa47fdd6acb539421b59d65
treeb9cb6732053c63fdfc42028f8c3bca666f50c0e8
parent9ac106defe351428fbe3c62547e6be918b603d32
panfrost: Only use AFBC YTR with RGB and RGBA

The "lossless colorspace transform" is lossy for R and RG formats.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5293>
src/gallium/drivers/panfrost/pan_mfbd.c
src/panfrost/encoder/pan_texture.c