summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/pci/drm/i915_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c
index ba06f8ca88e..ca89e2681b7 100644
--- a/sys/dev/pci/drm/i915_drv.c
+++ b/sys/dev/pci/drm/i915_drv.c
@@ -662,7 +662,7 @@ inteldrm_alloc_screen(void *v, const struct wsscreen_descr *type,
struct inteldrm_softc *dev_priv = v;
struct rasops_info *ri = &dev_priv->ro;
- if (dev_priv->nscreens > 0)
+ if (dev_priv->nscreens > 8)
return (ENOMEM);
*cookiep = ri;
@@ -1128,7 +1128,7 @@ inteldrm_attach(struct device *parent, struct device *self, void *aux)
aa.scrdata = &inteldrm_screenlist;
aa.accessops = &inteldrm_accessops;
aa.accesscookie = dev_priv;
- aa.defaultscreens = 1;
+ aa.defaultscreens = 0;
if (wsdisplay_console_initted) {
long defattr;