From ca6df0bcab5977b952a65d31f83a82ce73d3e71c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 16 Sep 2020 09:23:57 +0200 Subject: [PATCH] Print legacy CRTC gamma size Older drivers don't expose the GAMMA_LUT_SIZE property. Print the legacy drmModeCrtc.gamma_size field to account for those. --- pretty.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pretty.c b/pretty.c index 68d56df..ab001ef 100644 --- a/pretty.c +++ b/pretty.c @@ -751,6 +751,11 @@ static void print_crtcs(struct json_object *arr) printf("\n"); } + struct json_object *gamma_size_obj = + json_object_object_get(obj, "gamma_size"); + printf(L_LINE "%s" L_VAL "Gamma size: %d\n", + last ? L_GAP : L_LINE, json_object_get_int(gamma_size_obj)); + print_properties(props_obj, last ? L_LINE L_GAP : L_LINE L_LINE); } }