Thomas Zimmermann <[email protected]> writes: > In atomic_check, damage handling is not fully evaluated. Another > atomic_check helper could trigger a full modeset and thus invalidate > damage clips. > > Allocation of the request/response buffers in appletbdrm depends on > correct damage information. Otherwise it might allocate incorrectly > sized buffers. Allocate the buffers in the driver's begin_fb_access > helper. It runs early during the commit when damage clipping has been > fully evaluated. > > v2: > - allocate before drm_gem_begin_shadow_fb_access() to avoid leak on error
Reviewed-by: Javier Martinez Canillas <[email protected]> -- Best regards, Javier Martinez Canillas Core Platforms Red Hat
