drm/vmwgfx: Properly check display/scanout surface size
authorSinclair Yeh <syeh@vmware.com>
Mon, 27 Mar 2017 18:12:27 +0000 (11:12 -0700)
committerSinclair Yeh <syeh@vmware.com>
Fri, 31 Mar 2017 22:21:20 +0000 (15:21 -0700)
commit28c954299cd2b5cb5411816c9eeaf3f51ed4638e
tree8d6afa1906526ea636035af1bbbc7f177cb02a1a
parent810b3e1683d00e51c8392bcee7dc7a1c65354777
drm/vmwgfx: Properly check display/scanout surface size

The scanout surface size is the smaller of max texture size and
max STDU size.

Signed-off-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c