mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
anv/query: Invalidate the correct range
Reviewed-By: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: "17.0 13.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
4bbb4b95b8
commit
81840130c0
1 changed files with 6 additions and 2 deletions
|
|
@ -132,8 +132,12 @@ VkResult genX(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));
|
||||
if (!device->info.has_llc) {
|
||||
uint64_t offset = firstQuery * sizeof(*slot);
|
||||
uint64_t size = queryCount * sizeof(*slot);
|
||||
anv_invalidate_range(pool->bo.map + offset,
|
||||
MIN2(size, pool->bo.size - offset));
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < queryCount; i++) {
|
||||
switch (pool->type) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue