v3dv: drop unused variable on handle_set_event_cpu_job
authorMelissa Wen <mwen@igalia.com>
Wed, 13 Oct 2021 09:33:15 +0000 (10:33 +0100)
committerMelissa Wen <mwen@igalia.com>
Fri, 21 Jan 2022 10:59:17 +0000 (10:59 +0000)
is_wait_thread is passed, but not actually used; and cpu_queue_handle_idle
is in charge to handle wait threads spawned before this one.

Signed-off-by: Melissa Wen <mwen@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13178>

src/broadcom/vulkan/v3dv_queue.c

index baac241..3b4304d 100644 (file)
@@ -226,7 +226,7 @@ handle_copy_query_results_cpu_job(struct v3dv_job *job)
 }
 
 static VkResult
-handle_set_event_cpu_job(struct v3dv_job *job, bool is_wait_thread)
+handle_set_event_cpu_job(struct v3dv_job *job)
 {
    /* From the Vulkan 1.0 spec:
     *
@@ -739,7 +739,7 @@ queue_submit_job(struct v3dv_queue *queue,
    case V3DV_JOB_TYPE_CPU_COPY_QUERY_RESULTS:
       return handle_copy_query_results_cpu_job(job);
    case V3DV_JOB_TYPE_CPU_SET_EVENT:
-      return handle_set_event_cpu_job(job, wait_thread != NULL);
+      return handle_set_event_cpu_job(job);
    case V3DV_JOB_TYPE_CPU_WAIT_EVENTS:
       return handle_wait_events_cpu_job(job, do_sem_wait, wait_thread);
    case V3DV_JOB_TYPE_CPU_COPY_BUFFER_TO_IMAGE: