summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libhal-backend-tdm-vc4/tdm_vc4_display.c28
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;
}