diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2015-09-17 22:31:20 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-10-11 23:48:28 -0400 |
commit | 5102ec3e99e271b3934a1e00bb52a2545eb7dbc5 (patch) | |
tree | 341de7ce4cd0cc125ca6b94dc873b0558118eaaa | |
parent | 2239b76b0b1782160d5ca91ea1653dd67aa37e8a (diff) |
drm/nouveau/display: allow up to 16k width/height for fermi+
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_display.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c index cc6c228e11c8..e905c00acf1a 100644 --- a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c | |||
@@ -469,9 +469,13 @@ nouveau_display_create(struct drm_device *dev) | |||
469 | if (drm->device.info.family < NV_DEVICE_INFO_V0_TESLA) { | 469 | if (drm->device.info.family < NV_DEVICE_INFO_V0_TESLA) { |
470 | dev->mode_config.max_width = 4096; | 470 | dev->mode_config.max_width = 4096; |
471 | dev->mode_config.max_height = 4096; | 471 | dev->mode_config.max_height = 4096; |
472 | } else { | 472 | } else |
473 | if (drm->device.info.family < NV_DEVICE_INFO_V0_FERMI) { | ||
473 | dev->mode_config.max_width = 8192; | 474 | dev->mode_config.max_width = 8192; |
474 | dev->mode_config.max_height = 8192; | 475 | dev->mode_config.max_height = 8192; |
476 | } else { | ||
477 | dev->mode_config.max_width = 16384; | ||
478 | dev->mode_config.max_height = 16384; | ||
475 | } | 479 | } |
476 | 480 | ||
477 | dev->mode_config.preferred_depth = 24; | 481 | dev->mode_config.preferred_depth = 24; |