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

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

Issue 1500393002: Always use high precision on NDS transform (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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 | src/gpu/glsl/GrGLSLCaps.h » ('j') | 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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 // Adreno GPUs have a tendency to drop tiles when there is a divide-by-zero in a shader 568 // Adreno GPUs have a tendency to drop tiles when there is a divide-by-zero in a shader
569 glslCaps->fDropsTileOnZeroDivide = kQualcomm_GrGLVendor == ctxInfo.vendor(); 569 glslCaps->fDropsTileOnZeroDivide = kQualcomm_GrGLVendor == ctxInfo.vendor();
570 570
571 // On the NexusS and GalaxyNexus, the use of 'any' causes the compilation er ror "Calls to any 571 // On the NexusS and GalaxyNexus, the use of 'any' causes the compilation er ror "Calls to any
572 // function that may require a gradient calculation inside a conditional blo ck may return 572 // function that may require a gradient calculation inside a conditional blo ck may return
573 // undefined results". This appears to be an issue with the 'any' call since even the simple 573 // undefined results". This appears to be an issue with the 'any' call since even the simple
574 // "result=black; if (any()) result=white;" code fails to compile. This issu e comes into play 574 // "result=black; if (any()) result=white;" code fails to compile. This issu e comes into play
575 // from our GrTextureDomain processor. 575 // from our GrTextureDomain processor.
576 glslCaps->fCanUseAnyFunctionInShader = kImagination_GrGLVendor != ctxInfo.ve ndor(); 576 glslCaps->fCanUseAnyFunctionInShader = kImagination_GrGLVendor != ctxInfo.ve ndor();
577 577
578 glslCaps->fForceHighPrecisionNDSTransform = kARM_GrGLVendor == ctxInfo.vendo r() ||
579 kPowerVR54x_GrGLRenderer == ctxI nfo.renderer();
580
581 glslCaps->fVersionDeclString = get_glsl_version_decl_string(standard, glslCa ps->fGLSLGeneration, 578 glslCaps->fVersionDeclString = get_glsl_version_decl_string(standard, glslCa ps->fGLSLGeneration,
582 fIsCoreProfile); 579 fIsCoreProfile);
583 580
584 if (kGLES_GrGLStandard == standard && k110_GrGLSLGeneration == glslCaps->fGL SLGeneration) { 581 if (kGLES_GrGLStandard == standard && k110_GrGLSLGeneration == glslCaps->fGL SLGeneration) {
585 glslCaps->fShaderDerivativeExtensionString = "GL_OES_standard_derivative s"; 582 glslCaps->fShaderDerivativeExtensionString = "GL_OES_standard_derivative s";
586 } 583 }
587 584
588 // Frag Coords Convention support is not part of ES 585 // Frag Coords Convention support is not part of ES
589 // Known issue on at least some Intel platforms: 586 // Known issue on at least some Intel platforms:
590 // http://code.google.com/p/skia/issues/detail?id=946 587 // http://code.google.com/p/skia/issues/detail?id=946
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 glslCaps->fConfigSwizzle[kR11_EAC_GrPixelConfig] = "rrrr"; 1331 glslCaps->fConfigSwizzle[kR11_EAC_GrPixelConfig] = "rrrr";
1335 glslCaps->fConfigSwizzle[kASTC_12x12_GrPixelConfig] = "rgba"; 1332 glslCaps->fConfigSwizzle[kASTC_12x12_GrPixelConfig] = "rgba";
1336 glslCaps->fConfigSwizzle[kRGBA_float_GrPixelConfig] = "rgba"; 1333 glslCaps->fConfigSwizzle[kRGBA_float_GrPixelConfig] = "rgba";
1337 glslCaps->fConfigSwizzle[kRGBA_half_GrPixelConfig] = "rgba"; 1334 glslCaps->fConfigSwizzle[kRGBA_half_GrPixelConfig] = "rgba";
1338 1335
1339 } 1336 }
1340 1337
1341 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} 1338 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {}
1342 1339
1343 1340
OLDNEW
« no previous file with comments | « no previous file | src/gpu/glsl/GrGLSLCaps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698