diff mbox series

[v6,13/44] drm/colorop: Add NEXT to colorop state print

Message ID 20241003200129.1732122-14-harry.wentland@amd.com (mailing list archive)
State New, archived
Headers show
Series Color Pipeline API w/ VKMS | expand

Commit Message

Harry Wentland Oct. 3, 2024, 8 p.m. UTC
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
---

v5:
 - Drop unused header definitions

v3:
 - Read NEXT ID from drm_colorop's next pointer

 drivers/gpu/drm/drm_atomic.c | 1 +
 1 file changed, 1 insertion(+)

--
2.46.2

Comments

Simon Ser Oct. 13, 2024, 3:16 p.m. UTC | #1
I think this can be folded into "drm/colorop: Add atomic state print for
drm_colorop".
diff mbox series

Patch

diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index 12e787e73c63..35136987d5e8 100644
--- a/drivers/gpu/drm/drm_atomic.c
+++ b/drivers/gpu/drm/drm_atomic.c
@@ -788,6 +788,7 @@  static void drm_atomic_colorop_print_state(struct drm_printer *p,
 	drm_printf(p, "\ttype=%s\n", drm_get_colorop_type_name(colorop->type));
 	drm_printf(p, "\tbypass=%u\n", state->bypass);
 	drm_printf(p, "\tcurve_1d_type=%s\n", drm_get_colorop_curve_1d_type_name(state->curve_1d_type));
+	drm_printf(p, "\tnext=%d\n", colorop->next ? colorop->next->base.id : 0);
 }

 static void drm_atomic_plane_print_state(struct drm_printer *p,