aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
diff options
context:
space:
mode:
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>2018-02-06 10:20:46 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-02-19 14:20:11 -0500
commita0a31ec4ce6a8c8bc4f4b8619b537e4a9a0ddaf1 (patch)
treea52fcd4bc73306e820d9a60b5ab32bea48e2dced /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
parentea41fb640dd8789db325b90ffa4142d808247de1 (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h')
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
index ed939600cdbe..aa7df5775545 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
@@ -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;
};