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

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

Issue 1703603002: Workaround for bug in Tegra 3 when uploading to a render target (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add comment Created 4 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 | « src/gpu/GrGpu.cpp ('k') | 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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() || 449 if (kPowerVR54x_GrGLRenderer == ctxInfo.renderer() ||
450 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() || 450 kPowerVRRogue_GrGLRenderer == ctxInfo.renderer() ||
451 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) { 451 kAdreno3xx_GrGLRenderer == ctxInfo.renderer()) {
452 fUseDrawInsteadOfClear = true; 452 fUseDrawInsteadOfClear = true;
453 } 453 }
454 454
455 if (kAdreno4xx_GrGLRenderer == ctxInfo.renderer()) { 455 if (kAdreno4xx_GrGLRenderer == ctxInfo.renderer()) {
456 fUseDrawInsteadOfPartialRenderTargetWrite = true; 456 fUseDrawInsteadOfPartialRenderTargetWrite = true;
457 } 457 }
458 458
459 // Texture uploads sometimes seem to be ignored to textures bound to FBOS on Tegra3.
460 if (kTegra3_GrGLRenderer == ctxInfo.renderer()) {
461 fUseDrawInsteadOfPartialRenderTargetWrite = true;
462 fUseDrawInsteadOfAllRenderTargetWrites = true;
463 }
464
459 #ifdef SK_BUILD_FOR_WIN 465 #ifdef SK_BUILD_FOR_WIN
460 // On ANGLE deferring flushes can lead to GPU starvation 466 // On ANGLE deferring flushes can lead to GPU starvation
461 fPreferVRAMUseOverFlushes = !isANGLE; 467 fPreferVRAMUseOverFlushes = !isANGLE;
462 #endif 468 #endif
463 469
464 if (kChromium_GrGLDriver == ctxInfo.driver()) { 470 if (kChromium_GrGLDriver == ctxInfo.driver()) {
465 fMustClearUploadedBufferData = true; 471 fMustClearUploadedBufferData = true;
466 } 472 }
467 473
468 if (kGL_GrGLStandard == standard) { 474 if (kGL_GrGLStandard == standard) {
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1697 for (int j = 0; j < kExternalFormatUsageCnt; ++j) { 1703 for (int j = 0; j < kExternalFormatUsageCnt; ++j) {
1698 SkASSERT(defaultEntry.fFormats.fExternalFormat[j] != 1704 SkASSERT(defaultEntry.fFormats.fExternalFormat[j] !=
1699 fConfigTable[i].fFormats.fExternalFormat[j]); 1705 fConfigTable[i].fFormats.fExternalFormat[j]);
1700 } 1706 }
1701 SkASSERT(defaultEntry.fFormats.fExternalType != fConfigTable[i].fFormats .fExternalType); 1707 SkASSERT(defaultEntry.fFormats.fExternalType != fConfigTable[i].fFormats .fExternalType);
1702 } 1708 }
1703 #endif 1709 #endif
1704 } 1710 }
1705 1711
1706 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} 1712 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {}
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698