zink: only get swapchain present semaphore on batch flush after acquire
otherwise this was a no-op flush from the frontend that should be ignored Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15820>
This commit is contained in:
committed by
Marge Bot
parent
00e846ba88
commit
21496dea9c
@@ -497,8 +497,10 @@ zink_end_batch(struct zink_context *ctx, struct zink_batch *batch)
|
||||
batch->work_count = 0;
|
||||
|
||||
if (batch->swapchain) {
|
||||
batch->state->present = zink_kopper_present(screen, batch->swapchain);
|
||||
batch->state->swapchain = batch->swapchain;
|
||||
if (batch->swapchain->obj->acquired) {
|
||||
batch->state->present = zink_kopper_present(screen, batch->swapchain);
|
||||
batch->state->swapchain = batch->swapchain;
|
||||
}
|
||||
batch->swapchain = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user