| 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 // Adreno GPUs have a tendency to drop tiles when there is a divide-by-zero
in a shader | 529 // Adreno GPUs have a tendency to drop tiles when there is a divide-by-zero
in a shader |
| 530 glslCaps->fDropsTileOnZeroDivide = kQualcomm_GrGLVendor == ctxInfo.vendor(); | 530 glslCaps->fDropsTileOnZeroDivide = kQualcomm_GrGLVendor == ctxInfo.vendor(); |
| 531 | 531 |
| 532 // On the NexusS and GalaxyNexus, the use of 'any' causes the compilation er
ror "Calls to any | 532 // On the NexusS and GalaxyNexus, the use of 'any' causes the compilation er
ror "Calls to any |
| 533 // function that may require a gradient calculation inside a conditional blo
ck may return | 533 // function that may require a gradient calculation inside a conditional blo
ck may return |
| 534 // undefined results". This appears to be an issue with the 'any' call since
even the simple | 534 // undefined results". This appears to be an issue with the 'any' call since
even the simple |
| 535 // "result=black; if (any()) result=white;" code fails to compile. This issu
e comes into play | 535 // "result=black; if (any()) result=white;" code fails to compile. This issu
e comes into play |
| 536 // from our GrTextureDomain processor. | 536 // from our GrTextureDomain processor. |
| 537 glslCaps->fCanUseAnyFunctionInShader = kImagination_GrGLVendor != ctxInfo.ve
ndor(); | 537 glslCaps->fCanUseAnyFunctionInShader = kImagination_GrGLVendor != ctxInfo.ve
ndor(); |
| 538 | 538 |
| 539 glslCaps->fForceHighPrecisionNDSTransform = kARM_GrGLVendor == ctxInfo.vendo
r(); | 539 glslCaps->fForceHighPrecisionNDSTransform = kARM_GrGLVendor == ctxInfo.vendo
r() || |
| 540 kPowerVR54x_GrGLRenderer == ctxI
nfo.renderer(); |
| 540 | 541 |
| 541 glslCaps->fVersionDeclString = get_glsl_version_decl_string(standard, glslCa
ps->fGLSLGeneration, | 542 glslCaps->fVersionDeclString = get_glsl_version_decl_string(standard, glslCa
ps->fGLSLGeneration, |
| 542 fIsCoreProfile); | 543 fIsCoreProfile); |
| 543 | 544 |
| 544 /************************************************************************** | 545 /************************************************************************** |
| 545 * GrShaderCaps fields | 546 * GrShaderCaps fields |
| 546 **************************************************************************/ | 547 **************************************************************************/ |
| 547 | 548 |
| 548 glslCaps->fPathRenderingSupport = this->hasPathRenderingSupport(ctxInfo, gli
); | 549 glslCaps->fPathRenderingSupport = this->hasPathRenderingSupport(ctxInfo, gli
); |
| 549 | 550 |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1265 for (int p = 0; p < kGrSLPrecisionCount; ++p) { | 1266 for (int p = 0; p < kGrSLPrecisionCount; ++p) { |
| 1266 glslCaps->fFloatPrecisions[kGeometry_GrShaderType][p] = | 1267 glslCaps->fFloatPrecisions[kGeometry_GrShaderType][p] = |
| 1267 glslCaps->fFloatPrecisions[kVerte
x_GrShaderType][p]; | 1268 glslCaps->fFloatPrecisions[kVerte
x_GrShaderType][p]; |
| 1268 } | 1269 } |
| 1269 } | 1270 } |
| 1270 } | 1271 } |
| 1271 | 1272 |
| 1272 | 1273 |
| 1273 | 1274 |
| 1274 | 1275 |
| OLD | NEW |