drm/vmwgfx: Use modeset display memory validation for layout ioctl
authorDeepak Rawat <drawat@vmware.com>
Wed, 20 Jun 2018 09:17:16 +0000 (11:17 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 3 Jul 2018 18:38:02 +0000 (20:38 +0200)
commit5e24133ea3dfb89fd0cf28cd7a845b66fa680b69
treeafbf31d681ee7b094ab3b8a6871db1dc10e32ca6
parent0a80eb4c122fd6119f3a15910d7bb9e6e33c3661
drm/vmwgfx: Use modeset display memory validation for layout ioctl

Call the same display memory validation function which is used by
modeset_check. This ensure consistency that kernel change preferred
mode/topology only if supported.

Also change the internal function to use drm_rect instead of
drm_vmw_rect.

Signed-off-by: Deepak Rawat <drawat@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c