X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=rockchip.c;h=a64a42f682fd492a179dd1140fa3471a880ca820;hb=d1ae0ffe89d165ebcb386ff7bef36ee627bc6c70;hp=f039449545405572d8b3170d74ec42c7d8f87114;hpb=b016ffb90205a616b6f5c9484c4d44543cfc94d0;p=android-x86%2Fexternal-minigbm.git diff --git a/rockchip.c b/rockchip.c index f039449..a64a42f 100644 --- a/rockchip.c +++ b/rockchip.c @@ -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 */