diff options
| author | Sinclair Yeh <syeh@vmware.com> | 2017-07-17 07:49:22 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-06 09:21:10 -0700 |
| commit | 631c3a0a71b43e3d9dd99b15444c3533ed218192 (patch) | |
| tree | 1f1bee469f9643a3140460f629d472588aaed2c6 | |
| parent | 555ac1e5516124dc4c180f059054998a8c9469ff (diff) | |
| download | linux-631c3a0a71b43e3d9dd99b15444c3533ed218192.tar.gz linux-631c3a0a71b43e3d9dd99b15444c3533ed218192.tar.bz2 linux-631c3a0a71b43e3d9dd99b15444c3533ed218192.zip | |
drm/vmwgfx: Limit max desktop dimensions to 8Kx8K
commit 7b009e76797c82178d7a03ae0eaad5951d975277 upstream.
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.
Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c index 50be1f034f9e..5284e8d2f7ba 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c @@ -1640,8 +1640,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); |
