mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
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:
parent
92228a6d28
commit
9625e99110
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue