diff options
author | Jonathan Liu <net147@gmail.com> | 2014-05-30 00:54:38 +1000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-06-10 12:11:51 +0200 |
commit | e9ad98bbed6065989ef4648e724f27275b35b838 (patch) | |
tree | 8718538fb4ac8badfbb620f11a13b8ca31b03725 /recipes-qt/qt5/qtbase | |
parent | 6374736f37378501793a5191b48545c1fecc0c48 (diff) | |
download | meta-qt5-e9ad98bbed6065989ef4648e724f27275b35b838.tar.gz |
qt5: upgrade from 5.2.1 to 5.3.0
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtbase')
8 files changed, 149 insertions, 123 deletions
diff --git a/recipes-qt/qt5/qtbase/0005-qt_module-Fix-pkgconfig-replacement.patch b/recipes-qt/qt5/qtbase/0005-qt_module-Fix-pkgconfig-replacement.patch index b8768c89..e1135ce6 100644 --- a/recipes-qt/qt5/qtbase/0005-qt_module-Fix-pkgconfig-replacement.patch +++ b/recipes-qt/qt5/qtbase/0005-qt_module-Fix-pkgconfig-replacement.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 7999eeb3f2ab1150aa301ec26ae9bf0788d09c9e Mon Sep 17 00:00:00 2001 | 1 | From 4d690dbc278063648434b0f02bdb1b6f4623b285 Mon Sep 17 00:00:00 2001 |
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | 2 | From: Martin Jansa <Martin.Jansa@gmail.com> |
3 | Date: Sat, 27 Apr 2013 23:15:37 +0200 | 3 | Date: Sat, 27 Apr 2013 23:15:37 +0200 |
4 | Subject: [PATCH 05/14] qt_module: Fix pkgconfig replacement | 4 | Subject: [PATCH 05/14] qt_module: Fix pkgconfig replacement |
@@ -47,10 +47,10 @@ Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | |||
47 | 1 file changed, 13 insertions(+), 7 deletions(-) | 47 | 1 file changed, 13 insertions(+), 7 deletions(-) |
48 | 48 | ||
49 | diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf | 49 | diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf |
50 | index 11509ee..be9b929 100644 | 50 | index 2134077..a88b8cc 100644 |
51 | --- a/mkspecs/features/qt_module.prf | 51 | --- a/mkspecs/features/qt_module.prf |
52 | +++ b/mkspecs/features/qt_module.prf | 52 | +++ b/mkspecs/features/qt_module.prf |
53 | @@ -135,30 +135,36 @@ load(qt_installs) | 53 | @@ -170,30 +170,36 @@ load(qt_installs) |
54 | rplbase = $$dirname(_QMAKE_SUPER_CACHE_)/[^/][^/]* | 54 | rplbase = $$dirname(_QMAKE_SUPER_CACHE_)/[^/][^/]* |
55 | else: \ | 55 | else: \ |
56 | rplbase = $$MODULE_BASE_OUTDIR | 56 | rplbase = $$MODULE_BASE_OUTDIR |
@@ -75,7 +75,7 @@ index 11509ee..be9b929 100644 | |||
75 | +lafile_replace.CONFIG = path | 75 | +lafile_replace.CONFIG = path |
76 | +QMAKE_PRL_INSTALL_REPLACE += lib_replace lafile_replace | 76 | +QMAKE_PRL_INSTALL_REPLACE += lib_replace lafile_replace |
77 | 77 | ||
78 | unix|win32-g++* { | 78 | unix|mingw { |
79 | CONFIG += create_pc | 79 | CONFIG += create_pc |
80 | QMAKE_PKGCONFIG_LIBDIR = $$lib_replace.replace | 80 | QMAKE_PKGCONFIG_LIBDIR = $$lib_replace.replace |
81 | - QMAKE_PKGCONFIG_INCDIR = $$include_replace.replace | 81 | - QMAKE_PKGCONFIG_INCDIR = $$include_replace.replace |
@@ -93,7 +93,7 @@ index 11509ee..be9b929 100644 | |||
93 | + QMAKE_LIBTOOL_INSTALL_REPLACE += lib_replace lafile_replace | 93 | + QMAKE_LIBTOOL_INSTALL_REPLACE += lib_replace lafile_replace |
94 | } | 94 | } |
95 | 95 | ||
96 | unix|win32-g++* { | 96 | unix|mingw { |
97 | -- | 97 | -- |
98 | 1.8.5.3 | 98 | 1.9.3 |
99 | 99 | ||
diff --git a/recipes-qt/qt5/qtbase/0008-qeglplatformintegration-Undefine-CursorShape-from-X..patch b/recipes-qt/qt5/qtbase/0008-qeglplatformintegration-Undefine-CursorShape-from-X..patch new file mode 100644 index 00000000..2f4d80cd --- /dev/null +++ b/recipes-qt/qt5/qtbase/0008-qeglplatformintegration-Undefine-CursorShape-from-X..patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 959b2fb8d8eb5e755e3d9d3d3031b996f96fb23b Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Wed, 19 Mar 2014 18:32:28 +0100 | ||
4 | Subject: [PATCH 8/8] qeglplatformintegration: Undefine CursorShape from X.h | ||
5 | |||
6 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
7 | --- | ||
8 | src/platformsupport/eglconvenience/qeglplatformintegration_p.h | 6 ++++++ | ||
9 | 1 file changed, 6 insertions(+) | ||
10 | |||
11 | diff --git a/src/platformsupport/eglconvenience/qeglplatformintegration_p.h b/src/platformsupport/eglconvenience/qeglplatformintegration_p.h | ||
12 | index f665455..9eb783c 100644 | ||
13 | --- a/src/platformsupport/eglconvenience/qeglplatformintegration_p.h | ||
14 | +++ b/src/platformsupport/eglconvenience/qeglplatformintegration_p.h | ||
15 | @@ -46,6 +46,12 @@ | ||
16 | #include <qpa/qplatformnativeinterface.h> | ||
17 | #include <EGL/egl.h> | ||
18 | |||
19 | +// Undefine CursorShape from X.h, which is causing breakage in Qt::CursorShape in platformsupport/eglconvenience/ | ||
20 | +// /usr/include/X11/X.h:#define CursorShape 0 /* largest size that can be displayed */ | ||
21 | +#ifdef CursorShape | ||
22 | +#undef CursorShape | ||
23 | +#endif | ||
24 | + | ||
25 | QT_BEGIN_NAMESPACE | ||
26 | |||
27 | class QEGLPlatformScreen; | ||
28 | -- | ||
29 | 2.0.0 | ||
30 | |||
diff --git a/recipes-qt/qt5/qtbase/0010-Always-build-uic.patch b/recipes-qt/qt5/qtbase/0010-Always-build-uic.patch index 5681b583..c55bc542 100644 --- a/recipes-qt/qt5/qtbase/0010-Always-build-uic.patch +++ b/recipes-qt/qt5/qtbase/0010-Always-build-uic.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 8a10c6d053fe438aec007e4a73b60ac59716ccd4 Mon Sep 17 00:00:00 2001 | 1 | From 745055eb0f56ec4d48ea2ce57bcf3d0011afcec0 Mon Sep 17 00:00:00 2001 |
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | 2 | From: Martin Jansa <Martin.Jansa@gmail.com> |
3 | Date: Sat, 16 Nov 2013 00:32:30 +0100 | 3 | Date: Sat, 16 Nov 2013 00:32:30 +0100 |
4 | Subject: [PATCH 10/12] Always build uic | 4 | Subject: [PATCH 10/12] Always build uic |
@@ -10,14 +10,14 @@ Change-Id: I257668ac28c22b192e7ec7736e6c23fa3be6bab6 | |||
10 | Signed-off-by: Mikko Levonmaa <mikko.levonmaa@palm.com> | 10 | Signed-off-by: Mikko Levonmaa <mikko.levonmaa@palm.com> |
11 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | 11 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
12 | --- | 12 | --- |
13 | src/src.pro | 4 ++-- | 13 | src/src.pro | 2 +- |
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
15 | 15 | ||
16 | diff --git a/src/src.pro b/src/src.pro | 16 | diff --git a/src/src.pro b/src/src.pro |
17 | index b7887a6..8801544 100644 | 17 | index 6a805a6..90623a6 100644 |
18 | --- a/src/src.pro | 18 | --- a/src/src.pro |
19 | +++ b/src/src.pro | 19 | +++ b/src/src.pro |
20 | @@ -145,7 +145,7 @@ contains(QT_CONFIG, concurrent):SUBDIRS += src_concurrent | 20 | @@ -158,7 +158,7 @@ contains(QT_CONFIG, concurrent):SUBDIRS += src_concurrent |
21 | } | 21 | } |
22 | } | 22 | } |
23 | } | 23 | } |
@@ -26,13 +26,6 @@ index b7887a6..8801544 100644 | |||
26 | 26 | ||
27 | nacl: SUBDIRS -= src_network src_testlib | 27 | nacl: SUBDIRS -= src_network src_testlib |
28 | 28 | ||
29 | @@ -156,4 +156,4 @@ TR_EXCLUDE = \ | ||
30 | src_tools_bootstrap_dbus src_tools_qdbusxml2cpp src_tools_qdbuscpp2xml | ||
31 | |||
32 | sub-tools.depends = $$TOOLS | ||
33 | -QMAKE_EXTRA_TARGETS = sub-tools | ||
34 | \ No newline at end of file | ||
35 | +QMAKE_EXTRA_TARGETS = sub-tools | ||
36 | -- | 29 | -- |
37 | 1.8.5.3 | 30 | 1.9.3 |
38 | 31 | ||
diff --git a/recipes-qt/qt5/qtbase/0013-QOpenGLPaintDevice-sub-area-support.patch b/recipes-qt/qt5/qtbase/0013-QOpenGLPaintDevice-sub-area-support.patch index c6ec67cb..54039de9 100644 --- a/recipes-qt/qt5/qtbase/0013-QOpenGLPaintDevice-sub-area-support.patch +++ b/recipes-qt/qt5/qtbase/0013-QOpenGLPaintDevice-sub-area-support.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 2fad0a6fa3c06577995ac44ed0a2a12eaef819c2 Mon Sep 17 00:00:00 2001 | 1 | From 3c7bfc66e6c84fe06b16dfa0b76ee71701e8d5b5 Mon Sep 17 00:00:00 2001 |
2 | From: Jani Hautakangas <jani.hautakangas@ixonos.com> | 2 | From: Jani Hautakangas <jani.hautakangas@ixonos.com> |
3 | Date: Thu, 16 May 2013 09:52:07 +0300 | 3 | Date: Thu, 16 May 2013 09:52:07 +0300 |
4 | Subject: [PATCH 13/14] QOpenGLPaintDevice sub-area support | 4 | Subject: [PATCH 13/14] QOpenGLPaintDevice sub-area support |
@@ -14,13 +14,13 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | |||
14 | --- | 14 | --- |
15 | src/gui/opengl/qopenglpaintdevice.cpp | 12 ++++++++++++ | 15 | src/gui/opengl/qopenglpaintdevice.cpp | 12 ++++++++++++ |
16 | src/gui/opengl/qopenglpaintdevice.h | 2 ++ | 16 | src/gui/opengl/qopenglpaintdevice.h | 2 ++ |
17 | src/gui/opengl/qopenglpaintengine.cpp | 10 +++++++--- | 17 | src/gui/opengl/qopenglpaintengine.cpp | 9 +++++++-- |
18 | src/gui/opengl/qopenglpaintengine_p.h | 1 + | 18 | src/gui/opengl/qopenglpaintengine_p.h | 1 + |
19 | src/gui/opengl/qopengltextureglyphcache.cpp | 2 +- | 19 | src/gui/opengl/qopengltextureglyphcache.cpp | 2 +- |
20 | 5 files changed, 23 insertions(+), 4 deletions(-) | 20 | 5 files changed, 23 insertions(+), 3 deletions(-) |
21 | 21 | ||
22 | diff --git a/src/gui/opengl/qopenglpaintdevice.cpp b/src/gui/opengl/qopenglpaintdevice.cpp | 22 | diff --git a/src/gui/opengl/qopenglpaintdevice.cpp b/src/gui/opengl/qopenglpaintdevice.cpp |
23 | index fa392d1..5df1762 100644 | 23 | index 6750458..034630a 100644 |
24 | --- a/src/gui/opengl/qopenglpaintdevice.cpp | 24 | --- a/src/gui/opengl/qopenglpaintdevice.cpp |
25 | +++ b/src/gui/opengl/qopenglpaintdevice.cpp | 25 | +++ b/src/gui/opengl/qopenglpaintdevice.cpp |
26 | @@ -111,6 +111,7 @@ class QOpenGLPaintDevicePrivate | 26 | @@ -111,6 +111,7 @@ class QOpenGLPaintDevicePrivate |
@@ -76,7 +76,7 @@ index c05571c..01eb1bc 100644 | |||
76 | void setSize(const QSize &size); | 76 | void setSize(const QSize &size); |
77 | void setDevicePixelRatio(qreal devicePixelRatio); | 77 | void setDevicePixelRatio(qreal devicePixelRatio); |
78 | diff --git a/src/gui/opengl/qopenglpaintengine.cpp b/src/gui/opengl/qopenglpaintengine.cpp | 78 | diff --git a/src/gui/opengl/qopenglpaintengine.cpp b/src/gui/opengl/qopenglpaintengine.cpp |
79 | index 0513551..f6aeb15 100644 | 79 | index 81a0d82..ce57261 100644 |
80 | --- a/src/gui/opengl/qopenglpaintengine.cpp | 80 | --- a/src/gui/opengl/qopenglpaintengine.cpp |
81 | +++ b/src/gui/opengl/qopenglpaintengine.cpp | 81 | +++ b/src/gui/opengl/qopenglpaintengine.cpp |
82 | @@ -1985,7 +1985,10 @@ bool QOpenGL2PaintEngineEx::begin(QPaintDevice *pdev) | 82 | @@ -1985,7 +1985,10 @@ bool QOpenGL2PaintEngineEx::begin(QPaintDevice *pdev) |
@@ -90,24 +90,24 @@ index 0513551..f6aeb15 100644 | |||
90 | d->width = sz.width(); | 90 | d->width = sz.width(); |
91 | d->height = sz.height(); | 91 | d->height = sz.height(); |
92 | d->mode = BrushDrawingMode; | 92 | d->mode = BrushDrawingMode; |
93 | @@ -2073,7 +2076,7 @@ void QOpenGL2PaintEngineEx::ensureActive() | 93 | @@ -2070,7 +2073,7 @@ void QOpenGL2PaintEngineEx::ensureActive() |
94 | d->device->ensureActiveTarget(); | 94 | d->device->ensureActiveTarget(); |
95 | 95 | ||
96 | d->transferMode(BrushDrawingMode); | 96 | d->transferMode(BrushDrawingMode); |
97 | - glViewport(0, 0, d->width, d->height); | 97 | - d->funcs.glViewport(0, 0, d->width, d->height); |
98 | + glViewport(d->x, d->y, d->width, d->height); | 98 | + d->funcs.glViewport(d->x, d->y, d->width, d->height); |
99 | d->needsSync = false; | 99 | d->needsSync = false; |
100 | d->lastMaskTextureUsed = 0; | 100 | d->lastMaskTextureUsed = 0; |
101 | d->shaderManager->setDirty(); | 101 | d->shaderManager->setDirty(); |
102 | @@ -2116,6 +2119,7 @@ void QOpenGL2PaintEngineExPrivate::updateClipScissorTest() | 102 | @@ -2113,6 +2116,7 @@ void QOpenGL2PaintEngineExPrivate::updateClipScissorTest() |
103 | if (bounds == QRect(0, 0, width, height)) { | 103 | if (bounds == QRect(0, 0, width, height)) { |
104 | glDisable(GL_SCISSOR_TEST); | 104 | funcs.glDisable(GL_SCISSOR_TEST); |
105 | } else { | 105 | } else { |
106 | + bounds = QRect(bounds.x(), bounds.y(), bounds.width(), bounds.height()); | 106 | + bounds = QRect(bounds.x(), bounds.y(), bounds.width(), bounds.height()); |
107 | glEnable(GL_SCISSOR_TEST); | 107 | funcs.glEnable(GL_SCISSOR_TEST); |
108 | setScissor(bounds); | 108 | setScissor(bounds); |
109 | } | 109 | } |
110 | @@ -2124,14 +2128,14 @@ void QOpenGL2PaintEngineExPrivate::updateClipScissorTest() | 110 | @@ -2121,12 +2125,13 @@ void QOpenGL2PaintEngineExPrivate::updateClipScissorTest() |
111 | 111 | ||
112 | void QOpenGL2PaintEngineExPrivate::setScissor(const QRect &rect) | 112 | void QOpenGL2PaintEngineExPrivate::setScissor(const QRect &rect) |
113 | { | 113 | { |
@@ -120,12 +120,10 @@ index 0513551..f6aeb15 100644 | |||
120 | } | 120 | } |
121 | + bottom += y; | 121 | + bottom += y; |
122 | const int height = rect.height(); | 122 | const int height = rect.height(); |
123 | - | ||
124 | glScissor(left, bottom, width, height); | ||
125 | } | ||
126 | 123 | ||
124 | funcs.glScissor(left, bottom, width, height); | ||
127 | diff --git a/src/gui/opengl/qopenglpaintengine_p.h b/src/gui/opengl/qopenglpaintengine_p.h | 125 | diff --git a/src/gui/opengl/qopenglpaintengine_p.h b/src/gui/opengl/qopenglpaintengine_p.h |
128 | index d51f0e5..0d4b38d 100644 | 126 | index 4f0e2e5..f211de1 100644 |
129 | --- a/src/gui/opengl/qopenglpaintengine_p.h | 127 | --- a/src/gui/opengl/qopenglpaintengine_p.h |
130 | +++ b/src/gui/opengl/qopenglpaintengine_p.h | 128 | +++ b/src/gui/opengl/qopenglpaintengine_p.h |
131 | @@ -264,6 +264,7 @@ public: | 129 | @@ -264,6 +264,7 @@ public: |
@@ -137,18 +135,18 @@ index d51f0e5..0d4b38d 100644 | |||
137 | QOpenGLContext *ctx; | 135 | QOpenGLContext *ctx; |
138 | EngineMode mode; | 136 | EngineMode mode; |
139 | diff --git a/src/gui/opengl/qopengltextureglyphcache.cpp b/src/gui/opengl/qopengltextureglyphcache.cpp | 137 | diff --git a/src/gui/opengl/qopengltextureglyphcache.cpp b/src/gui/opengl/qopengltextureglyphcache.cpp |
140 | index 3b62d1d..a5d1f7e 100644 | 138 | index ac88d9d..6c77f10 100644 |
141 | --- a/src/gui/opengl/qopengltextureglyphcache.cpp | 139 | --- a/src/gui/opengl/qopengltextureglyphcache.cpp |
142 | +++ b/src/gui/opengl/qopengltextureglyphcache.cpp | 140 | +++ b/src/gui/opengl/qopengltextureglyphcache.cpp |
143 | @@ -273,7 +273,7 @@ void QOpenGLTextureGlyphCache::resizeTextureData(int width, int height) | 141 | @@ -315,7 +315,7 @@ void QOpenGLTextureGlyphCache::resizeTextureData(int width, int height) |
144 | funcs.glBindFramebuffer(GL_FRAMEBUFFER, (GLuint)oldFbo); | 142 | funcs->glBindFramebuffer(GL_FRAMEBUFFER, (GLuint)oldFbo); |
145 | 143 | ||
146 | if (pex != 0) { | 144 | if (pex != 0) { |
147 | - glViewport(0, 0, pex->width, pex->height); | 145 | - funcs->glViewport(0, 0, pex->width, pex->height); |
148 | + glViewport(pex->x, pex->y, pex->width, pex->height); | 146 | + funcs->glViewport(pex->x, pex->y, pex->width, pex->height); |
149 | pex->updateClipScissorTest(); | 147 | pex->updateClipScissorTest(); |
150 | } else { | 148 | } else { |
151 | m_blitProgram->disableAttributeArray(int(QT_VERTEX_COORDS_ATTR)); | 149 | if (m_vao.isCreated()) { |
152 | -- | 150 | -- |
153 | 1.8.5.3 | 151 | 1.9.3 |
154 | 152 | ||
diff --git a/recipes-qt/qt5/qtbase/0015-Fix-linuxfb-argument-mmsize-parsing.patch b/recipes-qt/qt5/qtbase/0015-Fix-linuxfb-argument-mmsize-parsing.patch deleted file mode 100644 index a31301e3..00000000 --- a/recipes-qt/qt5/qtbase/0015-Fix-linuxfb-argument-mmsize-parsing.patch +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | From 99979159a404df09495c8ddd6a052837f66b8739 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Peter=20K=C3=BCmmel?= <syntheticpp@gmx.net> | ||
3 | Date: Fri, 7 Feb 2014 13:12:37 +0100 | ||
4 | Subject: [PATCH] Fix linuxfb argument 'mmsize' parsing | ||
5 | |||
6 | Parse first for 'mmsize' because the regex for 'size' also fits to 'mmsize'. | ||
7 | |||
8 | Upstream-Status: Backport | ||
9 | |||
10 | Task-number: QTBUG-29133 | ||
11 | Change-Id: Idc4950270818e496d5d94a97a172b7c780f069b1 | ||
12 | Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com> | ||
13 | Signed-off-by: Jonathan Liu <net147@gmail.com> | ||
14 | --- | ||
15 | src/plugins/platforms/linuxfb/qlinuxfbscreen.cpp | 4 ++-- | ||
16 | 1 files changed, 2 insertions(+), 2 deletions(-) | ||
17 | |||
18 | diff --git a/src/plugins/platforms/linuxfb/qlinuxfbscreen.cpp b/src/plugins/platforms/linuxfb/qlinuxfbscreen.cpp | ||
19 | index 735a43d..33a9523 100644 | ||
20 | --- a/src/plugins/platforms/linuxfb/qlinuxfbscreen.cpp | ||
21 | +++ b/src/plugins/platforms/linuxfb/qlinuxfbscreen.cpp | ||
22 | @@ -333,6 +333,8 @@ bool QLinuxFbScreen::initialize() | ||
23 | foreach (const QString &arg, mArgs) { | ||
24 | if (arg == QLatin1String("nographicsmodeswitch")) | ||
25 | doSwitchToGraphicsMode = false; | ||
26 | + else if (mmSizeRx.indexIn(arg) != -1) | ||
27 | + userMmSize = QSize(mmSizeRx.cap(1).toInt(), mmSizeRx.cap(2).toInt()); | ||
28 | else if (sizeRx.indexIn(arg) != -1) | ||
29 | userGeometry.setSize(QSize(sizeRx.cap(1).toInt(), sizeRx.cap(2).toInt())); | ||
30 | else if (offsetRx.indexIn(arg) != -1) | ||
31 | @@ -341,8 +343,6 @@ bool QLinuxFbScreen::initialize() | ||
32 | ttyDevice = ttyRx.cap(1); | ||
33 | else if (fbRx.indexIn(arg) != -1) | ||
34 | fbDevice = fbRx.cap(1); | ||
35 | - else if (mmSizeRx.indexIn(arg) != -1) | ||
36 | - userMmSize = QSize(mmSizeRx.cap(1).toInt(), mmSizeRx.cap(2).toInt()); | ||
37 | } | ||
38 | |||
39 | if (fbDevice.isEmpty()) { | ||
40 | -- | ||
41 | 1.7.1 | ||
42 | |||
diff --git a/recipes-qt/qt5/qtbase/0015-Fix-missing-plugin_types.patch b/recipes-qt/qt5/qtbase/0015-Fix-missing-plugin_types.patch new file mode 100644 index 00000000..612cbdda --- /dev/null +++ b/recipes-qt/qt5/qtbase/0015-Fix-missing-plugin_types.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From f0e01b788e86f24352ba14ad17c3f337f934467d Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Mon, 21 Apr 2014 15:09:23 +0200 | ||
4 | Subject: [PATCH] Fix missing plugin_types | ||
5 | |||
6 | * bearer/generic was failing with: | ||
7 | Project ERROR: No module claims plugin type 'bearer' | ||
8 | |||
9 | Change-Id: I90848856a8b0a4df52e599983cf7dde0bc0e6623 | ||
10 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
11 | --- | ||
12 | mkspecs/features/qt_module_pris.prf | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/mkspecs/features/qt_module_pris.prf b/mkspecs/features/qt_module_pris.prf | ||
16 | index f31bc38..415e780 100644 | ||
17 | --- a/mkspecs/features/qt_module_pris.prf | ||
18 | +++ b/mkspecs/features/qt_module_pris.prf | ||
19 | @@ -177,7 +177,7 @@ MODULE_FWD_PRI = $$mod_work_pfx/qt_lib_$${MODULE_ID}.pri | ||
20 | include($$mod_work_pfx/qt_lib_$${pri}.pri) | ||
21 | for(mod, mods_to_load) { | ||
22 | for(var, $$list(VERSION MAJOR_VERSION MINOR_VERSION PATCH_VERSION \ | ||
23 | - name depends module_config CONFIG DEFINES sources \ | ||
24 | + name depends module_config plugin_types CONFIG DEFINES sources \ | ||
25 | includes bins libs libexecs plugins imports qml \ | ||
26 | rpath_link \ | ||
27 | )):defined(QT.$${mod}.$$var, var):cache(QT.$${mod}.$$var, transient) | ||
28 | -- | ||
29 | 1.9.1 | ||
30 | |||
diff --git a/recipes-qt/qt5/qtbase/0016-Revert-eglfs-Print-the-chosen-config-in-debug-mode.patch b/recipes-qt/qt5/qtbase/0016-Revert-eglfs-Print-the-chosen-config-in-debug-mode.patch new file mode 100644 index 00000000..65ebbd1c --- /dev/null +++ b/recipes-qt/qt5/qtbase/0016-Revert-eglfs-Print-the-chosen-config-in-debug-mode.patch | |||
@@ -0,0 +1,56 @@ | |||
1 | From 91b185d1f4843d22d42461c0aee4cd0f5393bbc8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Mon, 21 Apr 2014 19:22:04 +0200 | ||
4 | Subject: [PATCH] Revert "eglfs: Print the chosen config in debug mode" | ||
5 | |||
6 | This reverts commit dc685cf6331f5fb46285cf10d6464c2ecf41f73e. | ||
7 | --- | ||
8 | src/platformsupport/eglconvenience/qeglconvenience.cpp | 4 +++- | ||
9 | src/platformsupport/eglconvenience/qeglplatformcontext.cpp | 7 ------- | ||
10 | 2 files changed, 3 insertions(+), 8 deletions(-) | ||
11 | |||
12 | diff --git a/src/platformsupport/eglconvenience/qeglconvenience.cpp b/src/platformsupport/eglconvenience/qeglconvenience.cpp | ||
13 | index e6624fb..3870f6c 100644 | ||
14 | --- a/src/platformsupport/eglconvenience/qeglconvenience.cpp | ||
15 | +++ b/src/platformsupport/eglconvenience/qeglconvenience.cpp | ||
16 | @@ -437,9 +437,11 @@ void q_printEglConfig(EGLDisplay display, EGLConfig config) | ||
17 | for (index = 0; attrs[index].attr != -1; ++index) { | ||
18 | EGLint value; | ||
19 | if (eglGetConfigAttrib(display, config, attrs[index].attr, &value)) { | ||
20 | - qDebug("\t%s: %d", attrs[index].name, (int)value); | ||
21 | + qWarning("\t%s: %d\n", attrs[index].name, (int)value); | ||
22 | } | ||
23 | } | ||
24 | + | ||
25 | + qWarning("\n"); | ||
26 | } | ||
27 | |||
28 | #ifdef Q_OS_LINUX | ||
29 | diff --git a/src/platformsupport/eglconvenience/qeglplatformcontext.cpp b/src/platformsupport/eglconvenience/qeglplatformcontext.cpp | ||
30 | index eec6463..4a7c69b 100644 | ||
31 | --- a/src/platformsupport/eglconvenience/qeglplatformcontext.cpp | ||
32 | +++ b/src/platformsupport/eglconvenience/qeglplatformcontext.cpp | ||
33 | @@ -44,7 +44,6 @@ | ||
34 | #include "qeglpbuffer_p.h" | ||
35 | #include <qpa/qplatformwindow.h> | ||
36 | #include <QOpenGLContext> | ||
37 | -#include <QDebug> | ||
38 | |||
39 | QT_BEGIN_NAMESPACE | ||
40 | |||
41 | @@ -192,12 +191,6 @@ void QEGLPlatformContext::init(const QSurfaceFormat &format, QPlatformOpenGLCont | ||
42 | return; | ||
43 | } | ||
44 | |||
45 | - static const bool printConfig = qgetenv("QT_QPA_EGLFS_DEBUG").toInt(); | ||
46 | - if (printConfig) { | ||
47 | - qDebug() << "Created context for format" << format << "with config:"; | ||
48 | - q_printEglConfig(m_eglDisplay, m_eglConfig); | ||
49 | - } | ||
50 | - | ||
51 | #ifndef QT_NO_OPENGL | ||
52 | // Make the context current to ensure the GL version query works. This needs a surface too. | ||
53 | const EGLint pbufferAttributes[] = { | ||
54 | -- | ||
55 | 1.9.1 | ||
56 | |||
diff --git a/recipes-qt/qt5/qtbase/0016-eglfs-Fix-quad-coordinates.patch b/recipes-qt/qt5/qtbase/0016-eglfs-Fix-quad-coordinates.patch deleted file mode 100644 index 92785e45..00000000 --- a/recipes-qt/qt5/qtbase/0016-eglfs-Fix-quad-coordinates.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | From 84756d94c73885803ad8044099ab47c0c49b5076 Mon Sep 17 00:00:00 2001 | ||
2 | From: Laszlo Agocs <laszlo.agocs@digia.com> | ||
3 | Date: Thu, 23 Jan 2014 11:45:22 +0100 | ||
4 | Subject: [PATCH] eglfs: Fix quad coordinates | ||
5 | |||
6 | Prevent artifacts on raster windows by properly mapping | ||
7 | the coordinates to [-1,1]. | ||
8 | |||
9 | Upstream-Status: Backport | ||
10 | |||
11 | Task-number: QTBUG-36370 | ||
12 | Change-Id: I95d0d03952f597ef4ce6a950c6533a3af2df964a | ||
13 | Reviewed-by: Andy Nichols <andy.nichols@digia.com> | ||
14 | Signed-off-by: Jonathan Liu <net147@gmail.com> | ||
15 | --- | ||
16 | src/plugins/platforms/eglfs/qeglfscompositor.cpp | 5 +++-- | ||
17 | 1 file changed, 3 insertions(+), 2 deletions(-) | ||
18 | |||
19 | diff --git a/src/plugins/platforms/eglfs/qeglfscompositor.cpp b/src/plugins/platforms/eglfs/qeglfscompositor.cpp | ||
20 | index 845bb5b..1efc4f7 100644 | ||
21 | --- a/src/plugins/platforms/eglfs/qeglfscompositor.cpp | ||
22 | +++ b/src/plugins/platforms/eglfs/qeglfscompositor.cpp | ||
23 | @@ -153,10 +153,11 @@ void QEglFSCompositor::render(QEglFSWindow *window, uint texture, bool raster) | ||
24 | QPoint tl = r.topLeft(); | ||
25 | QPoint br = r.bottomRight(); | ||
26 | |||
27 | + // Map to [-1,1] | ||
28 | GLfloat x1 = (tl.x() / sr.width()) * 2 - 1; | ||
29 | - GLfloat x2 = (br.x() / sr.width()) * 2 - 1; | ||
30 | GLfloat y1 = ((sr.height() - tl.y()) / sr.height()) * 2 - 1; | ||
31 | - GLfloat y2 = ((sr.height() - br.y()) / sr.height()) * 2 - 1; | ||
32 | + GLfloat x2 = ((br.x() + 1) / sr.width()) * 2 - 1; | ||
33 | + GLfloat y2 = ((sr.height() - (br.y() + 1)) / sr.height()) * 2 - 1; | ||
34 | |||
35 | if (!raster) | ||
36 | qSwap(y1, y2); | ||
37 | -- | ||
38 | 1.7.1 | ||
39 | |||