zink: use better determination for handling swapchain acquire submits
if the swapchain has data, it has already passed through this function and thus does not need to attempt to synchronize another swapchain acquire for the same image Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17149>
This commit is contained in:

committed by
Marge Bot

parent
92228a6d28
commit
9625e99110
@@ -569,7 +569,7 @@ zink_kopper_acquire_submit(struct zink_screen *screen, struct zink_resource *res
|
||||
{
|
||||
assert(res->obj->dt);
|
||||
struct kopper_displaytarget *cdt = kopper_displaytarget(res->obj->dt);
|
||||
if (zink_kopper_acquired(res->obj->dt, res->obj->dt_idx))
|
||||
if (cdt->swapchain->dt_has_data)
|
||||
return VK_NULL_HANDLE;
|
||||
assert(res->obj->acquire);
|
||||
cdt->swapchain->images[res->obj->dt_idx].acquired = true;
|
||||
|
Reference in New Issue
Block a user