public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 26/36] drm/vboxvideo: use bpp instead of cpp for drm_format_info
@ 2019-09-23 12:52 Sandy Huang
  2019-09-23 12:53 ` [PATCH 27/36] drm/pl111: " Sandy Huang
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Sandy Huang @ 2019-09-23 12:52 UTC (permalink / raw)
  To: dri-devel, Hans de Goede, David Airlie, Daniel Vetter; +Cc: hjc, linux-kernel

cpp[BytePerPlane] can't describe the 10bit data format correctly,
So we use bpp[BitPerPlane] to instead cpp.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
---
 drivers/gpu/drm/vboxvideo/vbox_mode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/vboxvideo/vbox_mode.c b/drivers/gpu/drm/vboxvideo/vbox_mode.c
index e1e48ba..838120b 100644
--- a/drivers/gpu/drm/vboxvideo/vbox_mode.c
+++ b/drivers/gpu/drm/vboxvideo/vbox_mode.c
@@ -38,7 +38,7 @@ static void vbox_do_modeset(struct drm_crtc *crtc)
 	vbox = crtc->dev->dev_private;
 	width = vbox_crtc->width ? vbox_crtc->width : 640;
 	height = vbox_crtc->height ? vbox_crtc->height : 480;
-	bpp = fb ? fb->format->cpp[0] * 8 : 32;
+	bpp = fb ? fb->format->bpp[0] : 32;
 	pitch = fb ? fb->pitches[0] : width * bpp / 8;
 	x_offset = vbox->single_framebuffer ? vbox_crtc->x : vbox_crtc->x_hint;
 	y_offset = vbox->single_framebuffer ? vbox_crtc->y : vbox_crtc->y_hint;
-- 
2.7.4




^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-09-25 14:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-23 12:52 [PATCH 26/36] drm/vboxvideo: use bpp instead of cpp for drm_format_info Sandy Huang
2019-09-23 12:53 ` [PATCH 27/36] drm/pl111: " Sandy Huang
2019-09-23 12:53 ` [PATCH 28/36] drm/qxl: " Sandy Huang
2019-09-23 12:53 ` [PATCH 29/36] drm/ingenic: " Sandy Huang
2019-09-25 14:50   ` Paul Cercueil
2019-09-23 12:53 ` [PATCH 30/36] drm/sti: " Sandy Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox