bf593e09b1
We need to flush the appropriate batch(es in the future) before a synchronized transfer for correct results. To do so without major performance regressions, we need to do extra bookkeeping about which batches write which resources. We already know about reads via the BO list. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606>