Commit 815b02e3 authored by Philipp Zabel's avatar Philipp Zabel

gpu: ipu-v3: image-convert: allow three rows or columns

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: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Acked-by: default avatarSteve Longerbeam <slongerbeam@gmail.com>
Tested-by: default avatarSteve Longerbeam <slongerbeam@gmail.com>
parent f1ef14f3
...@@ -379,12 +379,7 @@ static int alloc_dma_buf(struct ipu_image_convert_priv *priv, ...@@ -379,12 +379,7 @@ static int alloc_dma_buf(struct ipu_image_convert_priv *priv,
static inline int num_stripes(int dim) static inline int num_stripes(int dim)
{ {
if (dim <= 1024) return (dim - 1) / 1024 + 1;
return 1;
else if (dim <= 2048)
return 2;
else
return 4;
} }
/* /*
......
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