kopper: Grow a swap interval API
authorAdam Jackson <ajax@redhat.com>
Thu, 28 Apr 2022 21:03:23 +0000 (17:03 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 4 May 2022 15:06:51 +0000 (15:06 +0000)
commit1e90e3325b27588f2de4c1bf7e1cbaacb818253b
tree55efc17e511708b10432a54fc395799a67940657
parent44a20baeb8bb51c7ab99e30fd7f4bb19a0b555b6
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>
include/kopper_interface.h
src/gallium/drivers/zink/zink_kopper.c
src/gallium/drivers/zink/zink_kopper.h
src/gallium/frontends/dri/kopper.c