if the swapchain image is acquired in a different cmdbuf than it gets
presented with, the acquire semaphore will have already been submitted
by this point, and the swapchain should be flagged as such
cc: mesa-stable
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18557>
if (cdt->swapchain->images[res->obj->dt_idx].dt_has_data)
return VK_NULL_HANDLE;
assert(res->obj->dt_idx != UINT32_MAX);
+ if (cdt->swapchain->images[res->obj->dt_idx].acquired) {
+ assert(!cdt->swapchain->images[res->obj->dt_idx].acquire);
+ return VK_NULL_HANDLE;
+ }
assert(cdt->swapchain->images[res->obj->dt_idx].acquire);
cdt->swapchain->images[res->obj->dt_idx].acquired = true;
/* this is now owned by the batch */