Skip to content

Commit bfc8882

Browse files
deepak-rawatthomashvmw
authored andcommitted
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>
1 parent 8ca4fff commit bfc8882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_kms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ static int vmw_kms_check_topology(struct drm_device *dev,
16151615
struct drm_connector_state *conn_state;
16161616
struct vmw_connector_state *vmw_conn_state;
16171617

1618-
if (!new_crtc_state->enable && old_crtc_state->enable) {
1618+
if (!new_crtc_state->enable) {
16191619
rects[i].x1 = 0;
16201620
rects[i].y1 = 0;
16211621
rects[i].x2 = 0;

0 commit comments

Comments
 (0)