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

Javier Martinez Canillas javierm at redhat.com
Thu Oct 5 13:35:59 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>
> ---

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