.. | .. |
---|
269 | 269 | |
---|
270 | 270 | static void sru_configure_stream(struct vsp1_entity *entity, |
---|
271 | 271 | struct vsp1_pipeline *pipe, |
---|
| 272 | + struct vsp1_dl_list *dl, |
---|
272 | 273 | struct vsp1_dl_body *dlb) |
---|
273 | 274 | { |
---|
274 | 275 | const struct vsp1_sru_param *param; |
---|
.. | .. |
---|
312 | 313 | output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, |
---|
313 | 314 | SRU_PAD_SOURCE); |
---|
314 | 315 | |
---|
| 316 | + /* |
---|
| 317 | + * The maximum input width of the SRU is 288 input pixels, but 32 |
---|
| 318 | + * pixels are reserved to support overlapping partition windows when |
---|
| 319 | + * scaling. |
---|
| 320 | + */ |
---|
315 | 321 | if (input->width != output->width) |
---|
316 | 322 | return 512; |
---|
317 | 323 | else |
---|
.. | .. |
---|
333 | 339 | output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config, |
---|
334 | 340 | SRU_PAD_SOURCE); |
---|
335 | 341 | |
---|
336 | | - /* Adapt if SRUx2 is enabled */ |
---|
| 342 | + /* Adapt if SRUx2 is enabled. */ |
---|
337 | 343 | if (input->width != output->width) { |
---|
338 | 344 | window->width /= 2; |
---|
339 | 345 | window->left /= 2; |
---|