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

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

Issue 1507603004: Merge fix for 552999 to m48(Always use high precision on NDS transform) (Closed) Base URL: https://skia.googlesource.com/skia.git@m48
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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 // Adreno GPUs have a tendency to drop tiles when there is a divide-by-zero in a shader 557 // Adreno GPUs have a tendency to drop tiles when there is a divide-by-zero in a shader
558 glslCaps->fDropsTileOnZeroDivide = kQualcomm_GrGLVendor == ctxInfo.vendor(); 558 glslCaps->fDropsTileOnZeroDivide = kQualcomm_GrGLVendor == ctxInfo.vendor();
559 559
560 // On the NexusS and GalaxyNexus, the use of 'any' causes the compilation er ror "Calls to any 560 // On the NexusS and GalaxyNexus, the use of 'any' causes the compilation er ror "Calls to any
561 // function that may require a gradient calculation inside a conditional blo ck may return 561 // function that may require a gradient calculation inside a conditional blo ck may return
562 // undefined results". This appears to be an issue with the 'any' call since even the simple 562 // undefined results". This appears to be an issue with the 'any' call since even the simple
563 // "result=black; if (any()) result=white;" code fails to compile. This issu e comes into play 563 // "result=black; if (any()) result=white;" code fails to compile. This issu e comes into play
564 // from our GrTextureDomain processor. 564 // from our GrTextureDomain processor.
565 glslCaps->fCanUseAnyFunctionInShader = kImagination_GrGLVendor != ctxInfo.ve ndor(); 565 glslCaps->fCanUseAnyFunctionInShader = kImagination_GrGLVendor != ctxInfo.ve ndor();
566 566
567 glslCaps->fForceHighPrecisionNDSTransform = kARM_GrGLVendor == ctxInfo.vendo r() ||
568 kPowerVR54x_GrGLRenderer == ctxI nfo.renderer();
569
570 glslCaps->fVersionDeclString = get_glsl_version_decl_string(standard, glslCa ps->fGLSLGeneration, 567 glslCaps->fVersionDeclString = get_glsl_version_decl_string(standard, glslCa ps->fGLSLGeneration,
571 fIsCoreProfile); 568 fIsCoreProfile);
572 569
573 if (kGLES_GrGLStandard == standard && k110_GrGLSLGeneration == glslCaps->fGL SLGeneration) { 570 if (kGLES_GrGLStandard == standard && k110_GrGLSLGeneration == glslCaps->fGL SLGeneration) {
574 glslCaps->fShaderDerivativeExtensionString = "GL_OES_standard_derivative s"; 571 glslCaps->fShaderDerivativeExtensionString = "GL_OES_standard_derivative s";
575 } 572 }
576 573
577 // Frag Coords Convention support is not part of ES 574 // Frag Coords Convention support is not part of ES
578 // Known issue on at least some Intel platforms: 575 // Known issue on at least some Intel platforms:
579 // http://code.google.com/p/skia/issues/detail?id=946 576 // http://code.google.com/p/skia/issues/detail?id=946
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 glslCaps->fConfigSwizzle[kR11_EAC_GrPixelConfig] = "rrrr"; 1312 glslCaps->fConfigSwizzle[kR11_EAC_GrPixelConfig] = "rrrr";
1316 glslCaps->fConfigSwizzle[kASTC_12x12_GrPixelConfig] = "rgba"; 1313 glslCaps->fConfigSwizzle[kASTC_12x12_GrPixelConfig] = "rgba";
1317 glslCaps->fConfigSwizzle[kRGBA_float_GrPixelConfig] = "rgba"; 1314 glslCaps->fConfigSwizzle[kRGBA_float_GrPixelConfig] = "rgba";
1318 glslCaps->fConfigSwizzle[kRGBA_half_GrPixelConfig] = "rgba"; 1315 glslCaps->fConfigSwizzle[kRGBA_half_GrPixelConfig] = "rgba";
1319 1316
1320 } 1317 }
1321 1318
1322 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} 1319 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {}
1323 1320
1324 1321
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