Skip to content
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

drm: vc4: txp: Do not allow 24bpp formats when transposing #6533

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

6by9
Copy link
Contributor

@6by9 6by9 commented Dec 11, 2024

The hardware doesn't support transposing to 24bpp (RGB888/BGR888) formats. There's no way to advertise this through DRM, so block it from atomic_check instead.

https://forums.raspberrypi.com/viewtopic.php?t=380129

drivers/gpu/drm/vc4/vc4_txp.c Outdated Show resolved Hide resolved
drivers/gpu/drm/vc4/vc4_txp.c Outdated Show resolved Hide resolved
6by9 added 2 commits December 12, 2024 11:59
The hardware doesn't support transposing to 24bpp (RGB888/BGR888)
formats. There's no way to advertise this through DRM, so block
it from atomic_check instead.

Signed-off-by: Dave Stevenson <[email protected]>
…erty

Copy the same validation logic as from the plane rotation property.

Fixes: 8fec3ff ("drm: Add a rotation parameter to connectors.")
Signed-off-by: Dave Stevenson <[email protected]>
@dividuum
Copy link

Triggered both error cases and confirmed that using the API correctly works as expected. LGTM.

@6by9 6by9 marked this pull request as ready for review December 12, 2024 12:54
@6by9
Copy link
Contributor Author

6by9 commented Dec 12, 2024

Thank you for testing.

@pelwell pelwell merged commit 0b216b3 into raspberrypi:rpi-6.6.y Dec 12, 2024
11 of 12 checks passed
@dividuum
Copy link

Neat. Thanks everyone!

popcornmix added a commit to raspberrypi/firmware that referenced this pull request Dec 16, 2024
kernel: RP1 DPI: Add interlaced modes
See: raspberrypi/linux#6529

kernel: ASoC: allo-piano-dac-plus: Fix volume limit locking
See: raspberrypi/linux#6532

kernel: drm: vc4: txp: Do not allow 24bpp formats when transposing
See: raspberrypi/linux#6533

kernel: ASoC: allo-piano-dac-plus: Suppress -517 errors
See: raspberrypi/linux#6534

kernel: drm: rp1: rp1-dpi: Fix optional dependency on RP1_PIO
See: raspberrypi/linux#6535

kernel: serial: sc16is7xx: announce support for SER_RS485_RTS_ON_SEND
See: raspberrypi/linux#6540
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Dec 16, 2024
kernel: RP1 DPI: Add interlaced modes
See: raspberrypi/linux#6529

kernel: ASoC: allo-piano-dac-plus: Fix volume limit locking
See: raspberrypi/linux#6532

kernel: drm: vc4: txp: Do not allow 24bpp formats when transposing
See: raspberrypi/linux#6533

kernel: ASoC: allo-piano-dac-plus: Suppress -517 errors
See: raspberrypi/linux#6534

kernel: drm: rp1: rp1-dpi: Fix optional dependency on RP1_PIO
See: raspberrypi/linux#6535

kernel: serial: sc16is7xx: announce support for SER_RS485_RTS_ON_SEND
See: raspberrypi/linux#6540
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