wsi/x11: Fix potential deadlock in present ID.
authorHans-Kristian Arntzen <post@arntzen-software.no>
Tue, 12 Sep 2023 12:28:18 +0000 (14:28 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 12 Sep 2023 19:46:56 +0000 (19:46 +0000)
commit08fee190aa0b504c3730cc335b02d7bb86bf8208
tree44dd14470bdb2eeef1d51641e123f5b00a6ab78f
parentda16a76fe7dafa210c6191c968b29854a87e805b
wsi/x11: Fix potential deadlock in present ID.

If we observe IDLE before COMPLETE, another queued image may have
presented with present ID 0 which would break the check fixed in this
commit. The original fix for present_id / signal_present_id split
forgot to take this into account.

Fixes: 32f7ff2c204b ("Fix present ID signal when IDLE comes before
COMPLETE").

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