drm/nouveau: add userspace fallback hints.
authorDave Airlie <airlied@redhat.com>
Mon, 20 Feb 2012 14:39:11 +0000 (14:39 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 15 Mar 2012 09:39:03 +0000 (09:39 +0000)
This lets the modesetting driver work better.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_display.c

index 35acc92f647b5a2a6eed220697f0f61e0720dc30..c01ae781e2a77be9348db4c8eede7261984fb097 100644 (file)
@@ -317,6 +317,9 @@ nouveau_display_create(struct drm_device *dev)
                dev->mode_config.max_height = 8192;
        }
 
+       dev->mode_config.preferred_depth = 24;
+       dev->mode_config.prefer_shadow = 1;
+
        drm_kms_helper_poll_init(dev);
        drm_kms_helper_poll_disable(dev);