summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/nouveau/nouveau_screen.c
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2010-02-08 19:27:57 +0100
committerKristian Høgsberg <[email protected]>2010-02-16 10:38:50 -0500
commit88a560691b904cc8eacda62d9bf80987d3c430c1 (patch)
treecc37a38491d41a41dbc7738d29f858f68029fb54 /src/mesa/drivers/dri/nouveau/nouveau_screen.c
parent61d26bc82e7c4100acfb551cbb0ba9d84bbc4ba5 (diff)
dri/nouveau: Use event driven buffer validation.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_screen.c')
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_screen.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_screen.c b/src/mesa/drivers/dri/nouveau/nouveau_screen.c
index 6abab8c9656..3f9f3a3567a 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_screen.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_screen.c
@@ -247,7 +247,19 @@ nouveau_destroy_buffer(__DRIdrawable *drawable)
(struct gl_framebuffer **)&drawable->driverPrivate, NULL);
}
+static void
+nouveau_drawable_flush(__DRIdrawable *draw)
+{
+}
+
+static const struct __DRI2flushExtensionRec nouveau_flush_extension = {
+ { __DRI2_FLUSH, __DRI2_FLUSH_VERSION },
+ nouveau_drawable_flush,
+ dri2InvalidateDrawable,
+};
+
static const __DRIextension *nouveau_screen_extensions[] = {
+ &nouveau_flush_extension.base,
NULL
};