freedreno: Move the !MAP_WRITE write batch refcounting to the branch.
authorEmma Anholt <emma@anholt.net>
Tue, 15 Jun 2021 17:43:11 +0000 (10:43 -0700)
committerEmma Anholt <emma@anholt.net>
Thu, 17 Jun 2021 16:11:02 +0000 (09:11 -0700)
commit09e1fb2bceb650d700bf94f668c116ec93a58319
tree9a3c808b2a6ff902961fccac402e6fc1bee04cff
parentfd571565d2c71c47a6894e31db84f2150b5f3e86
freedreno: Move the !MAP_WRITE write batch refcounting to the branch.

For MAP_WRITE, we flush all the batches referencing the BO, so the write
batch will get flushed anyway.  No need to take an extra ref.

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