From 441e490f5a13d96255810f38260445437033be63 Mon Sep 17 00:00:00 2001 From: "Juan A. Suarez Romero" Date: Mon, 16 Aug 2021 12:48:37 +0200 Subject: [PATCH] v3dv: initialize CL submission structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Juan A. Suarez Romero Part-of: --- src/broadcom/vulkan/v3dv_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/broadcom/vulkan/v3dv_queue.c b/src/broadcom/vulkan/v3dv_queue.c index dfa14f39c67..91cd6a3f79b 100644 --- a/src/broadcom/vulkan/v3dv_queue.c +++ b/src/broadcom/vulkan/v3dv_queue.c @@ -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.