From patchwork Tue Feb 9 19:41:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakob Bornecrantz X-Patchwork-Id: 78163 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o19JfSgp008592 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 9 Feb 2010 19:42:07 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NevwP-0003B3-FK; Tue, 09 Feb 2010 19:40:09 +0000 Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NevwO-0003At-Q4 for dri-devel@lists.sourceforge.net; Tue, 09 Feb 2010 19:40:08 +0000 X-ACL-Warn: Received: from smtp-outbound-1.vmware.com ([65.115.85.69]) by sfi-mx-4.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1NevwN-0006p9-OF for dri-devel@lists.sourceforge.net; Tue, 09 Feb 2010 19:40:08 +0000 Received: from jupiter.vmware.com (mailhost5.vmware.com [10.16.68.131]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id CFBFE5006; Tue, 9 Feb 2010 11:39:59 -0800 (PST) Received: from localhost.localdomain (unknown [10.20.219.30]) by jupiter.vmware.com (Postfix) with ESMTP id 33D6CDC87A; Tue, 9 Feb 2010 11:39:59 -0800 (PST) From: Jakob Bornecrantz To: dri-devel@lists.sourceforge.net, airlied@redhat.com, thellstrom@vmware.com Subject: [PATCH] drm/vmwgfx: Report propper framebuffer_{max|min}_{width|height} Date: Tue, 9 Feb 2010 19:41:57 +0000 Message-Id: <1265744519-22025-3-git-send-email-jakob@vmware.com> X-Mailer: git-send-email 1.6.0.4 In-Reply-To: <1265744519-22025-2-git-send-email-jakob@vmware.com> References: <1265744519-22025-1-git-send-email-jakob@vmware.com> <1265744519-22025-2-git-send-email-jakob@vmware.com> X-Spam-Score: -0.4 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -0.4 AWL AWL: From: address is in the auto white-list X-Headers-End: 1NevwN-0006p9-OF X-BeenThere: dri-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 09 Feb 2010 19:42:08 +0000 (UTC) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index eeba6d1..31f9afe 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c @@ -769,10 +769,10 @@ int vmw_kms_init(struct vmw_private *dev_priv) drm_mode_config_init(dev); dev->mode_config.funcs = &vmw_kms_funcs; - dev->mode_config.min_width = 640; - dev->mode_config.min_height = 480; - dev->mode_config.max_width = 2048; - dev->mode_config.max_height = 2048; + dev->mode_config.min_width = 1; + dev->mode_config.min_height = 1; + dev->mode_config.max_width = dev_priv->fb_max_width; + dev->mode_config.max_height = dev_priv->fb_max_height; ret = vmw_kms_init_legacy_display_system(dev_priv);