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

Issue 1431593006: Fix mixed samples stencil clip (Closed)

Created:
5 years, 1 month ago by Chris Dalton
Modified:
5 years, 1 month ago
Reviewers:
bsalomon
CC:
reviews_skia.org, nv_mark, Kimmo Kinnunen
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fix mixed samples stencil clip Fixes rendering bugs and nondeterminism in gm. Before, mixed samples stencil clip would try to infer whether the draw wanted co-centered sample locations from within GrGLGpu, which caused various errors. This change reworks it so the draw itself can request the co-centered sample locations when it knows it will need them. Also reduces framebuffer binds by moving the code that enables GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS into flushRenderTarget. Committed: https://skia.googlesource.com/skia/+/14184d5567b58085b6d8a6375796d405056f7f73

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 5

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -121 lines) Patch
M include/gpu/GrCaps.h View 1 4 chunks +4 lines, -2 lines 0 comments Download
M src/gpu/GrCaps.cpp View 1 4 chunks +5 lines, -2 lines 0 comments Download
M src/gpu/GrClipMaskManager.h View 1 2 3 4 1 chunk +11 lines, -1 line 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 2 3 4 1 chunk +16 lines, -2 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 4 4 chunks +10 lines, -16 lines 0 comments Download
M src/gpu/GrPipeline.h View 1 2 3 4 4 chunks +4 lines, -1 line 0 comments Download
M src/gpu/GrPipeline.cpp View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLCaps.h View 2 chunks +0 lines, -6 lines 0 comments Download
M src/gpu/gl/GrGLCaps.cpp View 1 4 chunks +11 lines, -13 lines 0 comments Download
M src/gpu/gl/GrGLGpu.h View 1 chunk +2 lines, -6 lines 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 1 2 5 chunks +21 lines, -41 lines 0 comments Download
M src/gpu/gl/GrGLPathRendering.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLRenderTarget.h View 3 chunks +15 lines, -21 lines 0 comments Download
M src/gpu/gl/GrGLRenderTarget.cpp View 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Chris Dalton
5 years, 1 month ago (2015-11-06 06:49:22 UTC) #2
Chris Dalton
https://codereview.chromium.org/1431593006/diff/60001/src/gpu/GrClipMaskManager.h File src/gpu/GrClipMaskManager.h (right): https://codereview.chromium.org/1431593006/diff/60001/src/gpu/GrClipMaskManager.h#newcode40 src/gpu/GrClipMaskManager.h:40: uint32_t blockedPipelineFlags() const { return fBlockedPipelineFlags; } This seemed ...
5 years, 1 month ago (2015-11-09 18:41:58 UTC) #5
bsalomon
https://codereview.chromium.org/1431593006/diff/60001/src/gpu/GrClipMaskManager.h File src/gpu/GrClipMaskManager.h (right): https://codereview.chromium.org/1431593006/diff/60001/src/gpu/GrClipMaskManager.h#newcode40 src/gpu/GrClipMaskManager.h:40: uint32_t blockedPipelineFlags() const { return fBlockedPipelineFlags; } On 2015/11/09 ...
5 years, 1 month ago (2015-11-09 19:26:46 UTC) #6
Chris Dalton
https://codereview.chromium.org/1431593006/diff/60001/src/gpu/GrClipMaskManager.h File src/gpu/GrClipMaskManager.h (right): https://codereview.chromium.org/1431593006/diff/60001/src/gpu/GrClipMaskManager.h#newcode40 src/gpu/GrClipMaskManager.h:40: uint32_t blockedPipelineFlags() const { return fBlockedPipelineFlags; } On 2015/11/09 ...
5 years, 1 month ago (2015-11-09 19:49:36 UTC) #7
Chris Dalton
Thanks for the suggestions, I like it a lot better now.
5 years, 1 month ago (2015-11-09 21:48:58 UTC) #8
bsalomon
lgtm
5 years, 1 month ago (2015-11-09 22:36:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1431593006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1431593006/80001
5 years, 1 month ago (2015-11-09 22:59:56 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://skia.googlesource.com/skia/+/14184d5567b58085b6d8a6375796d405056f7f73
5 years, 1 month ago (2015-11-09 23:12:22 UTC) #12
Chris Dalton
5 years, 1 month ago (2015-11-10 17:58:41 UTC) #13
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/1407063011/ by cdalton@nvidia.com.

The reason for reverting is: Co-centered sample locations are not needed to do
stencil clip with mixed samples..

Powered by Google App Engine
This is Rietveld 408576698