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

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

Issue 917313005: Limit clear as draw workaround to Adreno 3xx. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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 | src/gpu/gl/GrGLUtil.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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 } 396 }
397 397
398 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) { 398 if (GrGLCaps::kES_IMG_MsToTexture_MSFBOType == fMSFBOType) {
399 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxSampleCount); 399 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES_IMG, &fMaxSampleCount);
400 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) { 400 } else if (GrGLCaps::kNone_MSFBOType != fMSFBOType) {
401 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount); 401 GR_GL_GetIntegerv(gli, GR_GL_MAX_SAMPLES, &fMaxSampleCount);
402 } 402 }
403 403
404 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || 404 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() ||
405 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() || 405 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() ||
406 kQualcomm_GrGLVendor == ctxInfo.vendor()) { 406 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) {
407 fUseDrawInsteadOfClear = true; 407 fUseDrawInsteadOfClear = true;
408 } 408 }
409 409
410 this->initConfigTexturableTable(ctxInfo, gli); 410 this->initConfigTexturableTable(ctxInfo, gli);
411 this->initConfigRenderableTable(ctxInfo); 411 this->initConfigRenderableTable(ctxInfo);
412 412
413 this->initShaderPrecisionTable(ctxInfo, gli); 413 this->initShaderPrecisionTable(ctxInfo, gli);
414 414
415 return true; 415 return true;
416 } 416 }
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO")); 1042 r.appendf("Two Format Limit: %s\n", (fTwoFormatLimit ? "YES": "NO"));
1043 r.appendf("Fragment coord conventions support: %s\n", 1043 r.appendf("Fragment coord conventions support: %s\n",
1044 (fFragCoordsConventionSupport ? "YES": "NO")); 1044 (fFragCoordsConventionSupport ? "YES": "NO"));
1045 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO")); 1045 r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO"));
1046 r.appendf("Use non-VBO for dynamic data: %s\n", 1046 r.appendf("Use non-VBO for dynamic data: %s\n",
1047 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO")); 1047 (fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO"));
1048 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO ")); 1048 r.appendf("Full screen clear is free: %s\n", (fFullClearIsFree ? "YES" : "NO "));
1049 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO")); 1049 r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO"));
1050 return r; 1050 return r;
1051 } 1051 }
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLUtil.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698