v3dv: implement sync debug option

This makes it so all jobs submitted to the queue are automatically serialized
against all other jobs.

Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33350>
This commit is contained in:
Iago Toral Quiroga 2025-02-03 11:21:38 +01:00 committed by Marge Bot
parent d36e97c774
commit 8d9f5dfd1d

View file

@ -1178,6 +1178,11 @@ queue_handle_job(struct v3dv_queue *queue,
struct v3dv_submit_sync_info *sync_info,
bool signal_syncs)
{
if (unlikely(V3D_DBG(SYNC))) {
job->serialize = V3DV_BARRIER_ALL;
job->needs_bcl_sync = job->type == V3DV_JOB_TYPE_GPU_CL;
}
switch (job->type) {
case V3DV_JOB_TYPE_GPU_CL:
return handle_cl_job(queue, job, counter_pass_idx, sync_info, signal_syncs);