drm/vmwgfx: Fix atomic mode set check
authorSinclair Yeh <syeh@vmware.com>
Tue, 19 Jun 2018 17:46:58 +0000 (19:46 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 3 Jul 2018 18:35:52 +0000 (20:35 +0200)
commitb249cb4f6bc45485f631803b9762e443108a4b00
treea92bb7fe95a2fcb3c8633d1f5cc32c6178a41ea9
parent19f976ab01a6bb1f36384dd8cc743b88a6b7ebd6
drm/vmwgfx: Fix atomic mode set check

vmw_kms_atomic_check_modeset() is currently checking config using the
legacy state, which is updated after a commit has happened.

This means vmw_kms_atomic_check_modeset() will reject an invalid config
on the next update rather than the current one.

Fix this by using the new states for config checking

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