Skip to content

Commit

Permalink
gpu: ipu-v3: turns out the IPU can only downsize 4:1
Browse files Browse the repository at this point in the history
The value for downsizing 8:1 is marked as reserved in the technical reference
manual and the documentation states downsizing capability up to 4:1 only.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
  • Loading branch information
Philipp Zabel committed Mar 31, 2015
1 parent f7089d9 commit 8f361b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/ipu-v3/ipu-ic.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ static int calc_resize_coeffs(struct ipu_ic *ic,
return -EINVAL;
}

/* Cannot downsize more than 8:1 */
if ((out_size << 3) < in_size) {
/* Cannot downsize more than 4:1 */
if ((out_size << 2) < in_size) {
dev_err(ipu->dev, "Unsupported downsize\n");
return -EINVAL;
}
Expand Down

0 comments on commit 8f361b2

Please sign in to comment.