Mesa (main): v3dv: initialize CL submission structure

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Aug 16 18:22:10 UTC 2021


Module: Mesa
Branch: main
Commit: 441e490f5a13d96255810f38260445437033be63
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=441e490f5a13d96255810f38260445437033be63

Author: Juan A. Suarez Romero <jasuarez at igalia.com>
Date:   Mon Aug 16 12:48:37 2021 +0200

v3dv: initialize CL submission structure

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 at igalia.com>
Signed-off-by: Juan A. Suarez Romero <jasuarez at igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12390>

---

 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.



More information about the mesa-commit mailing list