dri2: add code to dri2_Flush extension.
authorCooper Yuan <cooperyuan@gmail.com>
Tue, 16 Aug 2011 01:32:10 +0000 (09:32 +0800)
committerCooper Yuan <cooperyuan@gmail.com>
Tue, 16 Aug 2011 01:32:10 +0000 (09:32 +0800)
It's going to flush client's commands in eglWaitClient(). Before this,
egl applications using pixmap or pbuffer flicker because of no flush.

Reviewed-by: Alan Hourihane
src/gallium/state_trackers/dri/drm/dri2.c

index d491e46..908a735 100644 (file)
 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