drm/vmwgfx: Add an option to change assumed FB bpp
authorSinclair Yeh <syeh@vmware.com>
Wed, 29 Jun 2016 19:15:48 +0000 (12:15 -0700)
committerSinclair Yeh <syeh@vmware.com>
Fri, 1 Jul 2016 17:47:48 +0000 (10:47 -0700)
commit04319d89fbec72dfd60738003c3813b97c1d5f5a
tree84cfcc2b11bc4d25292ab5d00aba1ce13820b1d3
parent7c20d213dd3cd6295bf9162730e7a368af957854
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>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c