diff mbox

[v1,1/7] drm: print plane state normalized zpos value

Message ID 20180605135407.20214-2-benjamin.gaignard@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Benjamin Gaignard June 5, 2018, 1:54 p.m. UTC
When dumping plane state print normalized zpos value as done for
the other plane state fields.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
---
 drivers/gpu/drm/drm_atomic.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Philippe CORNU June 15, 2018, 2:50 p.m. UTC | #1
Hi Benjamin,


On 06/05/2018 03:54 PM, Benjamin Gaignard wrote:
> When dumping plane state print normalized zpos value as done for

> the other plane state fields.

> 

> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>

> ---

>   drivers/gpu/drm/drm_atomic.c | 1 +

>   1 file changed, 1 insertion(+)

> 

> diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c

> index 07fef42869aa..cd1d677617c8 100644

> --- a/drivers/gpu/drm/drm_atomic.c

> +++ b/drivers/gpu/drm/drm_atomic.c

> @@ -988,6 +988,7 @@ static void drm_atomic_plane_print_state(struct drm_printer *p,

>   	drm_printf(p, "\tcrtc-pos=" DRM_RECT_FMT "\n", DRM_RECT_ARG(&dest));

>   	drm_printf(p, "\tsrc-pos=" DRM_RECT_FP_FMT "\n", DRM_RECT_FP_ARG(&src));

>   	drm_printf(p, "\trotation=%x\n", state->rotation);

> +	drm_printf(p, "\tnormalized-zpos=%x\n", state->normalized_zpos);

>   	drm_printf(p, "\tcolor-encoding=%s\n",

>   		   drm_get_color_encoding_name(state->color_encoding));

>   	drm_printf(p, "\tcolor-range=%s\n",

> 


Reviewed-by: Philippe Cornu <philippe.cornu@st.com>

Many thanks
Philippe :-)
Benjamin Gaignard July 6, 2018, 8:24 a.m. UTC | #2
2018-06-05 15:54 GMT+02:00 Benjamin Gaignard <benjamin.gaignard@linaro.org>:
> When dumping plane state print normalized zpos value as done for
> the other plane state fields.
>
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>

Applied on drm-misc-next.
The others patches of this series are abandoned

Benjamin

> ---
>  drivers/gpu/drm/drm_atomic.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
> index 07fef42869aa..cd1d677617c8 100644
> --- a/drivers/gpu/drm/drm_atomic.c
> +++ b/drivers/gpu/drm/drm_atomic.c
> @@ -988,6 +988,7 @@ static void drm_atomic_plane_print_state(struct drm_printer *p,
>         drm_printf(p, "\tcrtc-pos=" DRM_RECT_FMT "\n", DRM_RECT_ARG(&dest));
>         drm_printf(p, "\tsrc-pos=" DRM_RECT_FP_FMT "\n", DRM_RECT_FP_ARG(&src));
>         drm_printf(p, "\trotation=%x\n", state->rotation);
> +       drm_printf(p, "\tnormalized-zpos=%x\n", state->normalized_zpos);
>         drm_printf(p, "\tcolor-encoding=%s\n",
>                    drm_get_color_encoding_name(state->color_encoding));
>         drm_printf(p, "\tcolor-range=%s\n",
> --
> 2.15.0
>
diff mbox

Patch

diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index 07fef42869aa..cd1d677617c8 100644
--- a/drivers/gpu/drm/drm_atomic.c
+++ b/drivers/gpu/drm/drm_atomic.c
@@ -988,6 +988,7 @@  static void drm_atomic_plane_print_state(struct drm_printer *p,
 	drm_printf(p, "\tcrtc-pos=" DRM_RECT_FMT "\n", DRM_RECT_ARG(&dest));
 	drm_printf(p, "\tsrc-pos=" DRM_RECT_FP_FMT "\n", DRM_RECT_FP_ARG(&src));
 	drm_printf(p, "\trotation=%x\n", state->rotation);
+	drm_printf(p, "\tnormalized-zpos=%x\n", state->normalized_zpos);
 	drm_printf(p, "\tcolor-encoding=%s\n",
 		   drm_get_color_encoding_name(state->color_encoding));
 	drm_printf(p, "\tcolor-range=%s\n",