summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2022-04-28 17:03:23 -0400
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2022-05-05 14:05:37 -0400
commit533117777f96915e75644f198622e3ff3bde5786 (patch)
tree3cc73e874426b973ddf7199208b7b67a6446fb8c /include
parentf96b0d640b138b389a6c4abff6bccac3e9de2e9b (diff)
kopper: Grow a swap interval API
We take a slight liberty here by allowing 0 to mean either MAILBOX or IMMEDIATE, since Wayland (at least) doesn't have a true IMMEDIATE mode at least MAILBOX won't throttle to vblank. This only correctly handles intervals of 0 or 1 at the moment. Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15800>
Diffstat (limited to 'include')
-rw-r--r--include/kopper_interface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/kopper_interface.h b/include/kopper_interface.h
index 8852252578d..584214e113a 100644
--- a/include/kopper_interface.h
+++ b/include/kopper_interface.h
@@ -74,6 +74,7 @@ struct __DRIkopperExtensionRec {
void *loaderPrivate,
int pixmap);
int64_t (*swapBuffers)(__DRIdrawable *draw);
+ void (*setSwapInterval)(__DRIdrawable *drawable, int interval);
};
/**