summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoram Park <boram1288.park@samsung.com>2017-09-04 17:14:12 +0900
committerSooChan Lim <sc1.lim@samsung.com>2017-09-04 09:45:45 +0000
commitea47cc0f7a186d782b35c3fb51206549e527f59b (patch)
tree8fd015c8ac12667815d293ddff46061ec610fb39
parent93ca7a4b15464acd97f7ef9bcc82ded0ee3371bb (diff)
downloadlibtdm-drm-ea47cc0f7a186d782b35c3fb51206549e527f59b.tar.gz
libtdm-drm-ea47cc0f7a186d782b35c3fb51206549e527f59b.tar.bz2
libtdm-drm-ea47cc0f7a186d782b35c3fb51206549e527f59b.zip
add debugging log for layer format
Change-Id: Iba46a8dae46a40d9c8f30912452313c0767697b9
-rw-r--r--src/tdm_drm_display.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tdm_drm_display.c b/src/tdm_drm_display.c
index ea500df..6ca8f66 100644
--- a/src/tdm_drm_display.c
+++ b/src/tdm_drm_display.c
@@ -1502,8 +1502,11 @@ drm_layer_get_capability(tdm_layer *layer, tdm_caps_layer *caps)
for (i = 0; i < caps->format_count; i++) {
/* TODO: kernel reports wrong formats */
if (plane->formats[i] != DRM_FORMAT_XRGB8888 &&
- plane->formats[i] != DRM_FORMAT_ARGB8888)
+ plane->formats[i] != DRM_FORMAT_ARGB8888) {
+ TDM_WRN("plane(%d) zpos(%d) %c%c%c%c skipped",
+ layer_data->plane_id, layer_data->zpos, FOURCC_STR(plane->formats[i]));
continue;
+ }
caps->formats[format_count] = tdm_drm_format_to_tbm_format(plane->formats[i]);
format_count++;
}