Repository navigation
Conversation
|
Thanks. Claude has a few minors: Looks correct to me. Now the cursor on the writeback CRTC uses the same zpos range as that CRTC's overlays (1..33), as I suggested in #7800. Small points:
|
|
Please note that I would not be able to take these upstream with only It's slightly moot as mainline doesn't have these extra planes for the writeback connector, but it's easier to be clean across the board for drivers that are in mainline. |
Commit fda2f62 ("drm/vc4: Fix the zpos range of the writeback overlay planes") raised the zpos range of the 32 writeback overlay planes to 1..VC4_NUM_TXP_OVERLAY_PLANES + 1 (33), but every CRTC's cursor plane is still created with a zpos and maximum of VC4_NUM_OVERLAY_PLANES + 1 (17). On the writeback CRTC, overlays with a zpos from 18 to 33 therefore sit above the cursor, and the cursor can't be moved on top of them. Use VC4_NUM_TXP_OVERLAY_PLANES + 1 as the default and maximum zpos of the cursor plane on the writeback CRTC. The other CRTCs keep VC4_NUM_OVERLAY_PLANES + 1. Fixes: fda2f62 ("drm/vc4: Fix the zpos range of the writeback overlay planes") Signed-off-by: Lin Tzu Yang <rongh7426@gmail.com>
d552653 to
1e7310b
Compare
|
Updated per review:
The code is unchanged apart from the removed comment. Testing (Raspberry Pi 5, 6.18.39, vc4 module with fda2f62 and this change, loaded from the initramfs):
This change was written with the help of an AI coding assistant (Claude); the testing above was done on real hardware. |
|
Thanks for the updates - it looks good to me. |
Follow-up to #7800, as suggested by @popcornmix in its review.
After #7800 the 32 writeback overlay planes have a zpos range of 1..33, but the cursor plane on the writeback CRTC was still created with zpos 17 and a maximum of 17, so overlays at 18..33 sat above it and it couldn't be moved on top. This gives the cursor on the writeback CRTC a default and maximum zpos of
VC4_NUM_TXP_OVERLAY_PLANES + 1; the other CRTCs keepVC4_NUM_OVERLAY_PLANES + 1.Tested on a Pi 5 (6.18.39, vc4 module with #7800 and this change, loaded from the initramfs):
The change and description were written with help from an AI coding assistant (Claude); the testing was done on real hardware.