st/mesa: require RGBA2, RGB4, and RGBA4 to be renderable
authorKarol Herbst <kherbst@redhat.com>
Wed, 16 Jan 2019 14:17:31 +0000 (15:17 +0100)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 8 Feb 2019 02:51:45 +0000 (21:51 -0500)
commitcbd1ad6165f0aea7fb7c6fd1b36ad5317dd65cb7
treea7c0f22a16426c96ba7e71cb4463a4967df2e834
parent6010d7b8e8bee1bcea2b329cf6d3b44c5fc3ca66
st/mesa: require RGBA2, RGB4, and RGBA4 to be renderable

If the driver does not support rendering to these formats but does
support texturing, we can end up in incompatibilities between textures
and renderbuffers that are then copied to.

Fixes KHR-GL45.copy_image.functional on nvc0

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Cc: 19.0 <mesa-stable@lists.freedesktop.org>
src/mesa/state_tracker/st_format.c