i965: expose RGBA visuals only on Android
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 31 Jul 2017 18:46:23 +0000 (19:46 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 6 Sep 2017 16:48:50 +0000 (17:48 +0100)
commit731ba6924a2ed6cdf47a78fd637a91a19ddcf9ed
treeb4dabe3d989e8d53a4e226ab18d1488aa84b8fbd
parentdad32fc61c21601e3700b88914cd6b9c1271aa85
i965: expose RGBA visuals only on Android

As Marek pointed out in earlier commit - exposing RGBA on other
platforms introduces ~500 Visuals, which are not tested.

Note that this does not quite happen, yet. Reason being that the GLX
code does not check the masks - see scaralEqual().

Thus as we fix that, we'll run into the issue described.

v2: Rebase, while keeping loaderPrivate
v3: Beef-up commit message, getCapability() returns unsigned (Tapani)

Fixes: 1bf703e4ea5 ("dri_interface,egl,gallium: only expose RGBA visuals
on Android")
Cc: Tomasz Figa <tfiga@chromium.org>
Cc: Chad Versace <chadversary@chromium.org>
Cc: Marek Olšák <maraeo@gmail.com>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/drivers/dri/i965/intel_screen.c