iris: Drop BO_ALLOC_COHERENT from iris_utrace_create_ts_buffer()

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 <kenneth@whitecape.org>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28774>
This commit is contained in:
José Roberto de Souza 2024-04-17 06:45:41 -07:00 committed by Marge Bot
parent dd980d2b28
commit 3db38d05d4

View file

@ -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);