From 3db38d05d411c41d9592f2a7af547784dbad0655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Wed, 17 Apr 2024 06:45:41 -0700 Subject: [PATCH] iris: Drop BO_ALLOC_COHERENT from iris_utrace_create_ts_buffer() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit timestamp is not modified by CPU, it is written by GPU and just read by CPU. As all BOs in Iris are CPU coherent, there is no need to keep this flag. Reviewed-by: Kenneth Graunke Signed-off-by: José Roberto de Souza Part-of: --- src/gallium/drivers/iris/iris_utrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_utrace.c b/src/gallium/drivers/iris/iris_utrace.c index b13a2581e38..d130dbeca4c 100644 --- a/src/gallium/drivers/iris/iris_utrace.c +++ b/src/gallium/drivers/iris/iris_utrace.c @@ -84,7 +84,7 @@ iris_utrace_create_buffer(struct u_trace_context *utctx, uint64_t size_B) iris_bo_alloc(screen->bufmgr, "utrace timestamps", size_B, 16 /* alignment */, IRIS_MEMZONE_OTHER, - BO_ALLOC_COHERENT | BO_ALLOC_SMEM); + BO_ALLOC_SMEM); void *ptr = iris_bo_map(NULL, bo, MAP_READ | MAP_WRITE); memset(ptr, 0, size_B);