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

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

Issue 1178723007: disable floating point textures if GLSL version is < 330 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweak Created 5 years, 6 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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 fConfigRenderSupport[kSRGBA_8888_GrPixelConfig][kYes_MSAA] = tru e; 535 fConfigRenderSupport[kSRGBA_8888_GrPixelConfig][kYes_MSAA] = tru e;
536 } 536 }
537 } 537 }
538 } 538 }
539 539
540 if (this->isConfigTexturable(kRGBA_float_GrPixelConfig)) { 540 if (this->isConfigTexturable(kRGBA_float_GrPixelConfig)) {
541 if (kGL_GrGLStandard == standard) { 541 if (kGL_GrGLStandard == standard) {
542 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kNo_MSAA] = true; 542 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kNo_MSAA] = true;
543 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kYes_MSAA] = true; 543 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kYes_MSAA] = true;
544 } else { 544 } else {
545 if (ctxInfo.hasExtension("GL_EXT_color_buffer_float")) { 545 if (ctxInfo.hasExtension("GL_EXT_color_buffer_float") &&
546 ctxInfo.glslGeneration() >= k330_GrGLSLGeneration) {
bsalomon 2015/06/17 20:10:46 need this for desktop too?
546 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kNo_MSAA] = true ; 547 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kNo_MSAA] = true ;
547 } else { 548 } else {
548 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kNo_MSAA] = fals e; 549 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kNo_MSAA] = fals e;
549 } 550 }
550 // for now we don't support floating point MSAA on ES 551 // for now we don't support floating point MSAA on ES
551 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kYes_MSAA] = false; 552 fConfigRenderSupport[kRGBA_float_GrPixelConfig][kYes_MSAA] = false;
552 } 553 }
553 } 554 }
554 555
555 if (this->isConfigTexturable(kAlpha_half_GrPixelConfig)) { 556 if (this->isConfigTexturable(kAlpha_half_GrPixelConfig)) {
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
1176 if (fGeometryShaderSupport) { 1177 if (fGeometryShaderSupport) {
1177 for (int p = 0; p < kGrSLPrecisionCount; ++p) { 1178 for (int p = 0; p < kGrSLPrecisionCount; ++p) {
1178 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p]; 1179 fFloatPrecisions[kGeometry_GrShaderType][p] = fFloatPrecisions[kVert ex_GrShaderType][p];
1179 } 1180 }
1180 } 1181 }
1181 } 1182 }
1182 1183
1183 1184
1184 1185
1185 1186
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