projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a313c29
)
dri2: add code to dri2_Flush extension.
author
Cooper Yuan
<cooperyuan@gmail.com>
Tue, 16 Aug 2011 01:32:10 +0000
(09:32 +0800)
committer
Cooper 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
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/dri/drm/dri2.c
b/src/gallium/state_trackers/dri/drm/dri2.c
index d491e46ab16fe4d92e73d929267b673b8e19c0b0..908a735234ed897de5a7c682a58f7b05b917bdcc 100644
(file)
--- 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