|
@@ -304,7 +304,7 @@ static int drm_fbdev_cma_create(struct drm_fb_helper *helper,
|
|
}
|
|
}
|
|
|
|
|
|
drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->depth);
|
|
drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->depth);
|
|
- drm_fb_helper_fill_var(fbi, helper, fb->width, fb->height);
|
|
|
|
|
|
+ drm_fb_helper_fill_var(fbi, helper, sizes->fb_width, sizes->fb_height);
|
|
|
|
|
|
offset = fbi->var.xoffset * bytes_per_pixel;
|
|
offset = fbi->var.xoffset * bytes_per_pixel;
|
|
offset += fbi->var.yoffset * fb->pitches[0];
|
|
offset += fbi->var.yoffset * fb->pitches[0];
|