When screen objects are enabled, the bpp is assumed to be 32, otherwise it is set...
authorSinclair Yeh <syeh@vmware.com>
Thu, 13 Nov 2014 22:22:10 +0000 (14:22 -0800)
committerJiri Slaby <jslaby@suse.cz>
Fri, 14 Nov 2014 12:24:17 +0000 (13:24 +0100)
commit2edb76f37c9f8e3081c5b5619c51f8f291819531
tree9c0402ac67a2e7f2948feb682a5c10f739d97dca
parentd4023bb346873d9f367e174b3e8cc860959296b0
When screen objects are enabled, the bpp is assumed to be 32, otherwise it is set to 16.

v2:
* Use u32 instead of u64 for assumed_bpp.
* Fixed mechanism to check for screen objects
* Limit the back buffer size to VRAM.

v3:
* Backported for 3.12-stable

Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c