OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |