Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: src/gpu/gl/GrGLCaps.cpp

Issue 1419593003: Force the s4 to use highp for transforming to NDS (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698