zink: only update last_finished during batch reset if the batch was used
0 is never a valid batch_id, so don't try to update this minor cosmetic change Acked-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11437>
This commit is contained in:
parent
56c7e69c4d
commit
618784732a
|
@ -91,6 +91,7 @@ zink_reset_batch_state(struct zink_context *ctx, struct zink_batch_state *bs)
|
|||
*/
|
||||
bs->fence.submitted = false;
|
||||
bs->has_barriers = false;
|
||||
if (bs->fence.batch_id)
|
||||
zink_screen_update_last_finished(screen, bs->fence.batch_id);
|
||||
bs->fence.batch_id = 0;
|
||||
bs->draw_count = bs->compute_count = 0;
|
||||
|
|
Loading…
Reference in New Issue