st/mesa: allow R8 to not be exposed as renderable by driver
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 18 May 2020 18:00:58 +0000 (14:00 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 5 Jul 2020 04:24:04 +0000 (00:24 -0400)
commitef11d5fc8bb7be56d6afa3f980323cf082ee5c16
tree85fa049cd85bd47f73fcebe99de7a1966bc58138
parent9e2afe4f05abc700bb75c373009aa890311bfdc6
st/mesa: allow R8 to not be exposed as renderable by driver

A3xx GPUs support RG8 and RGBA8, but not R8 for rendering. Add RG8 as
fallbacks for integer formats, and require a renderable format to be
picked for all R8 variants.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5748>
src/mesa/state_tracker/st_format.c