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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 fBaseInstanceSupport = ctxInfo.hasExtension("GL_EXT_base_instance"); | 528 fBaseInstanceSupport = ctxInfo.hasExtension("GL_EXT_base_instance"); |
529 } | 529 } |
530 | 530 |
531 this->initShaderPrecisionTable(ctxInfo, gli, glslCaps); | 531 this->initShaderPrecisionTable(ctxInfo, gli, glslCaps); |
532 | 532 |
533 if (contextOptions.fUseShaderSwizzling) { | 533 if (contextOptions.fUseShaderSwizzling) { |
534 fTextureSwizzleSupport = false; | 534 fTextureSwizzleSupport = false; |
535 } | 535 } |
536 | 536 |
537 if (kGL_GrGLStandard == standard) { | 537 if (kGL_GrGLStandard == standard) { |
538 if (version >= GR_GL_VER(4, 0) || ctxInfo.hasExtension("GL_ARB_sample_sh
ading")) { | 538 if ((version >= GR_GL_VER(4, 0) || ctxInfo.hasExtension("GL_ARB_sample_s
hading")) && |
| 539 ctxInfo.vendor() != kIntel_GrGLVendor) { |
539 fSampleShadingSupport = true; | 540 fSampleShadingSupport = true; |
540 } | 541 } |
541 } else if (ctxInfo.hasExtension("GL_OES_sample_shading")) { | 542 } else if (ctxInfo.hasExtension("GL_OES_sample_shading")) { |
542 fSampleShadingSupport = true; | 543 fSampleShadingSupport = true; |
543 } | 544 } |
544 | 545 |
545 // Requires fTextureRedSupport, fTextureSwizzleSupport, msaa support, ES com
patibility have | 546 // Requires fTextureRedSupport, fTextureSwizzleSupport, msaa support, ES com
patibility have |
546 // already been detected. | 547 // already been detected. |
547 this->initConfigTable(ctxInfo, gli, glslCaps); | 548 this->initConfigTable(ctxInfo, gli, glslCaps); |
548 | 549 |
(...skipping 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1902 for (int j = 0; j < kExternalFormatUsageCnt; ++j) { | 1903 for (int j = 0; j < kExternalFormatUsageCnt; ++j) { |
1903 SkASSERT(defaultEntry.fFormats.fExternalFormat[j] != | 1904 SkASSERT(defaultEntry.fFormats.fExternalFormat[j] != |
1904 fConfigTable[i].fFormats.fExternalFormat[j]); | 1905 fConfigTable[i].fFormats.fExternalFormat[j]); |
1905 } | 1906 } |
1906 SkASSERT(defaultEntry.fFormats.fExternalType != fConfigTable[i].fFormats
.fExternalType); | 1907 SkASSERT(defaultEntry.fFormats.fExternalType != fConfigTable[i].fFormats
.fExternalType); |
1907 } | 1908 } |
1908 #endif | 1909 #endif |
1909 } | 1910 } |
1910 | 1911 |
1911 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} | 1912 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} |
OLD | NEW |