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

Issue 1232103002: Enable stencil clipping in mixed sampled render targets (Closed)

Created:
5 years, 5 months ago by vbuzinov
Modified:
5 years, 2 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

Implement stencil clipping in mixed sampled render targets This change enables multisampled clipping for mixed sampled render targets. Previously clipping in mixed samples config behaved the same as in the gpu config. In order to retrofit non-MSAA draw methods, programmable sample locations are used in order to colocate all samples at (0.5, 0.5). Requires support for NV_sample_locations. BUG=skia:4399 Committed: https://skia.googlesource.com/skia/+/3e77ba96d56d15db30ac6d8ccb900e30aafcbb16

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : Predefined sample locations, glcaps, render target priv #

Total comments: 1

Patch Set 4 : Remove the use of hardcoded sample locations #

Total comments: 10

Patch Set 5 : Move GrRenderTarget changes to GrGLRenderTarget #

Total comments: 3

Patch Set 6 : GL_ARB_sample_locations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -15 lines) Patch
M include/gpu/GrCaps.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M include/gpu/gl/GrGLFunctions.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M include/gpu/gl/GrGLInterface.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/GrCaps.cpp View 1 2 2 chunks +10 lines, -8 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLAssembleInterface.cpp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLCaps.cpp View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLDefines.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLGpu.h View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 1 2 3 4 5 4 chunks +29 lines, -3 lines 0 comments Download
M src/gpu/gl/GrGLInterface.cpp View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLPathRendering.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLRenderTarget.h View 1 2 3 4 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (5 generated)
vbuzinov
Hey guys! I believe I have a correctly working patch ready. Could you take a ...
5 years, 3 months ago (2015-09-21 12:08:48 UTC) #2
Mark Kilgard
> Enable stencil clipping in mixed sampled render targets Excellent. So this replaces having to ...
5 years, 3 months ago (2015-09-21 17:03:51 UTC) #4
Chris Dalton
On 2015/09/21 17:03:51, Mark Kilgard wrote: > So this replaces having to CPU-rasterize a coverage ...
5 years, 3 months ago (2015-09-21 17:12:46 UTC) #5
Chris Dalton
Hey, sorry for the onslaught of comments. They should be mostly all pretty minor and ...
5 years, 3 months ago (2015-09-22 08:35:24 UTC) #6
Chris Dalton
Hey, sorry for the onslaught of comments. They should be mostly all pretty minor and ...
5 years, 3 months ago (2015-09-22 08:35:25 UTC) #7
vbuzinov
New revision, hopefully I haven't missed anything. As per Mark's suggestion, I hardcoded the default ...
5 years, 3 months ago (2015-09-22 13:10:13 UTC) #8
Chris Dalton
This looks really good overall. Just watch out for lines going over 100 columns. Also, ...
5 years, 3 months ago (2015-09-23 03:42:51 UTC) #9
vbuzinov
Adding Brian to review. Hey Brian, Could you take a look at this patch that ...
5 years, 2 months ago (2015-09-29 11:25:34 UTC) #11
Kimmo Kinnunen
https://codereview.chromium.org/1232103002/diff/60001/src/gpu/gl/GrGLGpu.cpp File src/gpu/gl/GrGLGpu.cpp (right): https://codereview.chromium.org/1232103002/diff/60001/src/gpu/gl/GrGLGpu.cpp#newcode284 src/gpu/gl/GrGLGpu.cpp:284: if (resetBits & kMisc_GrGLBackendState) { The sample locations are ...
5 years, 2 months ago (2015-09-29 12:45:24 UTC) #12
Kimmo Kinnunen
https://codereview.chromium.org/1232103002/diff/60001/src/gpu/gl/GrGLGpu.cpp File src/gpu/gl/GrGLGpu.cpp (right): https://codereview.chromium.org/1232103002/diff/60001/src/gpu/gl/GrGLGpu.cpp#newcode284 src/gpu/gl/GrGLGpu.cpp:284: if (resetBits & kMisc_GrGLBackendState) { On 2015/09/29 12:45:24, Kimmo ...
5 years, 2 months ago (2015-09-29 12:53:37 UTC) #13
bsalomon
mostly looks good with some nits and Q about whether this should be on GrGLRenderTarget ...
5 years, 2 months ago (2015-09-29 17:41:57 UTC) #14
vbuzinov
The new revision corrects things pointed out by Brian. https://codereview.chromium.org/1232103002/diff/60001/include/gpu/GrRenderTarget.h File include/gpu/GrRenderTarget.h (right): https://codereview.chromium.org/1232103002/diff/60001/include/gpu/GrRenderTarget.h#newcode179 include/gpu/GrRenderTarget.h:179: ...
5 years, 2 months ago (2015-09-30 06:08:29 UTC) #15
bsalomon
lgtm
5 years, 2 months ago (2015-09-30 13:38:33 UTC) #16
Mark Kilgard
lgtm Minor comments. Looking for ARB_sample_locations, in addition to NV_sample_locations, is a little more future ...
5 years, 2 months ago (2015-09-30 17:17:47 UTC) #17
vbuzinov
Adding a check for GL_ARB_sample_locations as per Mark's suggestion and submitting the patch.
5 years, 2 months ago (2015-10-01 05:55:19 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1232103002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1232103002/100001
5 years, 2 months ago (2015-10-01 05:55:39 UTC) #21
Mark Kilgard
good fixes lgtm Worth noting that this patch makes sure that clipping is properly antialiased ...
5 years, 2 months ago (2015-10-01 06:00:00 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://skia.googlesource.com/skia/+/3e77ba96d56d15db30ac6d8ccb900e30aafcbb16
5 years, 2 months ago (2015-10-01 06:02:12 UTC) #23
bsalomon
5 years, 1 month ago (2015-11-10 18:03:18 UTC) #24
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/1426993007/ by bsalomon@google.com.

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

Powered by Google App Engine
This is Rietveld 408576698