zink: don't clear batch resources on fence finish
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 7 May 2021 12:10:00 +0000 (08:10 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 22 Jun 2021 20:57:33 +0000 (20:57 +0000)
commit5cecf826d3b4ed4282a6979e0c00713d0a5f8909
treee61cf8ef051a0d23d69b6fd19a0cb2ccd967f553
parentb315aa43f1c2d2f17bdd6a78cf402daae060d31c
zink: don't clear batch resources on fence finish

this eliminates the need for locking here and has no noticeable
increase in overhead, so the reduction of complexity seems worthwhile

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
src/gallium/drivers/zink/zink_batch.h
src/gallium/drivers/zink/zink_fence.c
src/gallium/drivers/zink/zink_fence.h