Browse Source

drm/amd/display: Use pflip prepare and submit parts (v2)

Use new functions so flip failures can be gracefully handled

v2:
Avoid -EINVAL returned from amdgpu_crtc_prepare_flip in some
error cases, it is not allowed according to expected
return values for atomic_commit hook.

Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Andrey Grodzovsky 8 years ago
parent
commit
858058da47
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c

+ 0 - 1
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c

@@ -2267,7 +2267,6 @@ int amdgpu_dm_atomic_commit(
 	uint32_t flip_crtcs_count = 0;
 	struct drm_crtc *crtc;
 	struct drm_crtc_state *old_crtc_state;
-
 	const struct dc_stream *commit_streams[MAX_STREAMS];
 	struct amdgpu_crtc *new_crtcs[MAX_STREAMS];
 	const struct dc_stream *new_stream;