mcst-linux-kernel/patches-2024.06.26/qt4-4.8.7/0006-vivante_from_qt5.patch

22 lines
1006 B
Diff

diff --git a/src/gui/egl/qegl_x11.cpp b/src/gui/egl/qegl_x11.cpp
index 409430b..455039e 100644
--- a/src/gui/egl/qegl_x11.cpp
+++ b/src/gui/egl/qegl_x11.cpp
@@ -166,6 +166,15 @@ VisualID QEgl::getCompatibleVisualId(EGLConfig config)
// Skip size checks if implementation supports non-matching visual
// and config (http://bugreports.qt-project.org/browse/QTBUG-9444).
if (QEgl::hasExtension("EGL_NV_post_convert_rounding")) {
+ qWarning("Skip also for QTBUG-9444");
+ 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(display(), EGL_VENDOR);
+ if (vendor && strstr(vendor, "Vivante")) {
+ qWarning("Skip also for Vivante");
XFree(chosenVisualInfo);
return visualId;
}