All of lore.kernel.org
 help / color / mirror / Atom feed
* [morty][PATCH] qtwayland: fix the display issue of qwindow-compositor for AM3/4
@ 2018-03-28 21:59 Eric Ruei
  0 siblings, 0 replies; only message in thread
From: Eric Ruei @ 2018-03-28 21:59 UTC (permalink / raw)
  To: meta-arago

Signed-off-by: Eric Ruei <e-ruei1@ti.com>
---
 ...positor-compositor.cpp-fix-display-issue-.patch | 42 ++++++++++++++++++++++
 .../recipes-qt/qt5/qtwayland_git.bbappend          |  3 +-
 2 files changed, 44 insertions(+), 1 deletion(-)
 create mode 100644 meta-arago-distro/recipes-qt/qt5/qtwayland/0001-qwindow-compositor-compositor.cpp-fix-display-issue-.patch

diff --git a/meta-arago-distro/recipes-qt/qt5/qtwayland/0001-qwindow-compositor-compositor.cpp-fix-display-issue-.patch b/meta-arago-distro/recipes-qt/qt5/qtwayland/0001-qwindow-compositor-compositor.cpp-fix-display-issue-.patch
new file mode 100644
index 0000000..b5337c0
--- /dev/null
+++ b/meta-arago-distro/recipes-qt/qt5/qtwayland/0001-qwindow-compositor-compositor.cpp-fix-display-issue-.patch
@@ -0,0 +1,42 @@
+From b63395a9ff48b1a60fdb7efb7c439f42f1d8c459 Mon Sep 17 00:00:00 2001
+From: Eric Ruei <e-ruei1@ti.com>
+Date: Wed, 28 Mar 2018 17:36:44 -0400
+Subject: [PATCH] qwindow-compositor: compositor.cpp: fix display issue for
+ AM3/4
+
+On OpenGL ES 2 core implementation, only GL_CLAMP_TO_EDGE parameter is
+supported as wrap mode for NPOT (non power of two dimension) textures.
+However, the default parameter is GL_REPEAT.
+An extension OES_texture_npot adds the support of other GL_REPEAT
+and GL_MIRRORED_REPEAT to the wrap. However, many openGLES2 cores do
+not support this extension. Therefore, it is much safer to specify the
+wrap mode as GL_CLAMP_TO_EDGE.
+
+Note: This patch is for QT5.7.1 (morty) only because the qtwayland has been
+re-implemented at QT5.9.
+
+Signed-off-by: Eric Ruei <e-ruei1@ti.com>
+---
+ examples/wayland/qwindow-compositor/compositor.cpp | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/examples/wayland/qwindow-compositor/compositor.cpp b/examples/wayland/qwindow-compositor/compositor.cpp
+index c60ecc6..ced0014 100644
+--- a/examples/wayland/qwindow-compositor/compositor.cpp
++++ b/examples/wayland/qwindow-compositor/compositor.cpp
+@@ -81,8 +81,11 @@ GLuint View::getTexture(GLenum *target)
+             glGenTextures(1, &m_texture);
+ 
+         glBindTexture(m_textureTarget, m_texture);
+-        if (buf.isShm())
++        if (buf.isShm()) {
+             glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
++            glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
++            glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
++	}
+         buf.bindToTexture();
+     }
+ 
+-- 
+1.9.1
+
diff --git a/meta-arago-distro/recipes-qt/qt5/qtwayland_git.bbappend b/meta-arago-distro/recipes-qt/qt5/qtwayland_git.bbappend
index 82d98e5..2bb7974 100644
--- a/meta-arago-distro/recipes-qt/qt5/qtwayland_git.bbappend
+++ b/meta-arago-distro/recipes-qt/qt5/qtwayland_git.bbappend
@@ -1,6 +1,7 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
-PR_append = ".arago0"
+PR_append = ".arago1"
 
 SRC_URI += " \
     file://0001-plugins-decorations-bradient-display-window-icon-onl.patch \
+    file://0001-qwindow-compositor-compositor.cpp-fix-display-issue-.patch \
 "
-- 
1.9.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-28 21:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-28 21:59 [morty][PATCH] qtwayland: fix the display issue of qwindow-compositor for AM3/4 Eric Ruei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.