[PATCH v4 7/7] drm/ssd130x: Preallocate format-conversion buffer in atomic_check

Javier Martinez Canillas javierm at redhat.com
Thu Oct 5 11:43:21 UTC 2023


Thomas Zimmermann <tzimmermann at suse.de> writes:

> Preallocate the format-conversion state's storage in the plane's
> atomic_check function if a format conversion is necessary. Allows
> the update to fail if no memory is available. Avoids the same
> allocation within atomic_update, which may not fail.
>
> Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
> ---

I like that the preallocated format conversion state is now part of the
shadow plane state. That makes a lot of sense to me.

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