anv/query: clflush the bo map on non-LLC platforms

Found by inspection

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: "13.0 17.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
Jason Ekstrand 2017-02-18 13:25:04 -08:00
parent 8582ab2d6e
commit 3788cd3239
1 changed files with 3 additions and 0 deletions

View File

@ -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: {