wsi/x11: Don't allow signal_present_id to rewind.
authorHans-Kristian Arntzen <post@arntzen-software.no>
Tue, 12 Sep 2023 12:31:14 +0000 (14:31 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 12 Sep 2023 19:46:56 +0000 (19:46 +0000)
commit85192dcfc6e57c4d0e5e0a45208481618747e63a
tree81a85145a0386f660d38ebcd2929e77f81e5b89f
parent08fee190aa0b504c3730cc335b02d7bb86bf8208
wsi/x11: Don't allow signal_present_id to rewind.

If present ID is 0, we should consider it to be ignored.
Avoids a theoretical problem when using IMMEDIATE mode with present ID
where some images don't set present ID.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25178>
src/vulkan/wsi/wsi_common_x11.c