]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb89b1384fcbbea6a2afa202f7f757856b9205cfd
tree8d6afa1906526ea636035af1bbbc7f177cb02a1a
parent0f2da5e828604be1fd4cb30985751b6da4a26ecb
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