[i-g-t] lib/igt_kms: Clear all pipe properties on reset
Samala, Pranay
pranay.samala at intel.com
Tue Nov 19 03:17:38 UTC 2024
> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of
> Bhanuprakash Modem
> Sent: Monday, November 18, 2024 7:45 PM
> To: igt-dev at lists.freedesktop.org; Sharma, Swati2 <swati2.sharma at intel.com>
> Cc: Modem, Bhanuprakash <bhanuprakash.modem at intel.com>
> Subject: [i-g-t] lib/igt_kms: Clear all pipe properties on reset
>
> Just to sanitize all properties we should clear all pipe properties on reset.
>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
LGTM.
Reviewed-by: Pranay Samala <pranay.samala 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