]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rcar-du: Fix maximum frame buffer pitch computation
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 28 Jul 2014 18:18:36 +0000 (20:18 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 30 Jul 2014 01:08:24 +0000 (11:08 +1000)
commit9335561edba97b50753129b06f6f103871a8e7aa
tree591a46504c7493df08ceb88c94b85e8e8765b900
parent80c08879796afd9494ffe8a6d0fb3d4c75c7e49b
drm/rcar-du: Fix maximum frame buffer pitch computation

The maximum pitch constraint for the hardware is expressed in pixels.
Convert it to bytes to validate frame buffer creation, as frame buffer
pitches are expressed in bytes.

Reported-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/rcar-du/rcar_du_kms.c