summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2014-06-18 23:27:31 -0400
committerDave Airlie <[email protected]>2014-06-27 11:39:34 +1000
commite40cf256f4cb4105c760060e43ab19a4f1524ed3 (patch)
tree733382f3f62198eab8b16c2eb6c60967f7996a56 /src
parente4419913bf0b12e33e91f1947295b67eff0d341e (diff)
dri3: use invalidate.
This doesn't change anything to the intel DRI3 implementation, but enables the gallium implementation to use dri2.stamp instead of relying on the stamp shared with the st backend. Signed-off-by: Axel Davy <[email protected]> Reviewed-by: Ben Skeggs <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/glx/dri3_glx.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
index edad014b2e8..9d2a40f9a55 100644
--- a/src/glx/dri3_glx.c
+++ b/src/glx/dri3_glx.c
@@ -1308,9 +1308,14 @@ static const __DRIimageLoaderExtension imageLoaderExtension = {
.flushFrontBuffer = dri3_flush_front_buffer,
};
+const __DRIuseInvalidateExtension dri3UseInvalidate = {
+ .base = { __DRI_USE_INVALIDATE, 1 }
+};
+
static const __DRIextension *loader_extensions[] = {
&imageLoaderExtension.base,
&systemTimeExtension.base,
+ &dri3UseInvalidate.base,
NULL
};
@@ -1384,6 +1389,8 @@ dri3_swap_buffers(__GLXDRIdrawable *pdraw, int64_t target_msc, int64_t divisor,
++(*priv->stamp);
}
+ (*psc->f->invalidate)(priv->driDrawable);
+
return ret;
}