[PATCH 11/18] drm/sysfb: Merge primary-plane functions

Javier Martinez Canillas javierm at redhat.com
Mon Mar 31 09:12:29 UTC 2025


Thomas Zimmermann <tzimmermann at suse.de> writes:

> Merge the primary plane code of ofdrm and simpledrm. Replace the
> plane implementation in each driver with the shared helpers. Set
> up driver callbacks and format modifiers with initializer macros.
>
> The plane code in ofdrm and simpledrm is very similar. Ofdrm has a
> more sophisticated implementation of atomic_disable, which clears
> individual scanlines. The code in simpledrm clears the whole buffer
> at once. Take the ofdrm version.
>
> Simpledrm supports get_scanout_buffer. Import it into the shared
> helpers, which makes it available in ofdrm.
>
> The supported formats are all native formats plus an optional enulated
> XRGB8888 if that's not already a native format. Provide an initializer
> macro that computes the size of the formats array.
>
> Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
> ---

Reviewed-by: Javier Martinez Canillas <javierm at redhat.com>

-- 
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat



More information about the dri-devel mailing list