[Intel-gfx] [PATCH i-g-t 1/6] lib/igt_kms: fix clearing up connector/pipe state on atomic commit

Lionel Landwerlin lionel.g.landwerlin at intel.com
Wed Mar 23 14:49:44 UTC 2016


Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
 lib/igt_kms.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 82257a6..5ef89cf 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1959,9 +1959,8 @@ static void igt_atomic_prepare_crtc_commit(igt_output_t *output, drmModeAtomicRe
 		igt_atomic_populate_crtc_req(req, output, IGT_CRTC_GAMMA_LUT, pipe_obj->gamma_blob);
 	}
 
-	/*
-	 *	TODO: Add all crtc level properties here
-	 */
+	pipe_obj->background_changed = false;
+	pipe_obj->color_mgmt_changed = false;
 }
 
 /*
@@ -1977,10 +1976,9 @@ static void igt_atomic_prepare_connector_commit(igt_output_t *output, drmModeAto
 
 	if (config->connector_dpms_changed)
 		igt_atomic_populate_connector_req(req, output, IGT_CONNECTOR_DPMS, config->connector_dpms);
-	/*
-	 *	TODO: Add all other connector level properties here
-	 */
 
+	config->connector_scaling_mode_changed = false;
+	config->connector_dpms_changed = false;
 }
 
 /*
-- 
2.8.0.rc3



More information about the Intel-gfx mailing list