v3dv: initialize in_sync_bcl in our submits
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 19 Feb 2020 11:28:21 +0000 (12:28 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:27 +0000 (21:21 +0000)
We were not doing this and that could lead to the kernel refusing the
job if this happened to be gargabe. Make it zero, meaning that we don't
want to keep our bin jobs waiting for anything.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>

src/broadcom/vulkan/v3dv_queue.c

index d93faf8..f1274bf 100644 (file)
@@ -149,6 +149,7 @@ queue_submit_job(struct v3dv_job *job, bool do_wait)
     * we would have to extend our kernel interface to support the case where
     * we have more than one semaphore to wait on.
     */
+   submit.in_sync_bcl = 0;
    submit.in_sync_rcl = do_wait ? job->cmd_buffer->device->last_job_sync : 0;
 
    /* Update the sync object for the last rendering by this device. */