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

Issue 1717393002: Add "sample locations" feature to GrProcessor (Closed)

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

Description

Add "sample locations" feature to GrProcessor Adds a "sample locations" feature to GrProcessor. When enabled, this allows a processor to know inside the shader where all the samples are located. Also adds various infastructure to query, cache, and identify multisample data. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1717393002 Committed: https://skia.googlesource.com/skia/+/28f45b949acc746849100fbe112ee5280f0594c9

Patch Set 1 #

Patch Set 2 : assert #

Total comments: 17

Patch Set 3 : addressed comments #

Total comments: 1

Patch Set 4 : move into GrProcessor #

Total comments: 12

Patch Set 5 : comments #

Total comments: 2

Patch Set 6 : back into gpu from caps #

Total comments: 1

Patch Set 7 : vk stubs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -63 lines) Patch
M include/gpu/GrProcessor.h View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M include/private/SkTArray.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrGpu.h View 1 2 3 4 5 6 4 chunks +25 lines, -0 lines 0 comments Download
M src/gpu/GrGpu.cpp View 1 2 3 4 5 2 chunks +56 lines, -0 lines 0 comments Download
M src/gpu/GrProgramDesc.h View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M src/gpu/GrRenderTarget.cpp View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M src/gpu/GrRenderTargetPriv.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M src/gpu/GrTest.cpp View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLGpu.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLProgramDesc.cpp View 1 2 3 4 2 chunks +16 lines, -6 lines 0 comments Download
M src/gpu/glsl/GrGLSLFragmentShaderBuilder.h View 1 2 3 4 6 chunks +30 lines, -26 lines 0 comments Download
M src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp View 1 2 3 4 5 7 chunks +72 lines, -16 lines 0 comments Download
M src/gpu/glsl/GrGLSLProgramBuilder.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/vk/GrVkGpu.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M src/gpu/vk/GrVkGpu.cpp View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M src/gpu/vk/GrVkProgramDesc.cpp View 1 2 3 4 2 chunks +16 lines, -6 lines 0 comments Download

Messages

