mesa/formatquery: limit ES target support, fix core context support
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 3 Sep 2016 18:31:44 +0000 (14:31 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 7 Sep 2016 02:45:44 +0000 (22:45 -0400)
commitc42acd93d47452eec492400d1f3e7c66dd9bb672
treef6fd929233ac0998462f89afbb20077af964c38e
parentf654b4983a8411ada20258f8095b3bc5543914c1
mesa/formatquery: limit ES target support, fix core context support

First off, as late as ES 3.2, GetInternalformat only supports
RENDERBUFFER and 2DMS(_ARRAY) targets.

Secondly, the _mesa_has_ext helpers are very accurate... a little too
accurate, some might say. If we only show an extension in compat
profiles because core profiles have the functionality guaranteed, they
will return false. Fix these to either check for a core profile
explicitly, or to a different-but-identical extension available in core
profile.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Matteo Bruni <matteo.mystral@gmail.com>
Tested-by: Matteo Bruni <matteo.mystral@gmail.com>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/main/formatquery.c