Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpu: ipu-v3: image-convert: only sample into the next tile if necessary

The first pixel of the next tile is only sampled by the hardware if the
fractional input position corresponding to the last written output pixel
is not an integer position.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

+2 -2
+2 -2
drivers/gpu/ipu-v3/ipu-image-convert.c
··· 1151 1151 * burst size. 1152 1152 */ 1153 1153 last_output = resized_width - 1; 1154 - if (closest) 1154 + if (closest && ((last_output * resize_coeff_h) % 8192)) 1155 1155 last_output++; 1156 1156 in_width = round_up( 1157 1157 (DIV_ROUND_UP(last_output * resize_coeff_h, 8192) + 1) ··· 1208 1208 * IDMAC restrictions. 1209 1209 */ 1210 1210 last_output = resized_height - 1; 1211 - if (closest) 1211 + if (closest && ((last_output * resize_coeff_v) % 8192)) 1212 1212 last_output++; 1213 1213 in_height = round_up( 1214 1214 (DIV_ROUND_UP(last_output * resize_coeff_v, 8192) + 1)