qtbase: eglfs: fix egl error for platforms only supporting one window/surface
PATCH 1/2 qtbase: eglfs: fix egl error for platforms only supporting one window/surface
--- recipes-qt/qt5/qtbase.inc | 1 + ...gl-error-for-platforms-only-supporting-on.patch | 63 ++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 recipes-qt/qt5/qtbase/0015-eglfs-fix-egl-error-for-platforms-only-supporting-on.patch
recipes-qt/qt5/qtbase.inc +1 -0
@@ -19,6 +19,7 @@ SRC_URI += "\ file://0012-qtbase-allow-build-of-examples.patch \ file://0013-QOpenGLPaintDevice-sub-area-support.patch \ file://0014-enables-tslib-device-to-be-read-from-env-variable.patch \ + file://0015-eglfs-fix-egl-error-for-platforms-only-supporting-on.patch \ " DEPENDS += "qtbase-native"
recipes-qt/qt5/qtbase/0015-eglfs-fix-egl-error-for-platforms-only-supporting-on.patch new file +63 -0
63 lines not on this page · raw message
Signature · 1 line
1.8.3.1
PATCH 2/2 qtwayland: fix qml-compositor shader
running
| qmlcompositor -platform eglfs
| qmlscene -platform wayland foo.qml
causes
QOpenGLShader::compile(Fragment): Compile failed.
ERROR: 0:6: 'float' : No precision defined for this type
ERROR: 0:7: 'vec4' : No precision defined for this type
ERROR: 0:8: 'float' : No precision defined for this type
ERROR: 0:11: 'vec4' : No precision defined for this type
ERROR: 0:12: 'vec3' : No precision defined for this type
ERROR: 0:13: 'vec3' : No precision defined for this type
ERROR: 6 compilation errors. No code generated.
*** Problematic Fragment shader source code ***
uniform sampler2D source;
uniform float qt_Opacity;
uniform vec4 color;
uniform float blend;
varying highp vec2 qt_TexCoord0;
void main() {
vec4 sourceColor = texture2D(source, qt_TexCoord0);
vec3 delta = sourceColor.rgb - vec3(0.5);
vec3 lowerContrast = vec3(0.5) + 0.4 * delta;
gl_FragColor = qt_Opacity * mix(sourceColor, color * sourceColor.a * dot(lowerContrast, vec3(11, 16, 5) * (1. / 32.)), blend);
}***
--- ...002-Fix-ConstrastEffect-in-qml-compositor.patch | 48 ++++++++++++++++++++++ recipes-qt/qt5/qtwayland_git.bb | 4 ++ 2 files changed, 52 insertions(+) create mode 100644 recipes-qt/qt5/qtwayland/0002-Fix-ConstrastEffect-in-qml-compositor.patch
recipes-qt/qt5/qtwayland/0002-Fix-ConstrastEffect-in-qml-compositor.patch new file +48 -0
@@ -0,0 +1,48 @@ +From 309e9b03d24eb6b0b8fff04d883329c2f93a6a1c Mon Sep 17 00:00:00 2001 +From: Pier Luigi Fiorini <[email protected]> +Date: Sun, 29 Dec 2013 14:15:41 +0100 +Subject: [PATCH] Fix ConstrastEffect in qml-compositor +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Specify precision to make the shader working. + +Change-Id: I055fe47e1073403dc981274236fa82e091e0eca4 +Reviewed-by: Jørgen Lind <[email protected]> +Reviewed-by: Andy Nichols <[email protected]> +Upstream-status: applied +--- + examples/qml-compositor/ContrastEffect.qml | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +diff --git a/examples/qml-compositor/ContrastEffect.qml b/examples/qml-compositor/ContrastEffect.qml +index 5159950..c284b29 100644 +--- a/examples/qml-compositor/ContrastEffect.qml ++++ b/examples/qml-compositor/ContrastEffect.qml +@@ -75,15 +75,15 @@ ShaderEffect { + vertexShader: source && source.isYInverted ? vShaderInvertedY : vShader + + fragmentShader: " +- uniform sampler2D source; +- uniform float qt_Opacity; +- uniform vec4 color; +- uniform float blend; ++ uniform lowp sampler2D source; ++ uniform highp float qt_Opacity; ++ uniform highp vec4 color; ++ uniform highp float blend; + varying highp vec2 qt_TexCoord0; + void main() { +- vec4 sourceColor = texture2D(source, qt_TexCoord0); +- vec3 delta = sourceColor.rgb - vec3(0.5); +- vec3 lowerContrast = vec3(0.5) + 0.4 * delta; ++ highp vec4 sourceColor = texture2D(source, qt_TexCoord0); ++ highp vec3 delta = sourceColor.rgb - vec3(0.5); ++ highp vec3 lowerContrast = vec3(0.5) + 0.4 * delta; + gl_FragColor = qt_Opacity * mix(sourceColor, color * sourceColor.a * dot(lowerContrast, vec3(11, 16, 5) * (1. / 32.)), blend); + } + " +-- +1.8.3.1 +
recipes-qt/qt5/qtwayland_git.bb +4 -0
@@ -5,3 +5,7 @@ require ${PN}.inc # qt5-git PV is only to indicate that this recipe is compatible with qt5 5.2.0 SRCREV = "3e9412e2fd91e64a565ed8ddbef76f57ca9413d5" + +SRC_URI += " \ + file://0002-Fix-ConstrastEffect-in-qml-compositor.patch \ +"
Signature · 1 line
1.8.3.1
Re: [PATCH][meta-qt5 2/2] qtwayland: fix qml-compositor shader
Quoted 49 lines · Andreas Müller
running
| qmlcompositor -platform eglfs
| qmlscene -platform wayland foo.qmlcauses
QOpenGLShader::compile(Fragment): Compile failed.
ERROR: 0:6: 'float' : No precision defined for this type
ERROR: 0:7: 'vec4' : No precision defined for this type
ERROR: 0:8: 'float' : No precision defined for this type
ERROR: 0:11: 'vec4' : No precision defined for this type
ERROR: 0:12: 'vec3' : No precision defined for this type
ERROR: 0:13: 'vec3' : No precision defined for this type
ERROR: 6 compilation errors. No code generated.*** Problematic Fragment shader source code ***
uniform sampler2D source; uniform float qt_Opacity; uniform vec4 color; uniform float blend; varying highp vec2 qt_TexCoord0; void main() { vec4 sourceColor = texture2D(source, qt_TexCoord0); vec3 delta = sourceColor.rgb - vec3(0.5); vec3 lowerContrast = vec3(0.5) + 0.4 * delta; gl_FragColor = qt_Opacity * mix(sourceColor, color * sourceColor.a * dot(lowerContrast, vec3(11, 16, 5) * (1. / 32.)), blend); }***
Signed-off-by Andreas Müller <[email protected]>--- ...002-Fix-ConstrastEffect-in-qml-compositor.patch | 48 ++++++++++++++++++++++ recipes-qt/qt5/qtwayland_git.bb | 4 ++ 2 files changed, 52 insertions(+) create mode 100644 recipes-qt/qt5/qtwayland/0002-Fix-ConstrastEffect-in-qml-compositor.patchrecipes-qt/qt5/qtwayland/0002-Fix-ConstrastEffect-in-qml-compositor.patch new file +4
-0@@ -0,0 +1,48 @@ +From 309e9b03d24eb6b0b8fff04d883329c2f93a6a1c Mon Sep 17 00:00:00 2001 +From: Pier Luigi Fiorini <[email protected]> +Date: Sun, 29 Dec 2013 14:15:41 +0100 +Subject: [PATCH] Fix ConstrastEffect in qml-compositor
recipes-qt/qt5/qtwayland/0002-Fix-ConstrastEffect-in-qml-compositor.patch line 14
Quoted 10 lines
recipes-qt/qt5/qtwayland/0002-Fix-ConstrastEffect-in-qml-compositor.patch new file +10
-0+MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Specify precision to make the shader working. + +Change-Id: I055fe47e1073403dc981274236fa82e091e0eca4 +Reviewed-by: Jørgen Lind <[email protected]> +Reviewed-by: Andy Nichols <[email protected]> +Upstream-status: applied
This one should be Backport, but please check jansa/qt5-5.2.1 branch, I've updated all recipes for 5.2.1 release and newer qtwayland revision used there includes this patch already.
Your qtbase patch still does apply, I'll add that to branch now.
Quoted 53 lines
recipes-qt/qt5/qtwayland/0002-Fix-ConstrastEffect-in-qml-compositor.patch new file +34
-0+--- + examples/qml-compositor/ContrastEffect.qml | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +diff --git a/examples/qml-compositor/ContrastEffect.qml b/examples/qml-compositor/ContrastEffect.qml +index 5159950..c284b29 100644 +--- a/examples/qml-compositor/ContrastEffect.qml ++++ b/examples/qml-compositor/ContrastEffect.qml +@@ -75,15 +75,15 @@ ShaderEffect { + vertexShader: source && source.isYInverted ? vShaderInvertedY : vShader + + fragmentShader: " +- uniform sampler2D source; +- uniform float qt_Opacity; +- uniform vec4 color; +- uniform float blend; ++ uniform lowp sampler2D source; ++ uniform highp float qt_Opacity; ++ uniform highp vec4 color; ++ uniform highp float blend; + varying highp vec2 qt_TexCoord0; + void main() { +- vec4 sourceColor = texture2D(source, qt_TexCoord0); +- vec3 delta = sourceColor.rgb - vec3(0.5); +- vec3 lowerContrast = vec3(0.5) + 0.4 * delta; ++ highp vec4 sourceColor = texture2D(source, qt_TexCoord0); ++ highp vec3 delta = sourceColor.rgb - vec3(0.5); ++ highp vec3 lowerContrast = vec3(0.5) + 0.4 * delta; + gl_FragColor = qt_Opacity * mix(sourceColor, color * sourceColor.a * dot(lowerContrast, vec3(11, 16, 5) * (1. / 32.)), blend); + } + " +-- +1.8.3.1 +recipes-qt/qt5/qtwayland_git.bb +4
-0@@ -5,3 +5,7 @@ require ${PN}.inc # qt5-git PV is only to indicate that this recipe is compatible with qt5 5.2.0 SRCREV = "3e9412e2fd91e64a565ed8ddbef76f57ca9413d5" + +SRC_URI += " \ + file://0002-Fix-ConstrastEffect-in-qml-compositor.patch \ +"Signature · 6 lines
1.8.3.1 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Re: [PATCH][meta-qt5 2/2] qtwayland: fix qml-compositor shader
Quoted 11 lines · Martin Jansa
recipes-qt/qt5/qtwayland/0002-Fix-ConstrastEffect-in-qml-compositor.patch line 14
Quoted 4 lines
recipes-qt/qt5/qtwayland/0002-Fix-ConstrastEffect-in-qml-compositor.patch new file +4
-0+Change-Id: I055fe47e1073403dc981274236fa82e091e0eca4 +Reviewed-by: Jørgen Lind <[email protected]> +Reviewed-by: Andy Nichols <[email protected]> +Upstream-status: appliedThis one should be Backport, but please check jansa/qt5-5.2.1 branch, I've updated all recipes for 5.2.1 release and newer qtwayland revision used there includes this patch already.
Your qtbase patch still does apply, I'll add that to branch now.
Will give 5.2.1 a test this week
Andreas