-
Notifications
You must be signed in to change notification settings - Fork 5.3k
drm/vc4: plane: TPZ scaling modes cannot reduce lbm size when alpha-less #7164
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
Conversation
This code can never do anything, as channels_scaled can only be 0 or 2. I suspect that the index was intended to be i rather than channel, but that would trigger for scaled RGB planes, and halving lines is not wanted there. Just remove it. Signed-off-by: Dom Cobley <popcornmix@gmail.com>
6by9
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit pick over the comment, but I'm happy with this change.
Nasty that they tucked the comment about there not being a non-alpha TPZ mode into one of the examples :-(
drivers/gpu/drm/vc4/vc4_plane.c
Outdated
|
|
||
| if (info->has_alpha) | ||
| // spec says "Note that there is not an extra mode to save memory | ||
| // for alpha-less formats" in the TPZ section |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit text is sufficient via git blame, so no need for this comment that checkpatch complain had about the length of, and is now a multi-line using // (should be /* */).
spec says "Note that there is not an extra mode to save memory for alpha-less formats" in the TPZ section. Currently, if first plane is RGB888 and scaled down (TPZ) a second plane will corrupt the LBM and result in garbage I've also folded in the modification to components to the function as it seems misplaced Signed-off-by: Dom Cobley <popcornmix@gmail.com>
Indeed. It was well hidden away. Removed the comment. |
|
@pelwell any objection? |
|
None from me - when I looked yesterday the auto-builds were still active. I wish GitHub had a "Merge when it passes" button. |
kernel: media: i2c: imx477: Correct IMX477_REG_TEST_PATTERN to be 16bit See: raspberrypi/linux#7162 kernel: dtoverlay for Ilitek 23XX, 25XX, and 213X touch controllers See: raspberrypi/linux#7146 kernel: drm/vc4: plane: TPZ scaling modes cannot reduce lbm size when alpha-less See: raspberrypi/linux#7164
kernel: media: i2c: imx477: Correct IMX477_REG_TEST_PATTERN to be 16bit See: raspberrypi/linux#7162 kernel: dtoverlay for Ilitek 23XX, 25XX, and 213X touch controllers See: raspberrypi/linux#7146 kernel: drm/vc4: plane: TPZ scaling modes cannot reduce lbm size when alpha-less See: raspberrypi/linux#7164
Spec says "Note that there is not an extra mode to save memory for alpha-less formats" in the TPZ section.
Curently, if first plane is RGB888 and scaled down (TPZ) a second plane will corrupt the LBM and result in garbage
I've also folded in the modification to components to the function as it seems misplaced