diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-07-30 19:40:54 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-07-30 19:40:54 +0000 |
commit | e851077898214fe6dd8dcd358b776038d31caeb8 (patch) | |
tree | 47b8cea58e8dbaa74b3011e11e2a05dd9a1ec111 | |
parent | 9112e3ea3c50bbe7ab79bebb7550fab6887917c9 (diff) |
If we keep the BIOS framebuffer, stick to the desired framebuffer size
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@
-rw-r--r-- | sys/dev/pci/drm/i915/intel_fbdev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/i915/intel_fbdev.c b/sys/dev/pci/drm/i915/intel_fbdev.c index bf221b05b50..a03b13dc0e9 100644 --- a/sys/dev/pci/drm/i915/intel_fbdev.c +++ b/sys/dev/pci/drm/i915/intel_fbdev.c @@ -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; |