• Thierry Reding's avatar
    drm/cma: Introduce drm_gem_cma_dumb_create_internal() · 6d178291
    Thierry Reding authored
    This function is similar to drm_gem_cma_dumb_create() but targetted at
    kernel internal users so that they can override the pitch and size
    requirements of the dumb buffer.
    
    It is important to make this difference because the IOCTL says that the
    pitch and size fields are to be considered outputs and therefore should
    not be used in computations of the framebuffer size. Internal users may
    still want to use this code to avoid duplication and at the same time
    pass on additional, driver-specific restrictions on the pitch and size.
    
    While at it, convert the R-Car DU driver, the single user that overrides
    the pitch, to use the new internal helper.
    Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
    6d178291
drm_gem_cma_helper.h 2.23 KB