From 699f21216f0d026c883b1cd2b3676fdc6e3668d8 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 12 Feb 2016 11:00:42 -0800 Subject: [PATCH] anv/device: clflush simple batches if !LLC --- src/vulkan/anv_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 0ff5c9f7aa9..05303fe1ca6 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -707,6 +707,8 @@ anv_device_submit_simple_batch(struct anv_device *device, return result; memcpy(bo.map, batch->start, size); + if (!device->info.has_llc) + anv_clflush_range(bo.map, size); exec2_objects[0].handle = bo.gem_handle; exec2_objects[0].relocation_count = 0; -- 2.30.2