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

Author: Felix DeGrood <[email protected]>
Date:   Wed Apr 26 17:10:24 2023 +0000

anv: fix INTEL_MEASURE on MTL

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

Reviewed-by: Mark Janes <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22723>

---

 src/intel/vulkan/anv_measure.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_measure.c b/src/intel/vulkan/anv_measure.c
index a72691c9124..ea65566b976 100644
--- a/src/intel/vulkan/anv_measure.c
+++ b/src/intel/vulkan/anv_measure.c
@@ -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;

Reply via email to