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>
This commit is contained in:
@@ -74,6 +74,7 @@ struct __DRIkopperExtensionRec {
|
||||
void *loaderPrivate,
|
||||
int pixmap);
|
||||
int64_t (*swapBuffers)(__DRIdrawable *draw);
|
||||
void (*setSwapInterval)(__DRIdrawable *drawable, int interval);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user