rockchip: Don't enable AFBC if width > 2560

BUG=chrome-os-partner:62585
TEST=Plug in monitor with native resolution over 2560 (eg 4k monitor)
	and verify the output looks correct.

Change-Id: Iec925f54d74be19342d710313e5ac4ddca529e62
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-on: https://chromium-review.googlesource.com/438831
Commit-Ready: Douglas Anderson <dianders@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Daniele Castagna <dcastagna@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
Kristian H. Kristensen 2017-02-06 22:16:55 -08:00 committed by chrome-bot
parent b016ffb902
commit d1ae0ffe89

View file

@ -130,7 +130,8 @@ static int rockchip_bo_create_with_modifiers(struct bo *bo,
drv_bo_from_format(bo, aligned_width, height, format);
bo->total_size = bo->strides[0] * aligned_height
+ w_mbs * h_mbs * 128;
} else if (has_modifier(modifiers, count,
} else if (width <= 2560 &&
has_modifier(modifiers, count,
DRM_FORMAT_MOD_CHROMEOS_ROCKCHIP_AFBC)) {
/* If the caller has decided they can use AFBC, always
* pick that */