Skip to content

drm/vc4: Skip input lines when doing a large downscale#7387

Merged
pelwell merged 1 commit into
raspberrypi:rpi-6.18.yfrom
6by9:rpi-6.18.y-drm
Jun 9, 2026
Merged

drm/vc4: Skip input lines when doing a large downscale#7387
pelwell merged 1 commit into
raspberrypi:rpi-6.18.yfrom
6by9:rpi-6.18.y-drm

Conversation

@6by9

@6by9 6by9 commented May 20, 2026

Copy link
Copy Markdown
Contributor

The TPZ filter wants ideally 3 lines of image to give good quality downscaling. More than that leads to excessive SDRAM bandwidth for no gain.

If the downsample factor allows for it, reduce the programmed image height and increase the pitch to compensate.

This currently does not handle T-format images where we need to configure it slightly differently.

@jc-kynesim : This should solve your 10bittest massive downscale issue.

The TPZ filter wants ideally 3 lines of image to give good quality
downscaling. More than that leads to excessive SDRAM bandwidth
for no gain.

If the downsample factor allows for it, reduce the programmed image
height and increase the pitch to compensate.

This currently does not handle T-format images where we need to
configure it slightly differently.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
@6by9

6by9 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

Confirmed as working.
@pelwell any comments from you?

@pelwell

pelwell commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

I understand the logic behind it. Provided the downsample value gets set in all code paths (it wasn't trivially obvious that it was), and the results looks OK, I approve.

@jc-kynesim

Copy link
Copy Markdown
Contributor

The existing behaviour is, in the worst case, to cease displaying video at all so this is a great improvement

@pelwell pelwell merged commit 11d29aa into raspberrypi:rpi-6.18.y Jun 9, 2026
12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jun 10, 2026
kernel: edatec Open Source‌ HMI for 10 inches panel driver
See: raspberrypi/linux#7362

kernel: configs: Enable MT7921 and MT7922 support
See: raspberrypi/linux#7416

kernel: drm/vc4: Skip input lines when doing a large downscale
See: raspberrypi/linux#7387

kernel: Revert "random: do not use jump labels before they are initialized"
See: raspberrypi/linux#7425
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Jun 10, 2026
kernel: edatec Open Source‌ HMI for 10 inches panel driver
See: raspberrypi/linux#7362

kernel: configs: Enable MT7921 and MT7922 support
See: raspberrypi/linux#7416

kernel: drm/vc4: Skip input lines when doing a large downscale
See: raspberrypi/linux#7387

kernel: Revert "random: do not use jump labels before they are initialized"
See: raspberrypi/linux#7425
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants