summaryrefslogtreecommitdiffstats
path: root/src/vulkan
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-02-12 11:00:42 -0800
committerJason Ekstrand <[email protected]>2016-02-12 11:00:42 -0800
commit699f21216f0d026c883b1cd2b3676fdc6e3668d8 (patch)
treea261fb81c9592a965d223f3058ae9c5043ac2891 /src/vulkan
parent42155abdd7265efd32ea4678fb9698c2ac4ee18a (diff)
anv/device: clflush simple batches if !LLC
Diffstat (limited to 'src/vulkan')
-rw-r--r--src/vulkan/anv_device.c2
1 files changed, 2 insertions, 0 deletions
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;