zink: track gfx/compute descriptor barrier info
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 20 Jun 2022 15:20:44 +0000 (11:20 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 24 Jun 2022 01:56:28 +0000 (01:56 +0000)
commit50e764fa50d58054259cec1fc613a0aa6ef9d60f
tree5bada8fe922ab61b59a11dc8bb263bee339e2000
parent74dd6e69b44f3301131961af53348c8cb96d844a
zink: track gfx/compute descriptor barrier info

update_barriers has steadily grown more and more complex when the original
idea was for it to be a small function to handle deferred jit barriers and
simplify sync in patterns like bind_ubo -> draw -> buffer_subdata -> draw

instead, track the pending barrier info at bind time so that the stages and
access are already updated by the time draw/compute are reached

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17192>
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_resource.h