]> git.baikalelectronics.ru Git - kernel.git/commit
drm/cma: Introduce drm_gem_cma_dumb_create_internal()
authorThierry Reding <treding@nvidia.com>
Mon, 3 Nov 2014 10:48:49 +0000 (11:48 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Nov 2014 12:27:17 +0000 (13:27 +0100)
commit766342929e3f0305ca12e55d08b27595be35bcf7
tree15e51af15ef96c670946d3112c55521808b7bf75
parent3be695910cb6d4a5ecbf5a66324f5bea4a391dab
drm/cma: Introduce drm_gem_cma_dumb_create_internal()

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: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/drm_gem_cma_helper.c
drivers/gpu/drm/rcar-du/rcar_du_kms.c
include/drm/drm_gem_cma_helper.h