Total messages: 33 (10 generated)
Chris Dalton
4 years, 10 months ago (2016-02-22 18:06:19 UTC) #3
Chris Dalton
Adding mark for the OpenGL side.
4 years, 10 months ago (2016-02-22 18:06:48 UTC) #5
Mark Kilgard
LGTM as far as OpenGL is concerned minor comments below https://codereview.chromium.org/1717393002/diff/20001/src/gpu/GrGpu.cpp File src/gpu/GrGpu.cpp (right): https://codereview.chromium.org/1717393002/diff/20001/src/gpu/GrGpu.cpp#newcode417 ...
4 years, 10 months ago (2016-02-22 18:41:04 UTC) #7
Chris Dalton
https://codereview.chromium.org/1717393002/diff/20001/src/gpu/GrGpu.cpp File src/gpu/GrGpu.cpp (right): https://codereview.chromium.org/1717393002/diff/20001/src/gpu/GrGpu.cpp#newcode417 src/gpu/GrGpu.cpp:417: } On 2016/02/22 18:41:04, Mark Kilgard wrote: > should ...
4 years, 10 months ago (2016-02-22 19:10:43 UTC) #8
bsalomon
https://codereview.chromium.org/1717393002/diff/20001/include/gpu/GrRenderTarget.h File include/gpu/GrRenderTarget.h (right): https://codereview.chromium.org/1717393002/diff/20001/include/gpu/GrRenderTarget.h#newcode203 include/gpu/GrRenderTarget.h:203: * greater than the surface descriptor's sample count. How ...
4 years, 10 months ago (2016-02-22 20:28:26 UTC) #9
Chris Dalton
https://codereview.chromium.org/1717393002/diff/20001/include/gpu/GrRenderTarget.h File include/gpu/GrRenderTarget.h (right): https://codereview.chromium.org/1717393002/diff/20001/include/gpu/GrRenderTarget.h#newcode203 include/gpu/GrRenderTarget.h:203: * greater than the surface descriptor's sample count. On ...
4 years, 10 months ago (2016-02-22 21:19:11 UTC) #10
Chris Dalton
https://codereview.chromium.org/1717393002/diff/20001/src/gpu/GrGpu.cpp File src/gpu/GrGpu.cpp (right): https://codereview.chromium.org/1717393002/diff/20001/src/gpu/GrGpu.cpp#newcode417 src/gpu/GrGpu.cpp:417: } On 2016/02/22 19:10:43, Chris Dalton wrote: > On ...
4 years, 10 months ago (2016-02-22 22:17:55 UTC) #11
Chris Dalton
https://codereview.chromium.org/1717393002/diff/40001/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp File src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp (right): https://codereview.chromium.org/1717393002/diff/40001/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp#newcode174 src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp:174: SkASSERT(fProgramBuilder->pipeline().hasSampleLocations()); I guess maskSampleCoverage() does a test/SkDEBUGFAIL/return instead of ...
4 years, 10 months ago (2016-02-23 01:51:01 UTC) #13
Chris Dalton
Made the changes we discussed in the meeting. https://codereview.chromium.org/1717393002/diff/60001/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp File src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp (right): https://codereview.chromium.org/1717393002/diff/60001/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp#newcode188 src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp:188: SkASSERT(fProgramBuilder->canUseSampleLocations()); ...
4 years, 9 months ago (2016-02-29 20:52:50 UTC) #15
bsalomon
https://codereview.chromium.org/1717393002/diff/60001/include/gpu/GrProcessor.h File include/gpu/GrProcessor.h (right): https://codereview.chromium.org/1717393002/diff/60001/include/gpu/GrProcessor.h#newcode87 include/gpu/GrProcessor.h:87: kFragmentPosition_RequiredFeature = 1, can we make this 1 << ...
4 years, 9 months ago (2016-03-01 14:28:55 UTC) #16
Chris Dalton
https://codereview.chromium.org/1717393002/diff/60001/include/gpu/GrProcessor.h File include/gpu/GrProcessor.h (right): https://codereview.chromium.org/1717393002/diff/60001/include/gpu/GrProcessor.h#newcode87 include/gpu/GrProcessor.h:87: kFragmentPosition_RequiredFeature = 1, On 2016/03/01 14:28:55, bsalomon wrote: > ...
4 years, 9 months ago (2016-03-01 20:37:47 UTC) #17
Chris Dalton
Implemented caching of multisample info based on sample count and surface origin alone. https://codereview.chromium.org/1717393002/diff/60001/include/gpu/GrProcessor.h File ...
4 years, 9 months ago (2016-03-07 16:09:38 UTC) #18
bsalomon
https://codereview.chromium.org/1717393002/diff/80001/include/gpu/GrCaps.h File include/gpu/GrCaps.h (right): https://codereview.chromium.org/1717393002/diff/80001/include/gpu/GrCaps.h#newcode279 include/gpu/GrCaps.h:279: const MultisampleSpecs& getMultisampleSpecs(const GrSurfaceDesc&, I'm curious why this has ...
4 years, 9 months ago (2016-03-07 19:10:06 UTC) #19
Chris Dalton
https://codereview.chromium.org/1717393002/diff/80001/include/gpu/GrCaps.h File include/gpu/GrCaps.h (right): https://codereview.chromium.org/1717393002/diff/80001/include/gpu/GrCaps.h#newcode279 include/gpu/GrCaps.h:279: const MultisampleSpecs& getMultisampleSpecs(const GrSurfaceDesc&, On 2016/03/07 19:10:06, bsalomon wrote: ...
4 years, 9 months ago (2016-03-07 19:36:44 UTC) #20
Chris Dalton
Moves the multisample queries back into GrGpu
4 years, 9 months ago (2016-03-07 21:01:03 UTC) #21
Mark Kilgard
I'm no expert on the Skia code, but LGTM this is a good approach to ...
4 years, 9 months ago (2016-03-07 21:12:52 UTC) #22
bsalomon
lgtm. Greg, can you do a quick scan in case this has any implications for ...
4 years, 9 months ago (2016-03-07 21:18:45 UTC) #24
egdaniel
On 2016/03/07 21:18:45, bsalomon wrote: > lgtm. Greg, can you do a quick scan in ...
4 years, 9 months ago (2016-03-07 21:27:52 UTC) #25
Chris Dalton
On 2016/03/07 21:27:52, egdaniel wrote: > On 2016/03/07 21:18:45, bsalomon wrote: > > lgtm. Greg, ...
4 years, 9 months ago (2016-03-07 21:30:19 UTC) #26
egdaniel
On 2016/03/07 21:30:19, Chris Dalton wrote: > On 2016/03/07 21:27:52, egdaniel wrote: > > On ...
4 years, 9 months ago (2016-03-07 21:32:04 UTC) #27
Chris Dalton
On 2016/03/07 21:32:04, egdaniel wrote: > On 2016/03/07 21:30:19, Chris Dalton wrote: > > On ...
4 years, 9 months ago (2016-03-07 21:43:33 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717393002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717393002/120001
4 years, 9 months ago (2016-03-07 21:43:50 UTC) #31
commit-bot: I haz the power
4 years, 9 months ago (2016-03-07 21:58:31 UTC) #33
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/28f45b949acc746849100fbe112ee5280f0594c9

Powered by Google App Engine
This is Rietveld 408576698