drm/amd/display: Fix plane_atomic_check when no dc_state

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Harry Wentland 2017-07-31 13:15:04 -04:00 committed by Alex Deucher
parent 4d128c2f8a
commit 9a3329b172

View File

@ -3160,7 +3160,7 @@ int dm_plane_atomic_check(struct drm_plane *plane,
struct dm_plane_state *dm_plane_state = to_dm_plane_state(state); struct dm_plane_state *dm_plane_state = to_dm_plane_state(state);
if (!dm_plane_state->dc_state) if (!dm_plane_state->dc_state)
return true; return 0;
if (dc_validate_plane(dc, dm_plane_state->dc_state)) if (dc_validate_plane(dc, dm_plane_state->dc_state))
return 0; return 0;