From abaa3bed22ebb580724a5741bb8bee69e476a85f Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 15 Mar 2016 15:24:24 -0700 Subject: [PATCH] anv/device: Flush the fence batch rather than the start of the BO --- src/intel/vulkan/anv_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 768e2eb3be1..bcd7a9e3c0d 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1409,7 +1409,7 @@ VkResult anv_CreateFence( assert(((uintptr_t) batch.start & CACHELINE_MASK) == 0); assert(batch.next - batch.start <= CACHELINE_SIZE); __builtin_ia32_mfence(); - __builtin_ia32_clflush(fence->bo.map); + __builtin_ia32_clflush(batch.start); } fence->exec2_objects[0].handle = fence->bo.gem_handle; -- 2.30.2