mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
wsi/x11: cleanup properly after mit shm paths are used.
This path was being skipped on sw + has_mit_shm, when it
shouldn't be.
Fixes: a069b4e9b9 ("vulkan/wsi/sw: add mit-shm support for pixmap allocation")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13217>
This commit is contained in:
parent
2414001bdd
commit
7d388c8d09
1 changed files with 1 additions and 1 deletions
|
|
@ -1512,7 +1512,7 @@ x11_image_finish(struct x11_swapchain *chain,
|
|||
{
|
||||
xcb_void_cookie_t cookie;
|
||||
|
||||
if (!chain->base.wsi->sw) {
|
||||
if (!chain->base.wsi->sw || chain->has_mit_shm) {
|
||||
cookie = xcb_sync_destroy_fence(chain->conn, image->sync_fence);
|
||||
xcb_discard_reply(chain->conn, cookie.sequence);
|
||||
xshmfence_unmap_shm(image->shm_fence);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue