Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: src/gpu/gl/GrGLCaps.cpp

Issue 1191523003: Blacklist ARM from advanced blend (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #include "GrGLCaps.h" 9 #include "GrGLCaps.h"
10 10
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 } 826 }
827 } 827 }
828 828
829 void GrGLCaps::initBlendEqationSupport(const GrGLContextInfo& ctxInfo) { 829 void GrGLCaps::initBlendEqationSupport(const GrGLContextInfo& ctxInfo) {
830 GrGLSLCaps* glslCaps = static_cast<GrGLSLCaps*>(fShaderCaps.get()); 830 GrGLSLCaps* glslCaps = static_cast<GrGLSLCaps*>(fShaderCaps.get());
831 831
832 // Disabling advanced blend on various platforms with major known issues. We also block Chrome 832 // Disabling advanced blend on various platforms with major known issues. We also block Chrome
833 // for now until its own blacklists can be updated. 833 // for now until its own blacklists can be updated.
834 if (kAdreno4xx_GrGLRenderer == ctxInfo.renderer() || 834 if (kAdreno4xx_GrGLRenderer == ctxInfo.renderer() ||
835 kIntel_GrGLDriver == ctxInfo.driver() || 835 kIntel_GrGLDriver == ctxInfo.driver() ||
836 kChromium_GrGLDriver == ctxInfo.driver()) { 836 kChromium_GrGLDriver == ctxInfo.driver() ||
837 kARM_GrGLVendor == ctxInfo.vendor()) {
837 return; 838 return;
838 } 839 }
839 840
840 if (ctxInfo.hasExtension("GL_NV_blend_equation_advanced_coherent")) { 841 if (ctxInfo.hasExtension("GL_NV_blend_equation_advanced_coherent")) {
841 fBlendEquationSupport = kAdvancedCoherent_BlendEquationSupport; 842 fBlendEquationSupport = kAdvancedCoherent_BlendEquationSupport;
842 glslCaps->fAdvBlendEqInteraction = GrGLSLCaps::kAutomatic_AdvBlendEqInte raction; 843 glslCaps->fAdvBlendEqInteraction = GrGLSLCaps::kAutomatic_AdvBlendEqInte raction;
843 } else if (ctxInfo.hasExtension("GL_KHR_blend_equation_advanced_coherent")) { 844 } else if (ctxInfo.hasExtension("GL_KHR_blend_equation_advanced_coherent")) {
844 fBlendEquationSupport = kAdvancedCoherent_BlendEquationSupport; 845 fBlendEquationSupport = kAdvancedCoherent_BlendEquationSupport;
845 glslCaps->fAdvBlendEqInteraction = GrGLSLCaps::kGeneralEnable_AdvBlendEq Interaction; 846 glslCaps->fAdvBlendEqInteraction = GrGLSLCaps::kGeneralEnable_AdvBlendEq Interaction;
846 } else if (kNVIDIA_GrGLDriver == ctxInfo.driver() && 847 } else if (kNVIDIA_GrGLDriver == ctxInfo.driver() &&
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 if (fGeometryShaderSupport) { 1176 if (fGeometryShaderSupport) {
1176 for (int p = 0; p < kGrSLPrecisionCount; ++p) { 1177 for (int p = 0; p < kGrSLPrecisionCount; ++p) {
1177 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p]; 1178 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p];
1178 } 1179 }
1179 } 1180 }
1180 } 1181 }
1181 1182
1182 1183
1183 1184
1184 1185
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698