Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(293)

Issue 6446072: Addition of functions to manage texture fetch shader code generation. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by twiz1
Modified:
12 years, 4 months ago
CC:
skia-review_googlegroups.com, rileya
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Introduction of set of functions to manage generation of texture fetch shader code. A new set of routines have been added to GrGLShaderBuilder to emit texture fetches, taking into consideration the format of the texture to be accessed, and the channel swizzle. Committed: https://code.google.com/p/skia/source/detail?r=4919

Patch Set 1 #

Patch Set 2 : Remove debugging code. #

Patch Set 3 : Rebaselining to 4880. #

Total comments: 28

Patch Set 4 : Addressing style comments. #

Total comments: 11

Patch Set 5 : Partial classification of GrTexture access and nits addressed. #

Patch Set 6 : All custom effects now compute texture-related shader keys. #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Patch Set 9 : Rebaseline to 4914. #

Patch Set 10 : Temporary patch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -55 lines) Patch
M include/gpu/GrCustomStage.h View 1 2 3 4 5 6 7 8 9 2 chunks +27 lines, -2 lines 0 comments Download
M include/gpu/GrProgramStageFactory.h View 1 2 3 4 5 6 7 8 9 4 chunks +18 lines, -9 lines 0 comments Download
M src/effects/SkLightingImageFilter.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M src/effects/gradients/SkLinearGradient.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/effects/gradients/SkRadialGradient.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/effects/gradients/SkSweepGradient.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/effects/gradients/SkTwoPointConicalGradient.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M src/effects/gradients/SkTwoPointRadialGradient.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrCustomStage.cpp View 1 2 3 4 5 6 7 8 9 4 chunks +16 lines, -1 line 0 comments Download
M src/gpu/effects/GrColorTableEffect.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M src/gpu/effects/GrColorTableEffect.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +45 lines, -15 lines 0 comments Download
M src/gpu/effects/GrConvolutionEffect.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -4 lines 0 comments Download
M src/gpu/effects/GrMorphologyEffect.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/effects/GrSingleTextureEffect.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -3 lines 0 comments Download
M src/gpu/effects/GrTextureDomainEffect.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -3 lines 0 comments Download
M src/gpu/gl/GrGLProgram.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLProgramStage.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLProgramStage.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.h View 1 2 3 4 5 6 7 8 9 2 chunks +17 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +73 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGpuGL_program.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGpuGL_unittest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24
twiz1
PTAL. This is the first revision of how I think the texture fetch glsl shader ...
12 years, 4 months ago (2012-07-31 21:09:50 UTC) #1
bsalomon
Jeff, I think this is totally the right direction. I have some questions, suggestions, bike-shedding, ...
12 years, 4 months ago (2012-08-01 14:05:52 UTC) #2
bsalomon
Adding Rile and Rob to the CC in case they want to have a look.
12 years, 4 months ago (2012-08-01 14:15:50 UTC) #3
bsalomon
On 2012/08/01 14:15:50, bsalomon wrote: > Adding Rile and Rob to the CC in case ...
12 years, 4 months ago (2012-08-01 14:17:21 UTC) #4
robertphillips
http://codereview.appspot.com/6446072/diff/4002/include/gpu/GrProgramStageFactory.h File include/gpu/GrProgramStageFactory.h (right): http://codereview.appspot.com/6446072/diff/4002/include/gpu/GrProgramStageFactory.h#newcode84 include/gpu/GrProgramStageFactory.h:84: GLSL code generation. */ Is the left spacing still ...
12 years, 4 months ago (2012-08-01 14:44:58 UTC) #5
twiz1
Thanks for the reviews. I made all of the style changes. I will upload another ...
12 years, 4 months ago (2012-08-01 18:11:54 UTC) #6
bsalomon
On 2012/08/01 18:11:54, twiz1 wrote: > Thanks for the reviews. > > I made all ...
12 years, 4 months ago (2012-08-01 18:27:22 UTC) #7
bsalomon
It seems like it'd be good to make the inclusion of the texture access parts ...
12 years, 4 months ago (2012-08-01 18:33:00 UTC) #8
TomH
https://codereview.appspot.com/6446072/diff/4002/include/gpu/GrCustomStage.h File include/gpu/GrCustomStage.h (right): https://codereview.appspot.com/6446072/diff/4002/include/gpu/GrCustomStage.h#newcode19 include/gpu/GrCustomStage.h:19: /** A structure representing the swizzle access pattern for ...
12 years, 4 months ago (2012-08-01 18:34:40 UTC) #9
bsalomon
https://codereview.appspot.com/6446072/diff/13001/src/gpu/gl/GrGLShaderBuilder.cpp File src/gpu/gl/GrGLShaderBuilder.cpp (right): https://codereview.appspot.com/6446072/diff/13001/src/gpu/gl/GrGLShaderBuilder.cpp#newcode185 src/gpu/gl/GrGLShaderBuilder.cpp:185: void GrGLShaderBuilder::emitCustomTextureLookup(SamplerMode samplerMode, On 2012/08/01 18:34:41, TomH wrote: > ...
12 years, 4 months ago (2012-08-01 18:39:40 UTC) #10
twiz1
On 2012/08/01 18:27:22, bsalomon wrote: > On 2012/08/01 18:11:54, twiz1 wrote: > > Thanks for ...
12 years, 4 months ago (2012-08-01 19:36:41 UTC) #11
twiz1
Thx again for the reviews. I addressed the nits, and converted GrTextureAccess to a class. ...
12 years, 4 months ago (2012-08-01 20:14:12 UTC) #12
twiz1
I made a small modification to the key generation code in GrProgramStageFactory.h to include a ...
12 years, 4 months ago (2012-08-01 20:59:52 UTC) #13
TomH
LGTM. Exciting list of follow-up changes. I'd be happy to do any of those if ...
12 years, 4 months ago (2012-08-01 21:01:28 UTC) #14
bsalomon
On 2012/08/01 21:01:28, TomH wrote: > LGTM. > > Exciting list of follow-up changes. I'd ...
12 years, 4 months ago (2012-08-01 21:10:04 UTC) #15
bsalomon
Forgot to publish this Q: http://codereview.appspot.com/6446072/diff/13004/src/gpu/effects/GrColorTableEffect.cpp File src/gpu/effects/GrColorTableEffect.cpp (right): http://codereview.appspot.com/6446072/diff/13004/src/gpu/effects/GrColorTableEffect.cpp#newcode90 src/gpu/effects/GrColorTableEffect.cpp:90: const GrGLCaps& caps) { ...
12 years, 4 months ago (2012-08-01 21:10:22 UTC) #16
twiz1
http://codereview.appspot.com/6446072/diff/13004/src/gpu/effects/GrColorTableEffect.cpp File src/gpu/effects/GrColorTableEffect.cpp (right): http://codereview.appspot.com/6446072/diff/13004/src/gpu/effects/GrColorTableEffect.cpp#newcode90 src/gpu/effects/GrColorTableEffect.cpp:90: const GrGLCaps& caps) { On 2012/08/01 21:10:23, bsalomon wrote: ...
12 years, 4 months ago (2012-08-01 21:22:45 UTC) #17
twiz1
12 years, 4 months ago (2012-08-01 21:22:48 UTC) #18
bsalomon
On 2012/08/01 21:22:45, twiz1 wrote: > http://codereview.appspot.com/6446072/diff/13004/src/gpu/effects/GrColorTableEffect.cpp > File src/gpu/effects/GrColorTableEffect.cpp (right): > > http://codereview.appspot.com/6446072/diff/13004/src/gpu/effects/GrColorTableEffect.cpp#newcode90 > ...
12 years, 4 months ago (2012-08-01 21:24:23 UTC) #19
twiz1
On 2012/08/01 21:01:28, TomH wrote: > LGTM. > > Exciting list of follow-up changes. I'd ...
12 years, 4 months ago (2012-08-01 21:39:44 UTC) #20
twiz1
On 2012/08/01 21:39:44, twiz1 wrote: > On 2012/08/01 21:01:28, TomH wrote: > > LGTM. > ...
12 years, 4 months ago (2012-08-01 22:14:16 UTC) #21
twiz1
On 2012/08/01 22:14:16, twiz1 wrote: > On 2012/08/01 21:39:44, twiz1 wrote: > > On 2012/08/01 ...
12 years, 4 months ago (2012-08-01 23:09:15 UTC) #22
bsalomon
Nice catch, thanks for the thorough testing! LGTM
12 years, 4 months ago (2012-08-02 13:07:11 UTC) #23
twiz1
12 years, 4 months ago (2012-08-02 15:15:07 UTC) #24
Introduction of set of functions to manage generation of texture fetch shader
code.  

A new set of routines have been added to GrGLShaderBuilder to emit texture
fetches, taking into consideration the format of the texture to be accessed, and
the channel swizzle.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b