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

Issue 4576051: Attempt to ensure pipeline flush on rendertarget change (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 2 months ago by John Bauman
Modified:
14 years, 2 months ago
CC:
angleproject-review_googlegroups.com
Base URL:
https://angleproject.googlecode.com/svn/trunk
Visibility:
Public.

Description

Attempt to ensure pipeline flush on rendertarget change Some ATI cards appear not to flush the pipeline correctly, causing textures not to pick up newly-drawn contexts, so do an extra no-op draw when necessary. BUG=169 TEST=chromium on hulu.com Committed: http://code.google.com/p/angleproject/source/detail?r=693

Patch Set 1 #

Total comments: 5

Patch Set 2 : switch to colormask-related workaround #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -2 lines) Patch
M src/libEGL/Display.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/libEGL/Display.cpp View 2 chunks +7 lines, -0 lines 0 comments Download
M src/libGLESv2/Context.cpp View 1 3 chunks +31 lines, -2 lines 5 comments Download

Messages

Total messages: 10
John Bauman
This seems to be the fastest and smallest change that works.
14 years, 2 months ago (2011-06-09 22:04:45 UTC) #1
dgkoch
I'll let Vangelis LGTM as appropriate http://codereview.appspot.com/4576051/diff/1/src/libGLESv2/Blit.cpp File src/libGLESv2/Blit.cpp (right): http://codereview.appspot.com/4576051/diff/1/src/libGLESv2/Blit.cpp#newcode326 src/libGLESv2/Blit.cpp:326: bool Blit::emptyBlit() Don't ...
14 years, 2 months ago (2011-06-10 03:00:14 UTC) #2
John Bauman
http://codereview.appspot.com/4576051/diff/1/src/libGLESv2/Blit.cpp File src/libGLESv2/Blit.cpp (right): http://codereview.appspot.com/4576051/diff/1/src/libGLESv2/Blit.cpp#newcode326 src/libGLESv2/Blit.cpp:326: bool Blit::emptyBlit() On 2011/06/10 03:00:14, dgkoch wrote: > Don't ...
14 years, 2 months ago (2011-06-10 05:27:36 UTC) #3
dgkoch
LGTM then (once you add the comment), provided you've tested it fairly well http://codereview.appspot.com/4576051/diff/1/src/libGLESv2/Blit.cpp File ...
14 years, 2 months ago (2011-06-10 17:40:55 UTC) #4
John Bauman
Ok, here's a different workaround that shouldn't have nearly as many performance issues. Apparently if ...
14 years, 2 months ago (2011-06-13 21:28:22 UTC) #5
nicolas
That's an intriguing driver bug. Nice find by the way! Patch looks good as far ...
14 years, 2 months ago (2011-06-14 07:22:45 UTC) #6
nicolas
Did spot a couple of things... http://codereview.appspot.com/4576051/diff/10001/src/libGLESv2/Context.cpp File src/libGLESv2/Context.cpp (right): http://codereview.appspot.com/4576051/diff/10001/src/libGLESv2/Context.cpp#newcode1892 src/libGLESv2/Context.cpp:1892: if (!colorMask && ...
14 years, 2 months ago (2011-06-14 07:27:40 UTC) #7
John Bauman
Thanks for looking at this. http://codereview.appspot.com/4576051/diff/10001/src/libGLESv2/Context.cpp File src/libGLESv2/Context.cpp (right): http://codereview.appspot.com/4576051/diff/10001/src/libGLESv2/Context.cpp#newcode1892 src/libGLESv2/Context.cpp:1892: if (!colorMask && !zeroColorMaskAllowed) ...
14 years, 2 months ago (2011-06-14 07:38:38 UTC) #8
dgkoch
Look as reasonable to me, with that colormask compare bit changed.
14 years, 2 months ago (2011-06-14 14:09:17 UTC) #9
vangelis
14 years, 2 months ago (2011-06-16 00:25:12 UTC) #10
http://codereview.appspot.com/4576051/diff/10001/src/libGLESv2/Context.cpp
File src/libGLESv2/Context.cpp (right):

http://codereview.appspot.com/4576051/diff/10001/src/libGLESv2/Context.cpp#ne...
src/libGLESv2/Context.cpp:1742: // Apparently some ATI cards have a bug where a
draw with a zero color
nity-nit:  can we move the comment up before the setting of the bool to make it
clear what part of the code it refers to.  It's customary to have comments
proceed the code.
Sign in to reply to this message.

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