projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8582ab2
)
anv/query: clflush the bo map on non-LLC platforms
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Sat, 18 Feb 2017 21:25:04 +0000
(13:25 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 21 Feb 2017 20:26:35 +0000
(12:26 -0800)
Found by inspection
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: "13.0 17.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_query.c
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_query.c
b/src/intel/vulkan/anv_query.c
index 293257b22f9dc4446369c68db4dff5e6f94f108b..da0deb86950980009639df40efd87239870292b3 100644
(file)
--- 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: {