[i-g-t] lib/igt_kms: Clear all pipe properties on reset

Bhanuprakash Modem bhanuprakash.modem at intel.com
Mon Nov 18 14:15:22 UTC 2024


Just to sanitize all properties we should clear all
pipe properties on reset.

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 lib/igt_kms.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 76f32e1e0..22b6534e6 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -2612,6 +2612,9 @@ static void igt_pipe_reset(igt_pipe_t *pipe)
 	if (igt_pipe_obj_has_prop(pipe, IGT_CRTC_SCALING_FILTER))
 		igt_pipe_obj_set_prop_enum(pipe, IGT_CRTC_SCALING_FILTER, "Default");
 
+	if (igt_pipe_obj_has_prop(pipe, IGT_CRTC_VRR_ENABLED))
+		igt_pipe_obj_set_prop_value(pipe, IGT_CRTC_VRR_ENABLED, 0);
+
 	pipe->out_fence_fd = -1;
 }
 
-- 
2.43.0



More information about the igt-dev mailing list