summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/rcar-du/rcar_du_kms.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-11-03 11:48:49 +0100
committerThierry Reding <treding@nvidia.com>2014-11-13 13:27:17 +0100
commit6d1782919dc9b860c0a1d712f1e1f146af16f6c5 (patch)
tree15e51af15ef96c670946d3112c55521808b7bf75 /drivers/gpu/drm/rcar-du/rcar_du_kms.c
parentd7883f8759ab64e7df40f1cbd038745a0bfd9cb8 (diff)
downloadop-kernel-dev-6d1782919dc9b860c0a1d712f1e1f146af16f6c5.zip
op-kernel-dev-6d1782919dc9b860c0a1d712f1e1f146af16f6c5.tar.gz
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>
Diffstat (limited to 'drivers/gpu/drm/rcar-du/rcar_du_kms.c')
-rw-r--r--drivers/gpu/drm/rcar-du/rcar_du_kms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_kms.c b/drivers/gpu/drm/rcar-du/rcar_du_kms.c
index 6c24ad7..5329491 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_kms.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_kms.c
@@ -128,7 +128,7 @@ int rcar_du_dumb_create(struct drm_file *file, struct drm_device *dev,
args->pitch = roundup(max(args->pitch, min_pitch), align);
- return drm_gem_cma_dumb_create(file, dev, args);
+ return drm_gem_cma_dumb_create_internal(file, dev, args);
}
static struct drm_framebuffer *
OpenPOWER on IntegriCloud