intel: Ensure renderbuffers are current when mapping them.
authorEric Anholt <eric@anholt.net>
Fri, 19 Apr 2013 21:47:28 +0000 (14:47 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 30 Apr 2013 17:40:45 +0000 (10:40 -0700)
commite7c5e9949b21006160cad77bb6461e25217ba455
tree1d56dd05b418af509ea8ab04e0a782046508bc47
parent0e8ef74c5f0799f3270654f1e569905a585aa1d4
intel: Ensure renderbuffers are current when mapping them.

In the case of renering to windows in X, we would render to stale buffers
(or not render at all!) if you hit a MapRenderbuffer as the first thing
done to your window after new buffers are ready to be collected in DRI2.

I think this also covers the weird comment about irb->mt being missing
sometimes.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/dri/intel/intel_fbo.c