]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/tests: Add helper to create mock plane
authorMaxime Ripard <mripard@kernel.org>
Thu, 22 Feb 2024 18:13:49 +0000 (19:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:45:07 +0000 (10:45 +0200)
commitaf1dccab386f46ec8da07cf80a794bf19ae3cc96
tree89bb933762dbad1c453b7d38db5f5df7d67497c7
parenta31fd0eaf75e0e136bf9f16bbb379e10640fc4c8
drm/tests: Add helper to create mock plane

[ Upstream commit 7a48da0febd5113d9de6f51592a09825ebd8415c ]

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
Stable-dep-of: 70f29ca3117a ("drm/tests: cmdline: Fix drm_display_mode memory leak")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/tests/drm_kunit_helpers.c
include/drm/drm_kunit_helpers.h