Commit 1c031441 authored by Archit Taneja's avatar Archit Taneja Committed by Tomi Valkeinen

OMAPDSS: DISPC: Don't allow predecimation for writeback

Since writeback writes to a buffer instead of reading from one, predecimation
doesn't make sense for it. Configure the width and height predecimation limits
to 1 if the plane is writeback.
Signed-off-by: default avatarArchit Taneja <archit@ti.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 5d501085
...@@ -2315,9 +2315,14 @@ static int dispc_ovl_calc_scaling(enum omap_plane plane, ...@@ -2315,9 +2315,14 @@ static int dispc_ovl_calc_scaling(enum omap_plane plane,
if ((caps & OMAP_DSS_OVL_CAP_SCALE) == 0) if ((caps & OMAP_DSS_OVL_CAP_SCALE) == 0)
return -EINVAL; return -EINVAL;
*x_predecim = max_decim_limit; if (plane == OMAP_DSS_WB) {
*y_predecim = (rotation_type == OMAP_DSS_ROT_TILER && *x_predecim = *y_predecim = 1;
dss_has_feature(FEAT_BURST_2D)) ? 2 : max_decim_limit; } else {
*x_predecim = max_decim_limit;
*y_predecim = (rotation_type == OMAP_DSS_ROT_TILER &&
dss_has_feature(FEAT_BURST_2D)) ?
2 : max_decim_limit;
}
if (color_mode == OMAP_DSS_COLOR_CLUT1 || if (color_mode == OMAP_DSS_COLOR_CLUT1 ||
color_mode == OMAP_DSS_COLOR_CLUT2 || color_mode == OMAP_DSS_COLOR_CLUT2 ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment