summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_overlay.c
diff options
context:
space:
mode:
authorBenoit Parrot <bparrot@ti.com>2021-11-17 15:19:25 +0100
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2021-12-08 10:04:43 +0200
commit6e42201b0ed5d3af66c107144fcd96c17afbc6f1 (patch)
treefebd217534bc4515d884aa565ca9628ccdc96f98 /drivers/gpu/drm/omapdrm/omap_overlay.c
parent3c265d928b85a0ec8aa4aea9aab89efd201bd2ae (diff)
downloadlinux-6e42201b0ed5d3af66c107144fcd96c17afbc6f1.tar.bz2
drm/omap: Add global state as a private atomic object
Global shared resources (like hw overlays) for omapdrm are implemented as a part of atomic state using the drm_private_obj infrastructure available in the atomic core. omap_global_state is introduced as a drm atomic private object. The two funcs omap_get_global_state() and omap_get_existing_global_state() are the two variants that will be used to access omap_global_state. drm_mode_config_init() needs to be called earlier because it creates/initializes the private_obj link list maintained by the atomic framework. The private_obj link list has to exist prior to calling drm_atomic_private_obj_init(). Similarly the cleanup handler are reordered appropriately. Signed-off-by: Benoit Parrot <bparrot@ti.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211117141928.771082-7-narmstrong@baylibre.com
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_overlay.c')
0 files changed, 0 insertions, 0 deletions