Mesa (master): intel: make sure we update the renderbuffers after a swap

Jesse Barnes jbarnes at kemper.freedesktop.org
Tue Jan 26 20:18:38 UTC 2010


Module: Mesa
Branch: master
Commit: 06d228d8b92b7f4031f0596d498c24c4ed952e68
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=06d228d8b92b7f4031f0596d498c24c4ed952e68

Author: Jesse Barnes <jbarnes at virtuousgeek.org>
Date:   Tue Jan 26 22:16:53 2010 +0200

intel: make sure we update the renderbuffers after a swap

Now that LOCK_HARDWARE is gone, we don't have a convenient place to
update the renderbuffers everywhere we need them.  So grab new buffers
when we invalidate the old ones until we optimize things further.

---

 src/mesa/drivers/dri/intel/intel_screen.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c
index b170317..96e7f28 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.c
+++ b/src/mesa/drivers/dri/intel/intel_screen.c
@@ -132,6 +132,8 @@ intelDRI2FlushInvalidate(__DRIdrawable *drawable)
 
    intelDRI2Flush(drawable);
    drawable->validBuffers = GL_FALSE;
+
+   intel_update_renderbuffers(intel->driContext, drawable);
 }
 
 static const struct __DRI2flushExtensionRec intelFlushExtension = {




More information about the mesa-commit mailing list