d5ec2fa52f
num_syncs was being incremented by one if 'utrace_submit != NULL' but a sync was only being set if also 'util_dynarray_num_elements(&utrace_submit->batch_bos) == 0'. This mismatch could cause application to abort due to 'assert(count == num_syncs)'. Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27244>