diff options
author | Sinclair Yeh <syeh@vmware.com> | 2016-06-29 19:15:48 (GMT) |
---|---|---|
committer | Sinclair Yeh <syeh@vmware.com> | 2016-07-01 17:47:48 (GMT) |
commit | 04319d89fbec72dfd60738003c3813b97c1d5f5a (patch) | |
tree | 84cfcc2b11bc4d25292ab5d00aba1ce13820b1d3 /drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | |
parent | 7c20d213dd3cd6295bf9162730e7a368af957854 (diff) | |
download | linux-04319d89fbec72dfd60738003c3813b97c1d5f5a.tar.xz |
drm/vmwgfx: Add an option to change assumed FB bpp
Offer an option for advanced users who want larger modes at 16bpp.
This becomes necessary after the fix: "Work around mode set
failure in 2D VMs." Without this patch, there would be no way
for existing advanced users to get to a high res mode, and the
regression is they will likely get a black screen after a software
update on their current VM.
Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Cc: <stable@vger.kernel.org>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_kms.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index 077f16d..e29da45 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c @@ -1555,6 +1555,9 @@ int vmw_du_connector_fill_modes(struct drm_connector *connector, int i; u32 assumed_bpp = 4; + if (dev_priv->assume_16bpp) + assumed_bpp = 2; + if (dev_priv->active_display_unit == vmw_du_screen_target) { max_width = min(max_width, dev_priv->stdu_max_width); max_height = min(max_height, dev_priv->stdu_max_height); |