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

Issue 2111423002: Fix caching of sample locations (Closed)

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

Description

Fix caching of sample locations The original caching logic for sample locations wishfully assumed that the GPU would always use the same sample pattern for render targets that had the same number of samples. It turns out we can't rely on that. This change improves the caching logic to handle mismatched simple patterns with the same count, and adds a unit test that emulates different sample patterns observed on real hardware. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2111423002 Committed: https://skia.googlesource.com/skia/+/09d49a3bfe2d1e652a648ce1ea0962b38d10d166 Committed: https://skia.googlesource.com/skia/+/0d28e574ac73fef8bf75cab083ffe23f2d8860a1

Patch Set 1 #

Patch Set 2 : git add unit test #

Patch Set 3 : msvc warnings #

Patch Set 4 : Some chrome bots don't have map::emplace. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -84 lines) Patch
M include/gpu/GrRenderTarget.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/gpu/GrGpu.h View 1 2 3 5 chunks +26 lines, -14 lines 0 comments Download
M src/gpu/GrGpu.cpp View 1 2 3 2 chunks +54 lines, -49 lines 0 comments Download
M src/gpu/GrRenderTargetPriv.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/gl/GrGLGpu.h View 1 chunk +2 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 2 chunks +5 lines, -7 lines 0 comments Download
M src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/vk/GrVkGpu.h View 1 chunk +2 lines, -4 lines 0 comments Download
M src/gpu/vk/GrVkGpu.cpp View 1 chunk +1 line, -1 line 0 comments Download
A tests/GpuSampleLocationsTest.cpp View 1 2 1 chunk +193 lines, -0 lines 0 comments Download
M tools/gpu/GrTest.cpp View 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 37 (17 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2111423002/1
4 years, 5 months ago (2016-07-01 06:48:55 UTC) #5
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 5 months ago (2016-07-01 06:48:56 UTC) #6
csmartdalton
4 years, 5 months ago (2016-07-01 06:49:34 UTC) #9
bsalomon
Did you forget to git add the unit test file? Out of curiousity, what device ...
4 years, 5 months ago (2016-07-01 13:17:30 UTC) #10
csmartdalton
On 2016/07/01 13:17:30, bsalomon wrote: > Did you forget to git add the unit test ...
4 years, 5 months ago (2016-07-01 15:40:24 UTC) #11
bsalomon
lgtm
4 years, 5 months ago (2016-07-01 18:38:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2111423002/20001
4 years, 5 months ago (2016-07-01 18:49:21 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on master.client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/9529)
4 years, 5 months ago (2016-07-01 19:05:10 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2111423002/40001
4 years, 5 months ago (2016-07-04 22:44:21 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/09d49a3bfe2d1e652a648ce1ea0962b38d10d166
4 years, 5 months ago (2016-07-04 22:55:22 UTC) #22
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-04 22:55:25 UTC) #23
rmistry
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2120403002/ by rmistry@google.com. ...
4 years, 5 months ago (2016-07-05 00:44:50 UTC) #24
csmartdalton
it looks like a few of the chrome bots don't have map::emplace.
4 years, 5 months ago (2016-07-05 23:38:18 UTC) #27
csmartdalton
(Is there a home grown tree map within skia that I should be using instead?)
4 years, 5 months ago (2016-07-05 23:39:25 UTC) #28
csmartdalton
(Is there a home grown tree map within skia that I should be using instead?)
4 years, 5 months ago (2016-07-05 23:39:25 UTC) #29
csmartdalton
I deleted my latest patch set last night thinking I would do this another way. ...
4 years, 5 months ago (2016-07-06 14:53:47 UTC) #31
bsalomon
I don't know of an equivalent Sk data structure. lgtm.
4 years, 5 months ago (2016-07-06 16:16:44 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2111423002/80001
4 years, 5 months ago (2016-07-06 16:18:16 UTC) #34
commit-bot: I haz the power
Committed patchset #4 (id:80001) as https://skia.googlesource.com/skia/+/0d28e574ac73fef8bf75cab083ffe23f2d8860a1
4 years, 5 months ago (2016-07-06 16:59:47 UTC) #36
commit-bot: I haz the power
4 years, 5 months ago (2016-07-06 16:59:55 UTC) #37
Message was sent while issue was closed.
CQ bit was unchecked.

Powered by Google App Engine
This is Rietveld 408576698