summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
diff options
context:
space:
mode:
authorDeepak Rawat <drawat@vmware.com>2018-09-13 12:33:49 +0200
committerThomas Hellstrom <thellstrom@vmware.com>2018-09-20 08:00:02 +0200
commitbfc888261474efb0676f0e1d128f22c9692b97b1 (patch)
tree2fcbc0d159f76045cb963dc9a68b813ec037f943 /drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
parentMerge tag 'drm-intel-fixes-2018-09-19' of git://anongit.freedesktop.org/drm/d... (diff)
downloadlinux-bfc888261474efb0676f0e1d128f22c9692b97b1.tar.xz
linux-bfc888261474efb0676f0e1d128f22c9692b97b1.zip
drm/vmwgfx: don't check for old_crtc_state enable status
During atomic check to prepare the new topology no need to check if old_crtc_state was enabled or not. This will cause atomic_check to fail because due to connector routing a crtc can be in atomic_state even if there was no change to enable status. Detected this issue with igt run. Signed-off-by: Deepak Rawat <drawat@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com> Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_kms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
index 23beff5d8e3c..636b962849c8 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
@@ -1615,7 +1615,7 @@ static int vmw_kms_check_topology(struct drm_device *dev,
struct drm_connector_state *conn_state;
struct vmw_connector_state *vmw_conn_state;
- if (!new_crtc_state->enable && old_crtc_state->enable) {
+ if (!new_crtc_state->enable) {
rects[i].x1 = 0;
rects[i].y1 = 0;
rects[i].x2 = 0;