Mesa (main): anv: fix availability for copying timestamp query results
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 1 20:19:42 UTC 2021
Module: Mesa
Branch: main
Commit: 5515d3aec5ebe4e7dd7428aefdc2c1933414cd92
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5515d3aec5ebe4e7dd7428aefdc2c1933414cd92
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Tue Jun 1 12:26:27 2021 -0400
anv: fix availability for copying timestamp query results
idx here is the index of the value being written, so if it isn't used/incremented
when the query result is written, the availability result will clobber it and
be written to the same buffer offset
Cc: mesa-stable at lists.freedesktop.org
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11116>
---
src/intel/vulkan/genX_query.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/vulkan/genX_query.c b/src/intel/vulkan/genX_query.c
index 10cbe62950c..bad36925f52 100644
--- a/src/intel/vulkan/genX_query.c
+++ b/src/intel/vulkan/genX_query.c
@@ -1448,7 +1448,7 @@ void genX(CmdCopyQueryPoolResults)(
case VK_QUERY_TYPE_TIMESTAMP:
result = mi_mem64(anv_address_add(query_addr, 8));
- gpu_write_query_result(&b, dest_addr, flags, 0, result);
+ gpu_write_query_result(&b, dest_addr, flags, idx++, result);
break;
#if GFX_VER >= 8
More information about the mesa-commit
mailing list