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

Bhanuprakash Modem bhanuprakash.modem at intel.com
Wed Aug 14 06:45:33 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 e030b35a6..f5fc9ada1 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -2562,6 +2562,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.2



More information about the Intel-gfx-trybot mailing list