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:
parent
b016ffb902
commit
d1ae0ffe89
1 changed files with 2 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue