From: Jason Ekstrand Date: Fri, 12 Feb 2016 19:00:42 +0000 (-0800) Subject: anv/device: clflush simple batches if !LLC X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=699f21216f0d026c883b1cd2b3676fdc6e3668d8;p=mesa.git anv/device: clflush simple batches if !LLC --- 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;