From 3788cd32391d6d7eea3af3c40f952325caea5360 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 18 Feb 2017 13:25:04 -0800 Subject: anv/query: clflush the bo map on non-LLC platforms Found by inspection Reviewed-by: Lionel Landwerlin Cc: "13.0 17.0" --- src/intel/vulkan/anv_query.c | 3 +++ 1 file changed, 3 insertions(+) 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: { -- cgit v1.2.3