dri_interface,egl,gallium: only expose RGBA visuals on Android
authorMarek Olšák <marek.olsak@amd.com>
Fri, 28 Jul 2017 15:30:34 +0000 (17:30 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 31 Jul 2017 10:49:30 +0000 (12:49 +0200)
commit1bf703e4ea5c4f742bc7ba55d01e5afc3f4e11f9
tree11fe6774ef619cc9a5f073c58c5cf19ddedb611d
parent5d8359ff4d8c379fdf1a78758f405bb4cdf69459
dri_interface,egl,gallium: only expose RGBA visuals on Android

X/GLX can't handle them. This removes almost 500 GLX visuals that were
incorrectly exposed.

Add an optional getCapability callback for querying what the loader can do.

I'm not splitting this patch, because it's already too small.

v2: also add the callback to __DRIimageLoaderExtension

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Cc: 17.2 <mesa-stable@lists.freedesktop.org>
include/GL/internal/dri_interface.h
src/egl/drivers/dri2/platform_android.c
src/gallium/state_trackers/dri/dri_screen.c