summaryrefslogtreecommitdiff
path: root/linux-core/nv50_fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core/nv50_fb.c')
-rw-r--r--linux-core/nv50_fb.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/linux-core/nv50_fb.c b/linux-core/nv50_fb.c
index f57a9fad..153899da 100644
--- a/linux-core/nv50_fb.c
+++ b/linux-core/nv50_fb.c
@@ -40,8 +40,9 @@ static int nv50_fb_bind(struct nv50_crtc *crtc, struct nv50_fb_info *info)
return -EINVAL;
}
- if (!info->block || !info->width || !info->height || !info->depth || !info->bpp) {
- DRM_ERROR("block %p width %d height %d depth %d bpp %d\n", info->block, info->width, info->height, info->depth, info->bpp);
+ if (!info->block || !info->width || !info->height || !info->depth || !info->bpp || !info->pitch) {
+ DRM_ERROR("block %p width %d height %d depth %d bpp %d pitch %d\n", info->block, info->width,
+ info->height, info->depth, info->bpp, info->pitch);
return -EINVAL;
}
@@ -55,6 +56,8 @@ static int nv50_fb_bind(struct nv50_crtc *crtc, struct nv50_fb_info *info)
crtc->fb->depth = info->depth;
crtc->fb->bpp = info->bpp;
+ crtc->fb->pitch = info->pitch;
+
/* update lut if needed */
if (crtc->fb->depth != crtc->lut->depth) {
int r_size = 0, g_size = 0, b_size = 0;