From: Jason Ekstrand Date: Sat, 18 Feb 2017 21:25:04 +0000 (-0800) Subject: anv/query: clflush the bo map on non-LLC platforms X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3788cd32391d6d7eea3af3c40f952325caea5360;p=mesa.git anv/query: clflush the bo map on non-LLC platforms Found by inspection Reviewed-by: Lionel Landwerlin Cc: "13.0 17.0" --- 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: {