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

Issue 1287193008: Add ANGLE workaround to prefer flushes over VRAM usage (Closed)

Created:
5 years, 4 months ago by robertphillips
Modified:
5 years, 4 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add ANGLE workaround to prefer flushes over VRAM usage On the whole, https://codereview.chromium.org/1286203002/ (Defer flushes if kPreferNoIO is specified) improved performance but it did cause a performance regression on ANGLE. This CL disables the deferral of flushes on ANGLE until we can add a separate incremental flushing mechanism. TBR=bsalomon@google.com BUG=skia:4201 BUG=521529 Committed: https://skia.googlesource.com/skia/+/63926683c583e8497d9d907977e773663cb4bd9e

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -8 lines) Patch
M include/gpu/GrCaps.h View 2 chunks +5 lines, -0 lines 0 comments Download
M src/gpu/GrCaps.cpp View 2 chunks +4 lines, -0 lines 2 comments Download
M src/gpu/GrContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrResourceCache.h View 3 chunks +4 lines, -1 line 0 comments Download
M src/gpu/GrResourceCache.cpp View 1 3 chunks +8 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGLCaps.cpp View 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
robertphillips
5 years, 4 months ago (2015-08-20 14:20:06 UTC) #2
joshualitt
On 2015/08/20 14:20:06, robertphillips wrote: lgtm
5 years, 4 months ago (2015-08-20 15:35:20 UTC) #3
jvanverth1
LGTM + suggestion https://codereview.chromium.org/1287193008/diff/1/src/gpu/GrResourceCache.cpp File src/gpu/GrResourceCache.cpp (right): https://codereview.chromium.org/1287193008/diff/1/src/gpu/GrResourceCache.cpp#newcode264 src/gpu/GrResourceCache.cpp:264: // We would always like to ...
5 years, 4 months ago (2015-08-20 15:37:50 UTC) #4
robertphillips
https://codereview.chromium.org/1287193008/diff/1/src/gpu/GrResourceCache.cpp File src/gpu/GrResourceCache.cpp (right): https://codereview.chromium.org/1287193008/diff/1/src/gpu/GrResourceCache.cpp#newcode264 src/gpu/GrResourceCache.cpp:264: // We would always like to defer a flush ...
5 years, 4 months ago (2015-08-20 16:31:04 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1287193008/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1287193008/20001
5 years, 4 months ago (2015-08-20 16:31:26 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-20 16:37:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1287193008/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1287193008/20001
5 years, 4 months ago (2015-08-20 16:38:27 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/63926683c583e8497d9d907977e773663cb4bd9e
5 years, 4 months ago (2015-08-20 16:39:05 UTC) #14
bsalomon
https://codereview.chromium.org/1287193008/diff/20001/src/gpu/GrCaps.cpp File src/gpu/GrCaps.cpp (right): https://codereview.chromium.org/1287193008/diff/20001/src/gpu/GrCaps.cpp#newcode118 src/gpu/GrCaps.cpp:118: fPreferVRAMUseOverFlushes = true; Hmm... our other workarounds are worded ...
5 years, 4 months ago (2015-08-21 15:41:31 UTC) #15
robertphillips
5 years, 4 months ago (2015-08-21 15:47:15 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/1287193008/diff/20001/src/gpu/GrCaps.cpp
File src/gpu/GrCaps.cpp (right):

https://codereview.chromium.org/1287193008/diff/20001/src/gpu/GrCaps.cpp#newc...
src/gpu/GrCaps.cpp:118: fPreferVRAMUseOverFlushes = true;
On 2015/08/21 15:41:31, bsalomon wrote:
> Hmm... our other workarounds are worded the other way where false means don't
> apply the workaround. Otherwise lgtm.

I did it that way at first and found it a bit confusing.

Powered by Google App Engine
This is Rietveld 408576698