sdm: remove vsync enable as part of commit cycle
DRM driver handles the vsync callbacks in a separate thread now.
Remove vsync enablement as part of commit cycle to avoid janks.
Change-Id: Ib649101845487cb8cecc26184d0edad70e6b1a3d
diff --git a/sdm/libs/core/display_builtin.cpp b/sdm/libs/core/display_builtin.cpp
index 1a853be..af0a67c 100644
--- a/sdm/libs/core/display_builtin.cpp
+++ b/sdm/libs/core/display_builtin.cpp
@@ -673,15 +673,6 @@
}
}
- if (vsync_enable_) {
- DTRACE_BEGIN("RegisterVsync");
- // wait for previous frame's retire fence to signal.
- Fence::Wait(retire_fence_);
-
- // Register for vsync and then commit the frame.
- hw_events_intf_->SetEventState(HWEvent::VSYNC, true);
- DTRACE_END();
- }
// effectively drmModeAtomicAddProperty for SDE_DSPP_HIST_IRQ_V1
if (histogramSetup) {
SetDppsFeatureLocked(&histogramIRQ, sizeof(histogramIRQ));