anv/device: clflush simple batches if !LLC
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 12 Feb 2016 19:00:42 +0000 (11:00 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 12 Feb 2016 19:00:42 +0000 (11:00 -0800)
src/vulkan/anv_device.c

index 0ff5c9f7aa9758eed22ae39c7c7b9f33771cecff..05303fe1ca629f379cd8de9eefdd41a75f26b947 100644 (file)
@@ -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;