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

2023-10-05 Thread Javier Martinez Canillas
Thomas Zimmermann 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

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

2023-10-05 Thread Thomas Zimmermann
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 --- drivers/gpu/d