Skip to content

Commit

Permalink
gpu: ipu-v3: image-convert: allow three rows or columns
Browse files Browse the repository at this point in the history
If width or height are in the [2049, 3072] range, allow to
use just three tiles in this dimension, instead of four.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Steve Longerbeam <slongerbeam@gmail.com>
Tested-by: Steve Longerbeam <slongerbeam@gmail.com>
  • Loading branch information
Philipp Zabel committed Nov 5, 2018
1 parent f1ef14f commit 815b02e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/gpu/ipu-v3/ipu-image-convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,7 @@ static int alloc_dma_buf(struct ipu_image_convert_priv *priv,

static inline int num_stripes(int dim)
{
if (dim <= 1024)
return 1;
else if (dim <= 2048)
return 2;
else
return 4;
return (dim - 1) / 1024 + 1;
}

/*
Expand Down

0 comments on commit 815b02e

Please sign in to comment.