panfrost: Add a blendable format table
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 27 Oct 2020 22:44:54 +0000 (18:44 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sat, 31 Oct 2020 14:09:18 +0000 (14:09 +0000)
commitd9b16ca4c91242cc9846e6590c7acfa997a010df
treee85113b4e0739d159132cb9879c0bccd0e86d6c4
parent666677d0ef5cfbb585270f21da6818e893c26a4a
panfrost: Add a blendable format table

Map PIPE formats that are fixed-function blendable to their (internal,
writeback) tuple. Formats which are renderable but require a blend
shadeer will be handled elsewhere to keep this easy to verify.

Notice the subset of SFBD and MFBD color writeback formats used to
identify fixed-function blendable formats are bit compatible, so it
suffices to store only the MFBD variants.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Christian Hewitt <christianshewitt@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7352>
src/panfrost/lib/pan_format.c
src/panfrost/lib/pan_texture.h