diff options
author | Keith Packard <keithp@keithp.com> | 2009-07-13 02:53:17 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-07-13 18:55:23 -0400 |
commit | 5e4d6fa72619aeea271d2ad704757717b06e291a (patch) | |
tree | 9e93a47ddaa5cfea9cb89e8cbd6961660cdfc912 | |
parent | 8a90523639f49dc4b4fa7ae47bb9c8ed73ea8577 (diff) |
drm/i915: Allow frame buffers up to 4096x4096 on 915/945 class hardware
The 915 and 945 scanout engines can handle frame buffers up to 4096 pixels
wide. Pre-9xx hardware has an 8192 byte stride limit, and so we leave the
existing 2048 max in place.
I'm not sure why we limit the height to the same value; there's no intrinsic
hardware limit in the scanout engine.
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 3371cb0ba81b..984645e26a2d 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -3148,6 +3148,9 @@ void intel_modeset_init(struct drm_device *dev) | |||
3148 | if (IS_I965G(dev)) { | 3148 | if (IS_I965G(dev)) { |
3149 | dev->mode_config.max_width = 8192; | 3149 | dev->mode_config.max_width = 8192; |
3150 | dev->mode_config.max_height = 8192; | 3150 | dev->mode_config.max_height = 8192; |
3151 | } else if (IS_I9XX(dev)) { | ||
3152 | dev->mode_config.max_width = 4096; | ||
3153 | dev->mode_config.max_height = 4096; | ||
3151 | } else { | 3154 | } else { |
3152 | dev->mode_config.max_width = 2048; | 3155 | dev->mode_config.max_width = 2048; |
3153 | dev->mode_config.max_height = 2048; | 3156 | dev->mode_config.max_height = 2048; |