v3dv: initialize CL submission structure
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Mon, 16 Aug 2021 10:48:37 +0000 (12:48 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 16 Aug 2021 18:06:35 +0000 (18:06 +0000)
This fixes an issue related with testing this with a kernel with the
performance counters enabled: it introduces a "pad" field that in the CL
submission structure that is not initialized.

Fixes: ca13868098e ("drm-uapi: add v3d performance counters")
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12390>

src/broadcom/vulkan/v3dv_queue.c

index dfa14f3..91cd6a3 100644 (file)
@@ -580,7 +580,7 @@ handle_cl_job(struct v3dv_queue *queue,
 {
    struct v3dv_device *device = queue->device;
 
-   struct drm_v3d_submit_cl submit;
+   struct drm_v3d_submit_cl submit = { 0 };
 
    /* Sanity check: we should only flag a bcl sync on a job that needs to be
     * serialized.