Mesa (master): freedreno: Remove duplicate bc invalidate on flush_write_batch().

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jan 28 23:03:30 UTC 2021


Module: Mesa
Branch: master
Commit: 7d0c940d703f25698d4d4ec38060015261b66bfd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d0c940d703f25698d4d4ec38060015261b66bfd

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Jan 25 15:03:55 2021 -0800

freedreno: Remove duplicate bc invalidate on flush_write_batch().

The fd_batch_flush() internals already do the invalidate at the end to
clean up the bc's references to the batch.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8729>

---

 src/gallium/drivers/freedreno/freedreno_batch.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gallium/drivers/freedreno/freedreno_batch.c b/src/gallium/drivers/freedreno/freedreno_batch.c
index 8d67c620cf5..425a490ca25 100644
--- a/src/gallium/drivers/freedreno/freedreno_batch.c
+++ b/src/gallium/drivers/freedreno/freedreno_batch.c
@@ -427,7 +427,6 @@ flush_write_batch(struct fd_resource *rsc)
 	fd_batch_flush(b);
 	fd_screen_lock(b->ctx->screen);
 
-	fd_bc_invalidate_batch(b, false);
 	fd_batch_reference_locked(&b, NULL);
 }
 



More information about the mesa-commit mailing list