mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-27 01:10:25 +01:00
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>
(cherry picked from commit 3788cd3239)
This commit is contained in:
parent
7da210dc3f
commit
a157a8db37
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue