From: NĂ­colas F. R. A. Prado <[email protected]>

Print the value of the color pipeline in the CRTC state as part of the
CRTC state print.

Signed-off-by: NĂ­colas F. R. A. Prado <[email protected]>
Co-developed-by: Ariel D'Alessandro <[email protected]>
Signed-off-by: Ariel D'Alessandro <[email protected]>
Reviewed-by: Louis Chauvet <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
---
 drivers/gpu/drm/drm_atomic.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index c41759aedc6f..76c7665b3c4c 100644
--- a/drivers/gpu/drm/drm_atomic.c
+++ b/drivers/gpu/drm/drm_atomic.c
@@ -554,6 +554,8 @@ static void drm_atomic_crtc_print_state(struct drm_printer 
*p,
        drm_printf_indent(p, 1, "plane_mask=%x\n", state->plane_mask);
        drm_printf_indent(p, 1, "connector_mask=%x\n", state->connector_mask);
        drm_printf_indent(p, 1, "encoder_mask=%x\n", state->encoder_mask);
+       drm_printf_indent(p, 1, "color-pipeline=%d\n",
+                         state->color_pipeline ? 
state->color_pipeline->base.id : 0);
        drm_printf_indent(p, 1, "mode: " DRM_MODE_FMT "\n", 
DRM_MODE_ARG(&state->mode));
        drm_printf_indent(p, 1, "background_color=%llx\n", 
state->background_color);
 
-- 
2.53.0

Reply via email to