diff options
| author | Javier Viguera <javier.viguera@digi.com> | 2014-03-05 18:52:18 +0100 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2014-03-07 11:37:36 -0300 |
| commit | d1d1b4336e7679f226bbb593a9fed449b3c72ea7 (patch) | |
| tree | f7be707becf6f00451b42f68b7235655247e1813 | |
| parent | fe33ed73ede3dd22ac977ea72b1ba208b417b152 (diff) | |
| download | meta-freescale-d1d1b4336e7679f226bbb593a9fed449b3c72ea7.tar.gz | |
qt4-x11-free: workaround QT/EGL mismatch for MX6
Fix following error:
Warning: EGL suggested using X Visual ID 33 (ARGB0888) for EGL config 28 (ARGB0444), but this is incompatable
Unable to find an X11 visual which matches EGL config 28
Change-Id: I4b122fdf88a8ddbb54b109587e8c0482311d4cd2
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
| -rw-r--r-- | meta-fsl-arm/recipes-qt/qt4/qt4-x11-free_4.8.5.bbappend | 2 | ||||
| -rw-r--r-- | meta-fsl-arm/recipes-qt/qt4/qt4/0003-i.MX6-force-egl-visual-ID-33.patch | 35 |
2 files changed, 37 insertions, 0 deletions
diff --git a/meta-fsl-arm/recipes-qt/qt4/qt4-x11-free_4.8.5.bbappend b/meta-fsl-arm/recipes-qt/qt4/qt4-x11-free_4.8.5.bbappend index 7090bedc5..cf763b64a 100644 --- a/meta-fsl-arm/recipes-qt/qt4/qt4-x11-free_4.8.5.bbappend +++ b/meta-fsl-arm/recipes-qt/qt4/qt4-x11-free_4.8.5.bbappend | |||
| @@ -11,3 +11,5 @@ QT_CONFIG_FLAGS_append_mx6 = " -I${STAGING_KERNEL_DIR}/include/uapi \ | |||
| 11 | -I${STAGING_KERNEL_DIR}/include/ \ | 11 | -I${STAGING_KERNEL_DIR}/include/ \ |
| 12 | -DLINUX=1 -DEGL_API_FB=1 \ | 12 | -DLINUX=1 -DEGL_API_FB=1 \ |
| 13 | -DQT_QPA_EXPERIMENTAL_TOUCHEVENT=1" | 13 | -DQT_QPA_EXPERIMENTAL_TOUCHEVENT=1" |
| 14 | |||
| 15 | SRC_URI_append_mx6 = " file://0003-i.MX6-force-egl-visual-ID-33.patch" | ||
diff --git a/meta-fsl-arm/recipes-qt/qt4/qt4/0003-i.MX6-force-egl-visual-ID-33.patch b/meta-fsl-arm/recipes-qt/qt4/qt4/0003-i.MX6-force-egl-visual-ID-33.patch new file mode 100644 index 000000000..9aa158d7e --- /dev/null +++ b/meta-fsl-arm/recipes-qt/qt4/qt4/0003-i.MX6-force-egl-visual-ID-33.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | From: Javier Viguera <javier.viguera@digi.com> | ||
| 2 | Date: Mon, 3 Mar 2014 17:10:41 +0100 | ||
| 3 | Subject: [PATCH] i.MX6: force egl visual ID 33 | ||
| 4 | |||
| 5 | Workaround mismatch between EGL binary libraries and QT for FSL MX6 | ||
| 6 | based platforms. | ||
| 7 | |||
| 8 | Error: | ||
| 9 | Warning: EGL suggested using X Visual ID 33 (ARGB0888) for EGL config 28 (ARGB0444), but this is incompatable | ||
| 10 | Unable to find an X11 visual which matches EGL config 28 | ||
| 11 | |||
| 12 | Patch adapted from: | ||
| 13 | |||
| 14 | http://wiki.wandboard.org/index.php/Integrate_Qt5_into_yocto_sato_image_on_Wandboard | ||
| 15 | |||
| 16 | Upstream-Status: Inappropriate [workaround] | ||
| 17 | |||
| 18 | Signed-off-by: Javier Viguera <javier.viguera@digi.com> | ||
| 19 | --- | ||
| 20 | src/gui/egl/qegl_x11.cpp | 2 +- | ||
| 21 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 22 | |||
| 23 | diff --git a/src/gui/egl/qegl_x11.cpp b/src/gui/egl/qegl_x11.cpp | ||
| 24 | index 196d0f77bf2d..8acf5a6c99d4 100644 | ||
| 25 | --- a/src/gui/egl/qegl_x11.cpp | ||
| 26 | +++ b/src/gui/egl/qegl_x11.cpp | ||
| 27 | @@ -319,7 +319,7 @@ VisualID QEgl::getCompatibleVisualId(EGLConfig config) | ||
| 28 | } | ||
| 29 | |||
| 30 | qWarning("Unable to find an X11 visual which matches EGL config %d", configId); | ||
| 31 | - return (VisualID)0; | ||
| 32 | + return (VisualID)33; | ||
| 33 | } | ||
| 34 | |||
| 35 | void qt_set_winid_on_widget(QWidget* w, Qt::HANDLE id) | ||
