drm/exynos: gsc: Increase Exynos5433 buffer width alignment to 16 pixels 48/180348/2
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 28 May 2018 12:34:39 +0000 (14:34 +0200)
committerInki Dae <inki.dae@samsung.com>
Mon, 28 May 2018 23:15:24 +0000 (23:15 +0000)
Investigation revealed that GScaler hardware requires the real buffer width
(pitch) to be aligned to 16 pixels.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I27ddbdb73fdcdfbfc4b90e76242196f72be91c97

drivers/gpu/drm/exynos/exynos_drm_gsc.c

index ee27f7fdc7ab0fa5f753360c818f2d371371ed88..988b391c886a1351b309db5cc5f1496cd5782b59 100644 (file)
@@ -1340,7 +1340,7 @@ static const struct drm_exynos_ipp_limit gsc_5420_limits[] = {
 };
 
 static const struct drm_exynos_ipp_limit gsc_5433_limits[] = {
-       { IPP_SIZE_LIMIT(BUFFER, .h = { 32, 8191, 2 }, .v = { 16, 8191, 2 }) },
+       { IPP_SIZE_LIMIT(BUFFER, .h = { 32, 8191, 16 }, .v = { 16, 8191, 2 }) },
        { IPP_SIZE_LIMIT(AREA, .h = { 16, 4800, 1 }, .v = { 8, 3344, 1 }) },
        { IPP_SIZE_LIMIT(ROTATED, .h = { 32, 2047 }, .v = { 8, 8191 }) },
        { IPP_SCALE_LIMIT(.h = { (1 << 16) / 16, (1 << 16) * 8 },