From d2b86709393a6e7fba1e22a82625e4c2514c8a7e Mon Sep 17 00:00:00 2001 From: Junkyeong Kim Date: Wed, 20 Feb 2019 20:24:16 +0900 Subject: [PATCH] tdm_helper: add checking hwc mode for tdm-monitor -info fix seg fault. Change-Id: I868e8999e07e4b39296ed9691e2e11f528323fdb Signed-off-by: Junkyeong Kim --- src/tdm_helper.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tdm_helper.c b/src/tdm_helper.c index e9db919..804a112 100644 --- a/src/tdm_helper.c +++ b/src/tdm_helper.c @@ -856,6 +856,11 @@ _tdm_helper_get_backend_information(tdm_private_module *private_module, char *re TDM_SNPRINTF(reply, len, "idx output zpos buf format size crop geometry transform\n"); TDM_SNPRINTF(reply, len, "-----------------------------------------------------------------------\n"); LIST_FOR_EACH_ENTRY(private_output, &private_module->output_list, link) { + if (private_output->caps.capabilities & TDM_OUTPUT_CAPABILITY_HWC) { + TDM_SNPRINTF(reply, len, "(no layer), hwc mode on\n"); + continue; + } + LIST_FOR_EACH_ENTRY(private_layer, &private_output->layer_list, link) { if (!private_layer->usable) { tdm_info_layer info; -- 2.7.4