]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/atomic-helper: Add private_obj atomic_create_state helper
authorMaxime Ripard <mripard@kernel.org>
Wed, 28 Jan 2026 12:43:47 +0000 (13:43 +0100)
committerMaxime Ripard <mripard@kernel.org>
Tue, 10 Feb 2026 09:05:39 +0000 (10:05 +0100)
commite7be39ed171662474d6d5c9a83d790ef7d244bcd
tree22525850e4c0eafad943774deb448a8dfcf65251
parent47b5ac7daa46e2bc8e4916d856fdc036ac145bb6
drm/atomic-helper: Add private_obj atomic_create_state helper

Now that we have an atomic_create_state callback for drm_private_objs,
we can provide a helper for it.

It's somewhat different from the other similar helpers though, because
we definitely expect drm_private_obj to be subclassed. It wouldn't make
sense for a driver to use it as-is.

So we can't provide a straight implementation of the atomic_create_state
callback, but rather we provide the parts that will deal with the
drm_private_obj initialization, and we will leave the allocation and
initialization of the subclass to drivers.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20260128-drm-private-obj-reset-v4-3-90891fa3d3b0@redhat.com
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/drm_atomic_state_helper.c
include/drm/drm_atomic_state_helper.h