drm/tests: Add helper to create mock plane
authorMaxime Ripard <mripard@kernel.org>
Thu, 22 Feb 2024 18:13:49 +0000 (19:13 +0100)
committerMaxime Ripard <mripard@kernel.org>
Wed, 28 Feb 2024 15:36:25 +0000 (16:36 +0100)
commit7a48da0febd5113d9de6f51592a09825ebd8415c
tree0748f016d9363066534d5742431018dbc54f59d5
parent66671944e17644804cb0886489e1b8fde924e9b9
drm/tests: Add helper to create mock plane

We're going to need a full-blown, functional, KMS device to test more
components of the atomic modesetting infrastructure.

Let's add a new helper to create a dumb, mocked, primary plane. By
default, it will create a linear XRGB8888 plane, using the default
helpers.

Reviewed-by: MaĆ­ra Canal <mcanal@igalia.com>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240222-kms-hdmi-connector-state-v7-3-8f4af575fce2@kernel.org
drivers/gpu/drm/tests/drm_kunit_helpers.c
include/drm/drm_kunit_helpers.h