anv/device: Flush the fence batch rather than the start of the BO
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 15 Mar 2016 22:24:24 +0000 (15:24 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 15 Mar 2016 22:24:24 +0000 (15:24 -0700)
src/intel/vulkan/anv_device.c

index 768e2eb3be1ab3415684ae1ace5a7ff7d5a574cc..bcd7a9e3c0d6d9cb020b751c07c09cc9cd45cf4a 100644 (file)
@@ -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;