Skip to content

Commit

Permalink
If we keep the BIOS framebuffer, stick to the desired framebuffer size
Browse files Browse the repository at this point in the history
instead of using the actual framebuffer size.  This fixes a problem seen
on various Apple machines where the BIOS framebuffer is bigger than the
actual display.


ok jcs@, mpi@
  • Loading branch information
kettenis committed Jul 30, 2018
1 parent 225d397 commit 141e543
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/dev/pci/drm/i915/intel_fbdev.c
Expand Up @@ -220,8 +220,10 @@ static int intelfb_create(struct drm_fb_helper *helper,
} else {
DRM_DEBUG_KMS("re-using BIOS fb\n");
prealloc = true;
#ifdef __linux__
sizes->fb_width = intel_fb->base.width;
sizes->fb_height = intel_fb->base.height;
#endif
}

obj = intel_fb->obj;
Expand Down

0 comments on commit 141e543

Please sign in to comment.