Return-Path: Received: from ex13-edg-ou-002.vmware.com ([208.91.0.190]:23172 "EHLO EX13-EDG-OU-002.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753648AbdHUUZl (ORCPT ); Mon, 21 Aug 2017 16:25:41 -0400 From: Sinclair Yeh To: CC: Sinclair Yeh Subject: [PATCH 3/3] drm/vmwgfx: Limit max desktop dimensions to 8Kx8K Date: Mon, 21 Aug 2017 22:10:12 +0200 Message-ID: <1503346212-6418-4-git-send-email-syeh@vmware.com> In-Reply-To: <1503346212-6418-1-git-send-email-syeh@vmware.com> References: <1503346212-6418-1-git-send-email-syeh@vmware.com> MIME-Version: 1.0 Content-Type: text/plain Sender: stable-owner@vger.kernel.org List-ID: This was originally chosen to be an arbitrarily large number. However, some user mode may actually try to set a 16Kx16K mode and run into other issues. Since 8Kx8K is the current texture limit for Mesa LLVM driver, we will just use this limit for now. Commit 7b009e76797c upstream. Cc: # 4.11.x Signed-off-by: Sinclair Yeh Reviewed-by: Brian Paul --- drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c index 55716d0..b150e3d 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c @@ -1416,8 +1416,8 @@ int vmw_kms_stdu_init_display(struct vmw_private *dev_priv) * something arbitrarily large and we will reject any layout * that doesn't fit prim_bb_mem later */ - dev->mode_config.max_width = 16384; - dev->mode_config.max_height = 16384; + dev->mode_config.max_width = 8192; + dev->mode_config.max_height = 8192; } vmw_kms_create_implicit_placement_property(dev_priv, false); -- 2.7.4