lavapipe: fix wsi acquire fences

Fixes:
dEQP-VK.wsi.xcb.swapchain.acquire.too_many

Cc: "20.3" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7705>
(cherry picked from commit f246456538)
This commit is contained in:
Dave Airlie 2020-11-16 10:02:17 +10:00 committed by Dylan Baker
parent 6e3894d52d
commit 904811faac
2 changed files with 3 additions and 10 deletions

View file

@ -634,7 +634,7 @@
"description": "lavapipe: fix wsi acquire fences",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": null
},

View file

@ -213,19 +213,12 @@ VkResult lvp_AcquireNextImage2KHR(
_device,
pAcquireInfo,
pImageIndex);
#if 0
LVP_FROM_HANDLE(lvp_fence, fence, pAcquireInfo->fence);
if (fence && (result == VK_SUCCESS || result == VK_SUBOPTIMAL_KHR)) {
if (fence->fence)
device->ws->signal_fence(fence->fence);
if (fence->temp_syncobj) {
device->ws->signal_syncobj(device->ws, fence->temp_syncobj);
} else if (fence->syncobj) {
device->ws->signal_syncobj(device->ws, fence->syncobj);
}
fence->signaled = true;
}
#endif
return result;
}