freedreno: Early-out from the resource write path when we're the writer.
authorEric Anholt <eric@anholt.net>
Mon, 25 Jan 2021 22:54:25 +0000 (14:54 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 28 Jan 2021 22:50:43 +0000 (14:50 -0800)
commitf179594cf9a937dea3ac1e9d0b1d6d3fc86a8af3
tree081b156f39aa6dcdb016ac8f6999b43e28afe4e5
parentd1a0eba2417919a48aebabe041797ff2a4d7f68a
freedreno: Early-out from the resource write path when we're the writer.

No need to do the other checks in this case, because then we know that
we've done the UBWC clears and recursed on stencil and added deps on read
batches.

Done as a separate patch to reduce behavior changes in my upcoming move of
the batch cache to the context.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8729>
src/gallium/drivers/freedreno/freedreno_batch.c