summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-02-18 13:25:04 -0800
committerJason Ekstrand <[email protected]>2017-02-21 12:26:35 -0800
commit3788cd32391d6d7eea3af3c40f952325caea5360 (patch)
tree73d13cddd09016432d1b4fb6bfe6d766536a5699 /src/intel/vulkan
parent8582ab2d6eff1d8fc1964ba0f353037af212bdfe (diff)
anv/query: clflush the bo map on non-LLC platforms
Found by inspection Reviewed-by: Lionel Landwerlin <[email protected]> Cc: "13.0 17.0" <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r--src/intel/vulkan/anv_query.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_query.c b/src/intel/vulkan/anv_query.c
index 293257b22f9..da0deb86950 100644
--- a/src/intel/vulkan/anv_query.c
+++ b/src/intel/vulkan/anv_query.c
@@ -129,6 +129,9 @@ VkResult anv_GetQueryPoolResults(
void *data_end = pData + dataSize;
struct anv_query_pool_slot *slot = pool->bo.map;
+ if (!device->info.has_llc)
+ anv_invalidate_range(slot, MIN2(queryCount * sizeof(*slot), pool->bo.size));
+
for (uint32_t i = 0; i < queryCount; i++) {
switch (pool->type) {
case VK_QUERY_TYPE_OCCLUSION: {