v3dv: assert timestamp pool BO is disjoint from dst buffer BO

The two BOs come from distjoint allocation nowadays. So they
would never share the BO handle. In case this becomes false
in the future, the BO hanldes needs to be de-duped as happens
with TFU submisions.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41616>
This commit is contained in:
Jose Maria Casanova Crespo 2026-05-16 18:25:58 +02:00 committed by Marge Bot
parent 87a0eac718
commit 14b8d02130

View file

@ -578,6 +578,10 @@ handle_copy_query_results_cpu_job(struct v3dv_queue *queue,
uintptr_t *kperfmon_ids = NULL;
if (info->pool->query_type == VK_QUERY_TYPE_TIMESTAMP) {
/* timestamp pool BO is V3DV-internal, never aliased by user BO. If
* that could happen we would need to dedupe them
*/
assert(bo->handle != info->pool->timestamp.bo->handle);
submit.bo_handle_count = 2;
bo_handles = (uint32_t *)