Merge tag 'drm-misc-next-2019-03-28-1' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
drm-misc-next for 5.2: UAPI Changes: - Remove unused DRM_DISPLAY_INFO_LEN (Ville) Cross-subsystem Changes: - None Core Changes: - Fix compilation when CONFIG_FBDEV not selected (Daniel) - fbdev: Make skip_vt_switch default (Daniel) - Merge fb_helper_fill_fix, fb_helper_fill_var into fb_helper_fill_info (Daniel) - Remove unused fields in connector, display_info, and edid_quirks (Ville) Driver Changes: - virtio: package function args in virtio_gpu_object_params (Gerd) - vkms: Fix potential NULL-dereference bug (Kangjie) Signed-off-by: Dave Airlie <airlied@redhat.com> From: Sean Paul <sean@poorly.run> Link: https://patchwork.freedesktop.org/patch/msgid/20190328183045.GA44823@art_vandelay
This commit is contained in:
@@ -365,14 +365,10 @@ nouveau_fbcon_create(struct drm_fb_helper *helper,
|
||||
ret = PTR_ERR(info);
|
||||
goto out_unlock;
|
||||
}
|
||||
info->skip_vt_switch = 1;
|
||||
|
||||
info->par = fbcon;
|
||||
|
||||
/* setup helper */
|
||||
fbcon->helper.fb = &fb->base;
|
||||
|
||||
strcpy(info->fix.id, "nouveaufb");
|
||||
if (!chan)
|
||||
info->flags = FBINFO_HWACCEL_DISABLED;
|
||||
else
|
||||
@@ -387,9 +383,7 @@ nouveau_fbcon_create(struct drm_fb_helper *helper,
|
||||
info->screen_base = nvbo_kmap_obj_iovirtual(fb->nvbo);
|
||||
info->screen_size = fb->nvbo->bo.mem.num_pages << PAGE_SHIFT;
|
||||
|
||||
drm_fb_helper_fill_fix(info, fb->base.pitches[0],
|
||||
fb->base.format->depth);
|
||||
drm_fb_helper_fill_var(info, &fbcon->helper, sizes->fb_width, sizes->fb_height);
|
||||
drm_fb_helper_fill_info(info, &fbcon->helper, sizes);
|
||||
|
||||
/* Use default scratch pixmap (info->pixmap.flags = FB_PIXMAP_SYSTEM) */
|
||||
|
||||
|
@@ -32,7 +32,7 @@
|
||||
#include "nouveau_display.h"
|
||||
|
||||
struct nouveau_fbdev {
|
||||
struct drm_fb_helper helper;
|
||||
struct drm_fb_helper helper; /* must be first */
|
||||
unsigned int saved_flags;
|
||||
struct nvif_object surf2d;
|
||||
struct nvif_object clip;
|
||||
|
Reference in New Issue
Block a user