[Mesa-dev] [PATCH] dri2: add code to flush function of DRI2_Flush extension

Cooper Yuan cooperyuan at gmail.com
Mon Aug 15 04:32:40 PDT 2011


Hi All, please review this changelist that's going to enable eglWaitClient()
which has the same effect with glFinish according to specification.
before, egl applications using pixmap or pbuffer flicker always because of
no flush.

Cooper
---
 src/gallium/state_trackers/dri/drm/dri2.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/gallium/state_trackers/dri/drm/dri2.c
b/src/gallium/state_trackers/dri/drm/dri2.c
index d491e46..908a735 100644
--- a/src/gallium/state_trackers/dri/drm/dri2.c
+++ b/src/gallium/state_trackers/dri/drm/dri2.c
@@ -46,6 +46,10 @@
 static void
 dri2_flush_drawable(__DRIdrawable *draw)
 {
+   struct dri_drawable *drawable = dri_drawable(draw);
+   struct dri_context *ctx = dri_get_current(draw->driScreenPriv);
+
+   ctx->st->flush(ctx->st, 0, NULL);
 }

 static void
-- 
1.7.4.4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110815/739e9ad3/attachment.html>


More information about the mesa-dev mailing list