| 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 #include "GrGLContext.h" | 10 #include "GrGLContext.h" |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 if (!hasLATC) { | 551 if (!hasLATC) { |
| 552 hasLATC = ctxInfo.hasExtension("GL_AMD_compressed_3DC_texture"); | 552 hasLATC = ctxInfo.hasExtension("GL_AMD_compressed_3DC_texture"); |
| 553 if (hasLATC) { | 553 if (hasLATC) { |
| 554 alias = k3DC_LATCAlias; | 554 alias = k3DC_LATCAlias; |
| 555 } | 555 } |
| 556 } | 556 } |
| 557 | 557 |
| 558 fConfigTextureSupport[kLATC_GrPixelConfig] = hasLATC; | 558 fConfigTextureSupport[kLATC_GrPixelConfig] = hasLATC; |
| 559 fLATCAlias = alias; | 559 fLATCAlias = alias; |
| 560 | 560 |
| 561 // Check for R11_EAC | 561 // Check for R11_EAC ... We don't support R11_EAC on desktop, as most |
| 562 if (kGL_GrGLStandard == standard) { | 562 // cards default to decompressing the textures in the driver, and is |
| 563 fConfigTextureSupport[kR11_EAC_GrPixelConfig] = | 563 // generally slower. |
| 564 version >= GR_GL_VER(4, 3) || ctxInfo.hasExtension("GL_ARB_ES3_compa
tibility"); | 564 if (kGL_GrGLStandard != standard) { |
| 565 } else { | |
| 566 fConfigTextureSupport[kR11_EAC_GrPixelConfig] = version >= GR_GL_VER(3,
0); | 565 fConfigTextureSupport[kR11_EAC_GrPixelConfig] = version >= GR_GL_VER(3,
0); |
| 567 } | 566 } |
| 568 | 567 |
| 569 // Check for ASTC | 568 // Check for ASTC |
| 570 fConfigTextureSupport[kASTC_12x12_GrPixelConfig] = | 569 fConfigTextureSupport[kASTC_12x12_GrPixelConfig] = |
| 571 ctxInfo.hasExtension("GL_KHR_texture_compression_astc_hdr") || | 570 ctxInfo.hasExtension("GL_KHR_texture_compression_astc_hdr") || |
| 572 ctxInfo.hasExtension("GL_KHR_texture_compression_astc_ldr") || | 571 ctxInfo.hasExtension("GL_KHR_texture_compression_astc_ldr") || |
| 573 ctxInfo.hasExtension("GL_OES_texture_compression_astc"); | 572 ctxInfo.hasExtension("GL_OES_texture_compression_astc"); |
| 574 | 573 |
| 575 // Check for floating point texture support | 574 // Check for floating point texture support |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); | 835 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); |
| 837 r.appendf("Fragment coord conventions support: %s\n", | 836 r.appendf("Fragment coord conventions support: %s\n", |
| 838 (fFragCoordsConventionSupport ? "YES": "NO")); | 837 (fFragCoordsConventionSupport ? "YES": "NO")); |
| 839 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ?
"YES": "NO")); | 838 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ?
"YES": "NO")); |
| 840 r.appendf("Use non-VBO for dynamic data: %s\n", | 839 r.appendf("Use non-VBO for dynamic data: %s\n", |
| 841 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); | 840 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); |
| 842 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO
")); | 841 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO
")); |
| 843 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES"
: "NO")); | 842 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES"
: "NO")); |
| 844 return r; | 843 return r; |
| 845 } | 844 } |
| OLD | NEW |