zink: only update last_finished during batch reset if the batch was used
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 8 Apr 2021 13:09:06 +0000 (09:09 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 22 Jun 2021 20:57:33 +0000 (20:57 +0000)
commit618784732a227e5aa4970b303b1e34541c5f400a
treec6285e56afcd79dce1e817aa2b12eb3ef9e6495c
parent56c7e69c4d9dca0e4e0f4c56dcfe97e8b8b4aa5e
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>
src/gallium/drivers/zink/zink_batch.c