summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtwebengine/0001-Fix-slow-video-with-webengine-on-nitrogen6x.patch
blob: 2af19e8e748318ec30f4474ff2a92e51c1aeb661 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
From 4903971e1e4b58f03b0f636a1ab494bfbc5d76d4 Mon Sep 17 00:00:00 2001
From: Michal Klocek <michal.klocek@theqtcompany.com>
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 58aa147..4ab682a 100644
--- a/src/3rdparty/chromium/gpu/command_buffer/service/feature_info.cc
+++ b/src/3rdparty/chromium/gpu/command_buffer/service/feature_info.cc
@@ -1258,26 +1258,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);
-    validators_.texture_unsized_internal_format.AddValue(GL_RED_EXT);
-    validators_.texture_unsized_internal_format.AddValue(GL_RG_EXT);
-  }
   UMA_HISTOGRAM_BOOLEAN("GPU.TextureRG", feature_flags_.ext_texture_rg);
 
   bool has_opengl_dual_source_blending =
-- 
1.9.1