artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
225d397
)
If we keep the BIOS framebuffer, stick to the desired framebuffer size
author
kettenis
<kettenis@openbsd.org>
Mon, 30 Jul 2018 19:40:53 +0000
(19:40 +0000)
committer
kettenis
<kettenis@openbsd.org>
Mon, 30 Jul 2018 19:40:53 +0000
(19:40 +0000)
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@
sys/dev/pci/drm/i915/intel_fbdev.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/i915/intel_fbdev.c
b/sys/dev/pci/drm/i915/intel_fbdev.c
index
bf221b0
..
a03b13d
100644
(file)
--- 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;