summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/sun4i/sun4i_backend.c
diff options
context:
space:
mode:
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>2018-11-23 10:25:01 +0100
committerMaxime Ripard <maxime.ripard@bootlin.com>2018-11-27 10:01:49 +0100
commit31cf282a53cf529ebe9e4bb50f0e750226f870a7 (patch)
treef3109cde15ba08e36b3b216f7fcdac22022c81a7 /drivers/gpu/drm/sun4i/sun4i_backend.c
parent411e83069e1590cad8c29adcb04de8e73714fa9f (diff)
downloadlinux-31cf282a53cf529ebe9e4bb50f0e750226f870a7.tar.gz
linux-31cf282a53cf529ebe9e4bb50f0e750226f870a7.tar.bz2
linux-31cf282a53cf529ebe9e4bb50f0e750226f870a7.zip
drm/sun4i: Make pitch even for GEM dumb alloc as per hardware constraint
Our hardware requires the pitch to be an even number when using YUV formats with the frontend. Implement a driver-specific callback for GEM dumb allocation that sets the pitch accordingly. Since only the bpp is passed (and not the format), we cannot really distinguish if this alignment is really required. Since it doesn't hurt to align the pitch anyway, always do it. Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181123092515.2511-30-paul.kocialkowski@bootlin.com
Diffstat (limited to 'drivers/gpu/drm/sun4i/sun4i_backend.c')
0 files changed, 0 insertions, 0 deletions