diff options
author | SooChan Lim <sc1.lim@samsung.com> | 2021-04-13 11:03:38 +0900 |
---|---|---|
committer | SooChan Lim <sc1.lim@samsung.com> | 2021-04-19 01:38:29 +0000 |
commit | f041c69755cebb8ff27c43a93b40b6e0409a990f (patch) | |
tree | 8ffaedae05c50db81fb49e42c9877715e3bb6ce1 | |
parent | 9a4a2ea597aa0fc51ec96ab1b747125689ff1e36 (diff) | |
download | libtdm-vc4-f041c69755cebb8ff27c43a93b40b6e0409a990f.tar.gz libtdm-vc4-f041c69755cebb8ff27c43a93b40b6e0409a990f.tar.bz2 libtdm-vc4-f041c69755cebb8ff27c43a93b40b6e0409a990f.zip |
print the type of event
show the type of events when it gets interrupt from drm_fd.
Change-Id: Id631c3bd508291489ab1746b38a766af478224b7
-rw-r--r-- | src/libhal-backend-tdm-vc4/tdm_vc4_display.c | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/src/libhal-backend-tdm-vc4/tdm_vc4_display.c b/src/libhal-backend-tdm-vc4/tdm_vc4_display.c index fc184e4..d5e2470 100644 --- a/src/libhal-backend-tdm-vc4/tdm_vc4_display.c +++ b/src/libhal-backend-tdm-vc4/tdm_vc4_display.c @@ -393,34 +393,40 @@ _tdm_vc4_display_cb_event(int fd, unsigned int sequence, output_data = event_data->output_data; - - TDM_BACKEND_DBG("==== Atomic Commit Handler pipe, %u, crtc_id, %u connector_id, %u", + TDM_BACKEND_DBG("==== Event Callback on pipe, %u, crtc_id, %u connector_id, %u", output_data->pipe, output_data->crtc_id, output_data->connector_id); switch (event_data->type) { case TDM_DRM_EVENT_TYPE_PAGEFLIP: + TDM_BACKEND_DBG("==== TDM_DRM_EVENT_TYPE_PAGEFLIP"); + if (output_data->commit_func) output_data->commit_func(output_data, sequence, tv_sec, tv_usec, event_data->user_data); break; case TDM_DRM_EVENT_TYPE_WAIT: + TDM_BACKEND_DBG("==== TDM_DRM_EVENT_TYPE_WAIT"); + if (output_data->vblank_func) output_data->vblank_func(output_data, sequence, tv_sec, tv_usec, event_data->user_data); break; case TDM_DRM_EVENT_TYPE_COMMIT: - hwc_data = output_data->hwc_data; - if (!hwc_data) { - TDM_BACKEND_ERR("no hwc_data"); - break; - } + TDM_BACKEND_DBG("==== TDM_DRM_EVENT_TYPE_COMMIT"); + + hwc_data = output_data->hwc_data; + if (!hwc_data) + { + TDM_BACKEND_ERR("no hwc_data"); + break; + } - if (hwc_data->commit_func) - hwc_data->commit_func(hwc_data, sequence, - tv_sec, tv_usec, - event_data->user_data); + if (hwc_data->commit_func) + hwc_data->commit_func(hwc_data, sequence, tv_sec, tv_usec, + event_data->user_data); break; default: + TDM_BACKEND_ERR("Wrong event type"); break; } |