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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 fTexStorageSupport = version >= GR_GL_VER(4,2) || | 179 fTexStorageSupport = version >= GR_GL_VER(4,2) || |
180 ctxInfo.hasExtension("GL_ARB_texture_storage") || | 180 ctxInfo.hasExtension("GL_ARB_texture_storage") || |
181 ctxInfo.hasExtension("GL_EXT_texture_storage"); | 181 ctxInfo.hasExtension("GL_EXT_texture_storage"); |
182 } else { | 182 } else { |
183 // Qualcomm Adreno drivers appear to have issues with texture storage. | 183 // Qualcomm Adreno drivers appear to have issues with texture storage. |
184 fTexStorageSupport = (version >= GR_GL_VER(3,0) && | 184 fTexStorageSupport = (version >= GR_GL_VER(3,0) && |
185 kQualcomm_GrGLVendor != ctxInfo.vendor()) || | 185 kQualcomm_GrGLVendor != ctxInfo.vendor()) || |
186 ctxInfo.hasExtension("GL_EXT_texture_storage"); | 186 ctxInfo.hasExtension("GL_EXT_texture_storage"); |
187 } | 187 } |
188 | 188 |
| 189 if (kGL_GrGLStandard == standard) { |
| 190 fTextureBarrierSupport = version >= GR_GL_VER(4,5) || |
| 191 ctxInfo.hasExtension("GL_ARB_texture_barrier")
|| |
| 192 ctxInfo.hasExtension("GL_NV_texture_barrier"); |
| 193 } else { |
| 194 fTextureBarrierSupport = ctxInfo.hasExtension("GL_NV_texture_barrier"); |
| 195 } |
| 196 |
189 // ARB_texture_rg is part of OpenGL 3.0, but mesa doesn't support GL_RED | 197 // ARB_texture_rg is part of OpenGL 3.0, but mesa doesn't support GL_RED |
190 // and GL_RG on FBO textures. | 198 // and GL_RG on FBO textures. |
191 if (!ctxInfo.isMesa()) { | 199 if (!ctxInfo.isMesa()) { |
192 if (kGL_GrGLStandard == standard) { | 200 if (kGL_GrGLStandard == standard) { |
193 fTextureRedSupport = version >= GR_GL_VER(3,0) || | 201 fTextureRedSupport = version >= GR_GL_VER(3,0) || |
194 ctxInfo.hasExtension("GL_ARB_texture_rg"); | 202 ctxInfo.hasExtension("GL_ARB_texture_rg"); |
195 } else { | 203 } else { |
196 fTextureRedSupport = version >= GR_GL_VER(3,0) || | 204 fTextureRedSupport = version >= GR_GL_VER(3,0) || |
197 ctxInfo.hasExtension("GL_EXT_texture_rg"); | 205 ctxInfo.hasExtension("GL_EXT_texture_rg"); |
198 } | 206 } |
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); | 1058 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); |
1051 r.appendf("Fragment coord conventions support: %s\n", | 1059 r.appendf("Fragment coord conventions support: %s\n", |
1052 (fFragCoordsConventionSupport ? "YES": "NO")); | 1060 (fFragCoordsConventionSupport ? "YES": "NO")); |
1053 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ?
"YES": "NO")); | 1061 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ?
"YES": "NO")); |
1054 r.appendf("Use non-VBO for dynamic data: %s\n", | 1062 r.appendf("Use non-VBO for dynamic data: %s\n", |
1055 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); | 1063 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); |
1056 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO
")); | 1064 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO
")); |
1057 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES"
: "NO")); | 1065 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES"
: "NO")); |
1058 return r; | 1066 return r; |
1059 } | 1067 } |
OLD | NEW |