diff options
author | Deepak Rawat <drawat@vmware.com> | 2018-08-17 14:50:40 -0700 |
---|---|---|
committer | Deepak Rawat <drawat@vmware.com> | 2018-08-21 11:11:29 -0700 |
commit | d8b0ce80fcf10c4c4308ae82393d17994e15cab2 (patch) | |
tree | 79239f16b9f2d89d974649d9bca5b102755c7172 | |
parent | 8900a0842b44da297ea1a564963f409004658b2c (diff) |
vmwgfx: don't limit mode_config max_width/height to STDU max
mode_config max_width/height is used to restrict the maximum framebuffer
that can be created and also during fill_modes to limit mode size. Even
if the screen target is limited by stdu_max_width/height, it shouldn't
restrict the maximum framebuffer size.
In fill_modes implementation modes which are larger than stdu_max_width/
height are not exposed for stdu. Furthermore, during atomic_check
individual screen is validated for stdu_max_width/height.
Signed-off-by: Deepak Rawat <drawat@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
-rw-r--r-- | vmwgfx_stdu.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/vmwgfx_stdu.c b/vmwgfx_stdu.c index bd9e175..fb02722 100644 --- a/vmwgfx_stdu.c +++ b/vmwgfx_stdu.c @@ -1601,31 +1601,6 @@ int vmw_kms_stdu_init_display(struct vmw_private *dev_priv) dev_priv->active_display_unit = vmw_du_screen_target; - if (dev_priv->capabilities & SVGA_CAP_3D) { - /* - * For 3D VMs, display (scanout) buffer size is the smaller of - * max texture and max STDU - */ - uint32_t max_width, max_height; - - max_width = min(dev_priv->texture_max_width, - dev_priv->stdu_max_width); - max_height = min(dev_priv->texture_max_height, - dev_priv->stdu_max_height); - - dev->mode_config.max_width = max_width; - dev->mode_config.max_height = max_height; - } else { - /* - * Given various display aspect ratios, there's no way to - * estimate these using prim_bb_mem. So just set these to - * something arbitrarily large and we will reject any layout - * that doesn't fit prim_bb_mem later - */ - dev->mode_config.max_width = 8192; - dev->mode_config.max_height = 8192; - } - vmw_kms_create_implicit_placement_property(dev_priv, false); for (i = 0; i < VMWGFX_NUM_DISPLAY_UNITS; ++i) { |