drm/amd/display: Skip 2 frames when first reading CRC

Skipping the first frame will prevent uncoooked values most of the time.
However, in some unlikely cases, the second frame will be uncooked as
well.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Leo (Sunpeng) Li
2018-02-06 10:20:46 -05:00
committed by Alex Deucher
parent ea41fb640d
commit a0a31ec4ce
2 changed files with 7 additions and 7 deletions

View File

@@ -198,7 +198,7 @@ struct dm_crtc_state {
struct drm_crtc_state base;
struct dc_stream_state *stream;
bool crc_first_skipped;
int crc_skip_count;
bool crc_enabled;
};