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:
parent
8582ab2d6e
commit
3788cd3239
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue