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

Issue 4434057: Add build flag to prevent use of GL constant vertex attr (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 2 months ago by bsalomon
Modified:
13 years, 2 months ago
Reviewers:
junov, reed1
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 13

Patch Set 2 : get rid of shorts #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+353 lines, -194 lines) Patch
M gpu/include/GrConfig.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/include/GrDrawTarget.h View 1 1 chunk +1 line, -1 line 0 comments Download
M gpu/include/GrGLConfig.h View 1 chunk +28 lines, -5 lines 0 comments Download
M gpu/include/GrGLConfig_chrome.h View 1 chunk +5 lines, -2 lines 0 comments Download
M gpu/include/GrTypes.h View 1 1 chunk +1 line, -1 line 0 comments Download
M gpu/src/GrGLProgram.h View 1 4 chunks +17 lines, -7 lines 0 comments Download
M gpu/src/GrGLProgram.cpp View 1 9 chunks +39 lines, -26 lines 0 comments Download
M gpu/src/GrGpuGLShaders.h View 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/src/GrGpuGLShaders.cpp View 10 chunks +80 lines, -38 lines 0 comments Download
M gpu/src/GrGpuGLShaders2.h View 3 chunks +19 lines, -14 lines 0 comments Download
M gpu/src/GrGpuGLShaders2.cpp View 1 27 chunks +158 lines, -100 lines 1 comment Download

Messages

Total messages: 6
bsalomon
The motivation for this change is that constant vertex attributes (specified via glVertexAttrib rather than ...
13 years, 2 months ago (2011-04-19 16:51:37 UTC) #1
reed1
LGTM
13 years, 2 months ago (2011-04-19 17:43:58 UTC) #2
junov
Awesome that you found this fast path! http://codereview.appspot.com/4434057/diff/1/gpu/include/GrGLConfig_chrome.h File gpu/include/GrGLConfig_chrome.h (right): http://codereview.appspot.com/4434057/diff/1/gpu/include/GrGLConfig_chrome.h#newcode11 gpu/include/GrGLConfig_chrome.h:11: #define GR_GL_NO_CONSTANT_ATTRIBUTES ...
13 years, 2 months ago (2011-04-19 18:04:15 UTC) #3
bsalomon
Thanks for the review! Updated with a new patch. http://codereview.appspot.com/4434057/diff/1/gpu/include/GrGLConfig_chrome.h File gpu/include/GrGLConfig_chrome.h (right): http://codereview.appspot.com/4434057/diff/1/gpu/include/GrGLConfig_chrome.h#newcode11 gpu/include/GrGLConfig_chrome.h:11: ...
13 years, 2 months ago (2011-04-19 19:31:59 UTC) #4
reed1
keep it up, junov!
13 years, 2 months ago (2011-04-19 19:41:04 UTC) #5
junov
13 years, 2 months ago (2011-04-19 20:05:47 UTC) #6
LGTM

http://codereview.appspot.com/4434057/diff/1/gpu/src/GrGpuGLShaders.cpp
File gpu/src/GrGpuGLShaders.cpp (right):

http://codereview.appspot.com/4434057/diff/1/gpu/src/GrGpuGLShaders.cpp#newco...
gpu/src/GrGpuGLShaders.cpp:508: desc.fColorType =
GrGLProgram::ProgramDesc::kUniform_ColorType;
Ah, I missed the dangling 'else' in my first read. So this works, but loses
points for legibility. :-)
On 2011/04/19 19:31:59, bsalomon wrote:
> On 2011/04/19 18:04:15, junov wrote:
> > Not a big deal, but shouldn't this go before the GR_AGGRESSIVE_SHADER_OPTS
> part?
> 
> We want to prefer kNone to kUniform if its an option.

http://codereview.appspot.com/4434057/diff/6001/gpu/src/GrGpuGLShaders2.cpp
File gpu/src/GrGpuGLShaders2.cpp (right):

http://codereview.appspot.com/4434057/diff/6001/gpu/src/GrGpuGLShaders2.cpp#n...
gpu/src/GrGpuGLShaders2.cpp:253: return (x & 0x00ff00) | (x << 24) | (x >> 24);
Don't you like that we will longer have worry about this stuff in the new
GrGpuGLShaders ;-))
Sign in to reply to this message.

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