Module: Mesa Branch: main Commit: 5515d3aec5ebe4e7dd7428aefdc2c1933414cd92 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5515d3aec5ebe4e7dd7428aefdc2c1933414cd92
Author: Mike Blumenkrantz <[email protected]> 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: [email protected] Reviewed-by: Lionel Landwerlin <[email protected]> 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 _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
