From f6084115b3117c3ba34059df7fea5ca3454610c1 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Mon, 7 Dec 2015 15:54:40 +0200 Subject: webengine: Fix slow video with webengine on imx6 devices Disable texture_rg on imx6 based devices. Yocto image 1.8 has driver, which reports opengl es 3.0 support, however texture_rg does not work properly. Change-Id: Iaeadbfb16bacd3d78d9c660fa02e761e1781b4f3 Reviewed-by: Teemu Holappa --- ...x-slow-video-with-webengine-on-nitrogen6x.patch | 45 ++++++++++++++++++++++ recipes-qt/qt5/qtwebengine_git.bbappend | 6 +++ 2 files changed, 51 insertions(+) create mode 100644 recipes-qt/qt5/qtwebengine/0001-Fix-slow-video-with-webengine-on-nitrogen6x.patch diff --git a/recipes-qt/qt5/qtwebengine/0001-Fix-slow-video-with-webengine-on-nitrogen6x.patch b/recipes-qt/qt5/qtwebengine/0001-Fix-slow-video-with-webengine-on-nitrogen6x.patch new file mode 100644 index 0000000..c6380f9 --- /dev/null +++ b/recipes-qt/qt5/qtwebengine/0001-Fix-slow-video-with-webengine-on-nitrogen6x.patch @@ -0,0 +1,45 @@ +From 4903971e1e4b58f03b0f636a1ab494bfbc5d76d4 Mon Sep 17 00:00:00 2001 +From: Michal Klocek +Date: Mon, 7 Dec 2015 15:48:32 +0200 +Subject: [PATCH] Fix slow video with webengine on nitrogen6x + +Disable texture_rg on nitrogen6x. Yocto +image 1.8 has driver which reports opengl es 3.0 +support, however texture_rg does not +work properly. +--- + src/3rdparty/chromium/gpu/command_buffer/service/feature_info.cc | 18 ------------------ + 1 file changed, 18 deletions(-) + +diff --git a/src/3rdparty/chromium/gpu/command_buffer/service/feature_info.cc b/src/3rdparty/chromium/gpu/command_buffer/service/feature_info.cc +index 0ce9980..8963d11 100644 +--- a/src/3rdparty/chromium/gpu/command_buffer/service/feature_info.cc ++++ b/src/3rdparty/chromium/gpu/command_buffer/service/feature_info.cc +@@ -1014,24 +1014,6 @@ void FeatureInfo::InitializeFeatures() { + } + } + +- if ((gl_version_info_->is_es3 || gl_version_info_->is_desktop_core_profile || +- extensions.Contains("GL_EXT_texture_rg") || +- extensions.Contains("GL_ARB_texture_rg")) && +- IsGL_REDSupportedOnFBOs()) { +- feature_flags_.ext_texture_rg = true; +- AddExtensionString("GL_EXT_texture_rg"); +- +- validators_.texture_format.AddValue(GL_RED_EXT); +- validators_.texture_format.AddValue(GL_RG_EXT); +- validators_.texture_internal_format.AddValue(GL_RED_EXT); +- validators_.texture_internal_format.AddValue(GL_R8_EXT); +- validators_.texture_internal_format.AddValue(GL_RG_EXT); +- validators_.texture_internal_format.AddValue(GL_RG8_EXT); +- validators_.read_pixel_format.AddValue(GL_RED_EXT); +- validators_.read_pixel_format.AddValue(GL_RG_EXT); +- validators_.render_buffer_format.AddValue(GL_R8_EXT); +- validators_.render_buffer_format.AddValue(GL_RG8_EXT); +- } + UMA_HISTOGRAM_BOOLEAN("GPU.TextureRG", feature_flags_.ext_texture_rg); + + #if !defined(OS_MACOSX) +-- +1.9.1 + diff --git a/recipes-qt/qt5/qtwebengine_git.bbappend b/recipes-qt/qt5/qtwebengine_git.bbappend index 3fe90cd..824df6d 100644 --- a/recipes-qt/qt5/qtwebengine_git.bbappend +++ b/recipes-qt/qt5/qtwebengine_git.bbappend @@ -20,5 +20,11 @@ ## ############################################################################# +FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" + +SRC_URI_append_mx6 = " \ + file://0001-Fix-slow-video-with-webengine-on-nitrogen6x.patch \ + " + SRCREV_qtwebengine = "70a376d73718cc4ff8d96f6761b8c1896ca25c23" SRCREV_chromium = "ec5b3304fc266dfdec7666b8b73d57a3971ea35f" -- cgit v1.2.3-54-g00ecf