drm/vmwgfx: Limit max desktop dimensions to 8Kx8K
authorSinclair Yeh <syeh@vmware.com>
Mon, 17 Jul 2017 14:49:22 +0000 (07:49 -0700)
committerSinclair Yeh <syeh@vmware.com>
Tue, 18 Jul 2017 06:40:58 +0000 (23:40 -0700)
commit7b009e76797c82178d7a03ae0eaad5951d975277
treecefbbe449f1e5dd99771105036d7af5fc4ed5fe1
parent9036f8c7cf42af2c0d50e8bbc493323239a30423
drm/vmwgfx: Limit max desktop dimensions to 8Kx8K

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.

Cc: <stable@vger.kernel.org> # 4.12.x
Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c