OSDN Git Service

intel: set correct limits on screen width/height from DDX
authorDave Airlie <airlied@linux.ie>
Thu, 8 May 2008 06:10:06 +0000 (16:10 +1000)
committerDave Airlie <airlied@linux.ie>
Thu, 8 May 2008 06:10:06 +0000 (16:10 +1000)
linux-core/intel_display.c

index 46abb90..f66570c 100644 (file)
@@ -1448,8 +1448,13 @@ void intel_modeset_init(struct drm_device *dev)
        dev->mode_config.min_width = 0;
        dev->mode_config.min_height = 0;
 
-       dev->mode_config.max_width = 4096;
-       dev->mode_config.max_height = 4096;
+       if (IS_I965G(dev)) {
+               dev->mode_config.max_width = 8192;
+               dev->mode_config.max_height = 8192;
+       } else {
+               dev->mode_config.max_width = 2048;
+               dev->mode_config.max_height = 2048;
+       }
 
        /* set memory base */
        if (IS_I9XX(dev))