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]>
Signed-off-by: Melissa Wen <[email protected]>

---
v3:
- rebase on drm-misc-next, no other changes
---
 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 6d608795f28b..430d4a95241b 100644
--- a/drivers/gpu/drm/drm_atomic.c
+++ b/drivers/gpu/drm/drm_atomic.c
@@ -575,6 +575,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