summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-03-18 11:03:39 +0100
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-03-18 13:40:52 +0000
commite7bd18f156e508969cc536c0f0b8e3c2c3c75c47 (patch)
treea361f4e086ff795d7859a1238e13d3d8f61868a0
parentce97f37bffca141597ad326d5964dd49abb43a0b (diff)
Fix EGL config - X visual matching for i.MX6
Task-number: QTBUG-44290 Change-Id: I06cbb169803aa8a06ea310651def1f3582194c8e Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
-rw-r--r--src/platformsupport/eglconvenience/qxlibeglintegration.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/platformsupport/eglconvenience/qxlibeglintegration.cpp b/src/platformsupport/eglconvenience/qxlibeglintegration.cpp
index b467b7721f..73661f33bd 100644
--- a/src/platformsupport/eglconvenience/qxlibeglintegration.cpp
+++ b/src/platformsupport/eglconvenience/qxlibeglintegration.cpp
@@ -75,6 +75,12 @@ VisualID QXlibEglIntegration::getCompatibleVisualId(Display *display, EGLDisplay
XFree(chosenVisualInfo);
return visualId;
}
+ // Skip also for i.MX6 where 565 visuals are suggested for the default 444 configs and it works just fine.
+ const char *vendor = eglQueryString(eglDisplay, EGL_VENDOR);
+ if (vendor && strstr(vendor, "Vivante")) {
+ XFree(chosenVisualInfo);
+ return visualId;
+ }
int visualRedSize = qPopulationCount(chosenVisualInfo->red_mask);
int visualGreenSize = qPopulationCount(chosenVisualInfo->green_mask);