anv/device: Flush the fence batch rather than the start of the BO

This commit is contained in:
Jason Ekstrand 2016-03-15 15:24:24 -07:00
parent 7f6a0cb29c
commit abaa3bed22

View 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;