Mesa (main): iris: add tile cache flush to iris_copy_region

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 21 17:40:37 UTC 2021


Module: Mesa
Branch: main
Commit: 27534a49cf3872646cb8ef9371707d74a81b1986
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=27534a49cf3872646cb8ef9371707d74a81b1986

Author: Felix DeGrood <felix.j.degrood at intel.com>
Date:   Thu Jul  8 11:35:08 2021 -0700

iris: add tile cache flush to iris_copy_region

Add tile cache flush on iris_copy_region(). Temp workaround
until more robust tracking system implemented.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5029
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11935>

---

 src/gallium/drivers/iris/iris_blit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/iris/iris_blit.c b/src/gallium/drivers/iris/iris_blit.c
index ad7e6e2fa42..0afac31dce4 100644
--- a/src/gallium/drivers/iris/iris_blit.c
+++ b/src/gallium/drivers/iris/iris_blit.c
@@ -779,7 +779,7 @@ iris_resource_copy_region(struct pipe_context *ctx,
    }
 
    iris_flush_and_dirty_for_history(ice, batch, dst,
-                                    PIPE_CONTROL_RENDER_TARGET_FLUSH,
+                                    PIPE_CONTROL_RENDER_TARGET_FLUSH | PIPE_CONTROL_TILE_CACHE_FLUSH,
                                     "cache history: post copy_region");
 }
 



More information about the mesa-commit mailing list