anv: fix INTEL_MEASURE on MTL

Ensure counter buffer is coherent. Required for MTL which changes
coherence policy.

Reviewed-by: Mark Janes <markjanes@swizzler.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22723>
This commit is contained in:
Felix DeGrood
2023-04-26 17:10:24 +00:00
committed by Marge Bot
parent fa1962681e
commit f783f581a8
+1 -1
View File
@@ -111,7 +111,7 @@ anv_measure_init(struct anv_cmd_buffer *cmd_buffer)
ASSERTED VkResult result =
anv_device_alloc_bo(device, "measure data",
config->batch_size * sizeof(uint64_t),
ANV_BO_ALLOC_MAPPED,
ANV_BO_ALLOC_MAPPED | ANV_BO_ALLOC_SNOOPED,
0,
(struct anv_bo**)&measure->bo);
measure->base.timestamps = measure->bo->map;