Skip to content

pisp_be: Stride alignment. #6985

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 4, 2025
Merged

Conversation

naushir
Copy link
Contributor

@naushir naushir commented Aug 4, 2025

No description provided.

Rename the align field in the format structure to opt_align to indicate
the optimal alignment for the format.

There is no functional change in this commit.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
@naushir naushir requested a review from njhollinghurst August 4, 2025 12:43
@naushir
Copy link
Contributor Author

naushir commented Aug 4, 2025

PS, I think some of our "optimal" alignment fields are wrong? e.g. RGB24 should be 64 and not 32...

Add a new minimal alignment field to the format structure. This minimal
alignment will be used if a stride has been provided by userland. If no
stride has been provided by userland (bytesperline == 0), the optimal
alignemnt will be used in the stride calculation.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
@njhollinghurst
Copy link
Contributor

Yes the 32's are a bit strange. I can only guess it was done for compatibility with Unicam or Codecs (perhaps some earlier versions of software that didn't pay enough attention to strides), or because we felt 64 bytes (for the smallest plane) was too onerous...

I think it is harmless to keep this, at least for non-wallpaper image formats and when the width is much greater than 64.

@pelwell pelwell merged commit 7e86e8f into raspberrypi:rpi-6.12.y Aug 4, 2025
12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Aug 13, 2025
See: raspberrypi/linux#6974

kernel: pisp_be: Stride alignment
See: raspberrypi/linux#6985

kernel: drm/panel: ilitek-ili9881c: Restore missing lanes configuration for nwe080 panel
See: raspberrypi/linux#6987

kernel: drivers: media: pisp_be: Fix alignment for V4L2_PIX_FMT_SRGGB8
See: raspberrypi/linux#6988

kernel: overlays: Fix sc16is752-spi1 emulation
See: raspberrypi/linux#6996

kernel: arm64/dma-mapping: Fix arch_sync_dma_for_device to respect dir parameter
See: raspberrypi/linux#6995
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Aug 13, 2025
See: raspberrypi/linux#6974

kernel: pisp_be: Stride alignment
See: raspberrypi/linux#6985

kernel: drm/panel: ilitek-ili9881c: Restore missing lanes configuration for nwe080 panel
See: raspberrypi/linux#6987

kernel: drivers: media: pisp_be: Fix alignment for V4L2_PIX_FMT_SRGGB8
See: raspberrypi/linux#6988

kernel: overlays: Fix sc16is752-spi1 emulation
See: raspberrypi/linux#6996

kernel: arm64/dma-mapping: Fix arch_sync_dma_for_device to respect dir parameter
See: raspberrypi/linux#6995
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