]> 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)
commitc1ba129096aea8bad6b43b9d58a57be6d9a14de5
tree8d6afa1906526ea636035af1bbbc7f177cb02a1a
parent81927facb8c1f75626f66df4f4446ebc9a7338ca
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