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: ca13868098 ("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>
This commit is contained in:
Juan A. Suarez Romero 2021-08-16 12:48:37 +02:00 committed by Marge Bot
parent 795f3b7318
commit 441e490f5a

View 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.