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

Issue 6480049: Change scratch texture cache behavior to only reuse scratch textures used as render targets if they… (Closed)

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

Description

Change scratch texture cache behavior to only reuse scratch textures used as render targets if they will be reused as render targets. The original behavior could sometimes confuse the driver; textures would alternate between being used as render targets and having data uploaded into them. Committed: https://code.google.com/p/skia/source/detail?r=5252

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : fix spacing #

Total comments: 2

Patch Set 4 : Add assert and explanatory comment. #

Total comments: 1

Patch Set 5 : Fix comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M src/gpu/GrContext.cpp View 1 2 3 4 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 11
rileya
12 years, 3 months ago (2012-08-22 21:04:34 UTC) #1
bsalomon
http://codereview.appspot.com/6480049/diff/1/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (left): http://codereview.appspot.com/6480049/diff/1/src/gpu/GrContext.cpp#oldcode439 src/gpu/GrContext.cpp:439: } else if (desc.fFlags & kNoStencil_GrTextureFlagBit) { I think ...
12 years, 3 months ago (2012-08-22 21:10:08 UTC) #2
rileya
On 2012/08/22 21:10:08, bsalomon wrote: > http://codereview.appspot.com/6480049/diff/1/src/gpu/GrContext.cpp > File src/gpu/GrContext.cpp (left): > > http://codereview.appspot.com/6480049/diff/1/src/gpu/GrContext.cpp#oldcode439 > ...
12 years, 3 months ago (2012-08-22 21:25:54 UTC) #3
bsalomon
On 2012/08/22 21:25:54, rileya wrote: > On 2012/08/22 21:10:08, bsalomon wrote: > > http://codereview.appspot.com/6480049/diff/1/src/gpu/GrContext.cpp > ...
12 years, 3 months ago (2012-08-22 21:28:19 UTC) #4
robertphillips
http://codereview.appspot.com/6480049/diff/5002/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): http://codereview.appspot.com/6480049/diff/5002/src/gpu/GrContext.cpp#newcode436 src/gpu/GrContext.cpp:436: } Should we even keep the kRenderTarget portion of ...
12 years, 3 months ago (2012-08-23 11:04:54 UTC) #5
robertphillips
Also, could you use the new texture cache stats report to see if this has ...
12 years, 3 months ago (2012-08-23 12:09:58 UTC) #6
bsalomon
http://codereview.appspot.com/6480049/diff/5002/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): http://codereview.appspot.com/6480049/diff/5002/src/gpu/GrContext.cpp#newcode436 src/gpu/GrContext.cpp:436: } On 2012/08/23 11:04:55, robertphillips wrote: > Should we ...
12 years, 3 months ago (2012-08-23 12:38:07 UTC) #7
rileya
On 2012/08/23 12:38:07, bsalomon wrote: > http://codereview.appspot.com/6480049/diff/5002/src/gpu/GrContext.cpp > File src/gpu/GrContext.cpp (right): > > http://codereview.appspot.com/6480049/diff/5002/src/gpu/GrContext.cpp#newcode436 > ...
12 years, 3 months ago (2012-08-23 13:30:46 UTC) #8
robertphillips
LGTM modulo comment change suggestion. http://codereview.appspot.com/6480049/diff/10001/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (right): http://codereview.appspot.com/6480049/diff/10001/src/gpu/GrContext.cpp#newcode439 src/gpu/GrContext.cpp:439: } I think we ...
12 years, 3 months ago (2012-08-23 13:50:48 UTC) #9
rileya
On 2012/08/23 13:50:48, robertphillips wrote: > LGTM modulo comment change suggestion. > > http://codereview.appspot.com/6480049/diff/10001/src/gpu/GrContext.cpp > ...
12 years, 3 months ago (2012-08-23 13:59:18 UTC) #10
rileya
12 years, 3 months ago (2012-08-23 14:09:10 UTC) #11
On 2012/08/23 13:59:18, rileya wrote:
> On 2012/08/23 13:50:48, robertphillips wrote:
> > LGTM modulo comment change suggestion.
> > 
> > http://codereview.appspot.com/6480049/diff/10001/src/gpu/GrContext.cpp
> > File src/gpu/GrContext.cpp (right):
> > 
> >
>
http://codereview.appspot.com/6480049/diff/10001/src/gpu/GrContext.cpp#newcod...
> > src/gpu/GrContext.cpp:439: }
> > I think we can remove this clause "Note that unless a texture for use as a
> > render target was requested" and add "in situations where no RT is needed"
> > before the ';'.
> 
> Done.

And landed as 5252.
Sign in to reply to this message.

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