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@lists.freedesktop.org Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11116>
This commit is contained in:
parent
478ae974a1
commit
5515d3aec5
|
@ -1448,7 +1448,7 @@ void genX(CmdCopyQueryPoolResults)(
|
||||||
|
|
||||||
case VK_QUERY_TYPE_TIMESTAMP:
|
case VK_QUERY_TYPE_TIMESTAMP:
|
||||||
result = mi_mem64(anv_address_add(query_addr, 8));
|
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;
|
break;
|
||||||
|
|
||||||
#if GFX_VER >= 8
|
#if GFX_VER >= 8
|
||||||
|
|
Loading…
Reference in New Issue