mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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:
parent
dd980d2b28
commit
3db38d05d4
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue