[igt-dev] [PATCH i-g-t 3/4] lib/kms: Add GAMMA_LUT_3D support
Modem, Bhanuprakash
bhanuprakash.modem at intel.com
Fri Sep 3 05:05:00 UTC 2021
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Ville
> Syrjala
> Sent: Friday, May 14, 2021 6:57 PM
> To: igt-dev at lists.freedesktop.org
> Subject: [igt-dev] [PATCH i-g-t 3/4] lib/kms: Add GAMMA_LUT_3D support
>
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> Add basic plumbing for the GAMMA_LUT_3D/GAMMA_LUT_3D_SIZE crtc props.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
LGTM
Reviewed-by: Bhanuprakash Modem <Bhanuprakash.modem at intel.com>
> ---
> lib/igt_kms.c | 5 +++++
> lib/igt_kms.h | 2 ++
> 2 files changed, 7 insertions(+)
>
> diff --git a/lib/igt_kms.c b/lib/igt_kms.c
> index 47b829b0c53d..bae889a1055d 100644
> --- a/lib/igt_kms.c
> +++ b/lib/igt_kms.c
> @@ -589,6 +589,8 @@ const char * const igt_crtc_prop_names[IGT_NUM_CRTC_PROPS]
> = {
> [IGT_CRTC_GAMMA_LUT_SIZE] = "GAMMA_LUT_SIZE",
> [IGT_CRTC_DEGAMMA_LUT] = "DEGAMMA_LUT",
> [IGT_CRTC_DEGAMMA_LUT_SIZE] = "DEGAMMA_LUT_SIZE",
> + [IGT_CRTC_GAMMA_LUT_3D] = "GAMMA_LUT_3D",
> + [IGT_CRTC_GAMMA_LUT_3D_SIZE] = "GAMMA_LUT_3D_SIZE",
> [IGT_CRTC_MODE_ID] = "MODE_ID",
> [IGT_CRTC_ACTIVE] = "ACTIVE",
> [IGT_CRTC_OUT_FENCE_PTR] = "OUT_FENCE_PTR",
> @@ -1983,6 +1985,9 @@ static void igt_pipe_reset(igt_pipe_t *pipe)
> if (igt_pipe_obj_has_prop(pipe, IGT_CRTC_DEGAMMA_LUT))
> igt_pipe_obj_set_prop_value(pipe, IGT_CRTC_DEGAMMA_LUT, 0);
>
> + if (igt_pipe_obj_has_prop(pipe, IGT_CRTC_GAMMA_LUT_3D))
> + igt_pipe_obj_set_prop_value(pipe, IGT_CRTC_GAMMA_LUT_3D, 0);
> +
> pipe->out_fence_fd = -1;
> }
>
> diff --git a/lib/igt_kms.h b/lib/igt_kms.h
> index 85f0769c9c99..1bcff8458720 100644
> --- a/lib/igt_kms.h
> +++ b/lib/igt_kms.h
> @@ -121,6 +121,8 @@ enum igt_atomic_crtc_properties {
> IGT_CRTC_GAMMA_LUT_SIZE,
> IGT_CRTC_DEGAMMA_LUT,
> IGT_CRTC_DEGAMMA_LUT_SIZE,
> + IGT_CRTC_GAMMA_LUT_3D,
> + IGT_CRTC_GAMMA_LUT_3D_SIZE,
> IGT_CRTC_MODE_ID,
> IGT_CRTC_ACTIVE,
> IGT_CRTC_OUT_FENCE_PTR,
> --
> 2.26.3
>
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
More information about the igt-dev
mailing list