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

Issue 4536073: Ganesh: caching texture domain rect to optimize uniform uploads (Closed)

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

Patch Set 1 #

Total comments: 2

Patch Set 2 : Response to review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -21 lines) Patch
M gpu/src/GrGLProgram.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M gpu/src/GrGpuGLShaders.cpp View 1 1 chunk +24 lines, -21 lines 0 comments Download

Messages

Total messages: 8
junov1
PTAL
13 years, 7 months ago (2011-05-20 15:41:12 UTC) #1
junov1
13 years, 7 months ago (2011-05-20 15:41:43 UTC) #2
junov1
http://codereview.appspot.com/4536073/diff/1/gpu/src/GrGLProgram.h File gpu/src/GrGLProgram.h (right): http://codereview.appspot.com/4536073/diff/1/gpu/src/GrGLProgram.h#newcode196 gpu/src/GrGLProgram.h:196: memset(fTextureDomain, 0, sizeof(GrGLfloat) * GrDrawTarget::kNumStages * 4); because GrGLfloat ...
13 years, 7 months ago (2011-05-20 15:44:27 UTC) #3
bsalomon
Hey Justin, Is there a reason we transform before caching? Would the combo of ((dirtyflag) ...
13 years, 7 months ago (2011-05-20 17:50:28 UTC) #4
junov
Just caching the untransformed rect does not work because the transform parameters can change. So ...
13 years, 7 months ago (2011-05-20 19:00:31 UTC) #5
bsalomon
On 2011/05/20 19:00:31, junov wrote: > Just caching the untransformed rect does not work because ...
13 years, 7 months ago (2011-05-20 20:52:48 UTC) #6
junov
Ah, then I guess that would be fine. I will update the change. On Fri, ...
13 years, 7 months ago (2011-05-20 22:06:25 UTC) #7
bsalomon
13 years, 7 months ago (2011-05-20 22:13:00 UTC) #8
On Fri, May 20, 2011 at 6:06 PM, Justin Novosad <junov@google.com> wrote:

> Ah, then I guess that would be fine.  I will update the change.
>
>
Cool, we have a bug that this flag is set more often than it should be. I'll
fix that soon.


>
> On Fri, May 20, 2011 at 4:52 PM, <bsalomon@google.com> wrote:
>
>> On 2011/05/20 19:00:31, junov wrote:
>>
>>> Just caching the untransformed rect does not work because the
>>>
>> transform
>>
>>> parameters can change.
>>> So either we compare the transformed rect, or we compare {untrasformed
>>>
>> rect,
>>
>>> texture orientation, texture scale x, and texture scale y}
>>>
>>
>> Wouldn't the texture dirty flag catch this? Its supposed to be set when
>> we bind a new texture. flushTextureMatrix has the same issue.
>>
>>
>>
>>  On Fri, May 20, 2011 at 1:50 PM, <mailto:bsalomon@google.com> wrote:
>>>
>>
>>  > Hey Justin,
>>> >
>>> > Is there a reason we transform before caching? Would the combo of
>>> > ((dirtyflag) || (changed unxformed rect)) work?  I just ask because
>>>
>> we
>>
>>> > store the other values in their skia/gr rep.
>>> >
>>> > Also, the other values are reset getUniformLocationsAndInitCache. We
>>> > should probably do that for the bounds as well just to be
>>>
>> consistent.
>>
>>> >
>>> >
>>> > http://codereview.appspot.com/4536073/
>>> >
>>>
>>
>>
>>
>> http://codereview.appspot.com/4536073/
>>
>
>
Sign in to reply to this message.

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