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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 ctxInfo.hasExtension("GL_OES_standard_derivat
ives"); | 395 ctxInfo.hasExtension("GL_OES_standard_derivat
ives"); |
396 } | 396 } |
397 | 397 |
398 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) { | 398 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) { |
399 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxSampleCount); | 399 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxSampleCount); |
400 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { | 400 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { |
401 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount); | 401 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount); |
402 } | 402 } |
403 | 403 |
404 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || | 404 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || |
405 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer()) { | 405 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() || |
| 406 kQualcomm_GrGLVendor == ctxInfo.vendor()) { |
406 fUseDrawInsteadOfClear = true; | 407 fUseDrawInsteadOfClear = true; |
407 } | 408 } |
408 | 409 |
409 this->initConfigTexturableTable(ctxInfo, gli); | 410 this->initConfigTexturableTable(ctxInfo, gli); |
410 this->initConfigRenderableTable(ctxInfo); | 411 this->initConfigRenderableTable(ctxInfo); |
411 | 412 |
412 this->initShaderPrecisionTable(ctxInfo, gli); | 413 this->initShaderPrecisionTable(ctxInfo, gli); |
413 | 414 |
414 return true; | 415 return true; |
415 } | 416 } |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); | 1042 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); |
1042 r.appendf("Fragment coord conventions support: %s\n", | 1043 r.appendf("Fragment coord conventions support: %s\n", |
1043 (fFragCoordsConventionSupport ? "YES": "NO")); | 1044 (fFragCoordsConventionSupport ? "YES": "NO")); |
1044 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ?
"YES": "NO")); | 1045 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ?
"YES": "NO")); |
1045 r.appendf("Use non-VBO for dynamic data: %s\n", | 1046 r.appendf("Use non-VBO for dynamic data: %s\n", |
1046 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); | 1047 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); |
1047 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO
")); | 1048 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO
")); |
1048 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES"
: "NO")); | 1049 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES"
: "NO")); |
1049 return r; | 1050 return r; |
1050 } | 1051 } |
OLD | NEW |