drm: drm_atomic_helper: Add a new helper to deal with the writeback connector validation
authorIgor Torrente <igormtorrente@gmail.com>
Mon, 5 Sep 2022 19:08:05 +0000 (16:08 -0300)
committerMelissa Wen <melissa.srw@gmail.com>
Mon, 5 Sep 2022 21:12:16 +0000 (20:12 -0100)
commit254fe9c106ed69245fbe0beac582054c98a91482
treebec0d87bcac026759f9bb4956c7e3029de98499f
parent1645e7b9667f14a37f9ac8c49568b8f979227d20
drm: drm_atomic_helper: Add a new helper to deal with the writeback connector validation

Add a helper function to validate the connector configuration received in
the encoder atomic_check by the drivers.

So the drivers don't need to do these common validations themselves.

V2: Move the format verification to a new helper at the drm_atomic_helper.c
    (Thomas Zimmermann).
V3: Format check improvements (Leandro Ribeiro).
    Minor improvements(Thomas Zimmermann).
V5: Fix some grammar issues in the commit message (AndrĂ© Almeida).

Reviewed-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Igor Torrente <igormtorrente@gmail.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220905190811.25024-4-igormtorrente@gmail.com
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/vkms/vkms_writeback.c
include/drm/drm_atomic_helper.h