]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4dadc07d5394822fa6572ebaa37bd343aa634b14
treea92bb7fe95a2fcb3c8633d1f5cc32c6178a41ea9
parentbfd21b55463b8a91ade7c0cee9f09d770f7e5e25
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