summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_device.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-03-15 15:24:24 -0700
committerJason Ekstrand <[email protected]>2016-03-15 15:24:24 -0700
commitabaa3bed22ebb580724a5741bb8bee69e476a85f (patch)
treefc3708c0aac064fdf40dc43bf9adbece504baa41 /src/intel/vulkan/anv_device.c
parent7f6a0cb29c89a03441be744680a2145445be3a3c (diff)
anv/device: Flush the fence batch rather than the start of the BO
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r--src/intel/vulkan/anv_device.c2
1 files changed, 1 insertions, 1 deletions
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;