From a384f704246533da9c05e4594621becc26384f49 Mon Sep 17 00:00:00 2001 From: Nicholas Kazlauskas Date: Thu, 22 Aug 2019 13:04:37 -0400 Subject: [PATCH] drm/amd/display: Test patch for disabling color adjustments Signed-off-by: Nicholas Kazlauskas --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +++ drivers/gpu/drm/amd/display/dc/core/dc.c | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 911fe78b47c1..9c2a094ef51f 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -7150,6 +7150,9 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev, if (ret) goto fail; + for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) + new_crtc_state->color_mgmt_changed = false; + for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { if (!drm_atomic_crtc_needs_modeset(new_crtc_state) && !new_crtc_state->color_mgmt_changed && diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 77ac7f707ec5..c5d795584a24 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -2140,6 +2140,7 @@ void dc_commit_updates_for_stream(struct dc *dc, if (update_type >= UPDATE_TYPE_FULL) { + DRM_DEBUG_KMS("debug: full update issued\n"); /* initialize scratch memory for building context */ context = dc_create_state(dc); -- 2.17.1