zink: handle split acquire/present
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>
This commit is contained in:

committed by
Marge Bot

parent
5505811f64
commit
db192c0883
@@ -593,6 +593,10 @@ zink_kopper_acquire_submit(struct zink_screen *screen, struct zink_resource *res
|
||||
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 */
|
||||
|
Reference in New Issue
Block a user