From 7593d245112a12c991fd09cd2cd73afc70c5a6eb Mon Sep 17 00:00:00 2001 From: Adrian Salido-Moreno Date: Fri, 10 Jan 2014 15:39:49 -0800 Subject: msm: mdss: add retire fence support Retire fence timeline should follow the actual panel vsync more closely. For video mode the retire fence can be signaled along with the release timeline with +1 offset, since this is signaled at vsync. In case of command mode the panel vsync can be different from buffer release timeline. To handle the command mode panel vsyncs better, create a new timeline for the retire fence signaling. Change-Id: If8a1eb717d733ca215275a8be4f0054091dbc147 Signed-off-by: Adrian Salido-Moreno [cip@codeaurora.org: Update sw_sync.h include] Signed-off-by: Clarence Ip --- include/uapi/linux/msm_mdp.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'include/uapi/linux') diff --git a/include/uapi/linux/msm_mdp.h b/include/uapi/linux/msm_mdp.h index dc062cdc5cf8..e1d647f91791 100644 --- a/include/uapi/linux/msm_mdp.h +++ b/include/uapi/linux/msm_mdp.h @@ -973,6 +973,7 @@ struct msmfb_metadata { #define MDP_MAX_FENCE_FD 10 #define MDP_BUF_SYNC_FLAG_WAIT 1 +#define MDP_BUF_SYNC_FLAG_RETIRE_FENCE 0x10 struct mdp_buf_sync { uint32_t flags; @@ -980,6 +981,7 @@ struct mdp_buf_sync { uint32_t session_id; int *acq_fen_fd; int *rel_fen_fd; + int *retire_fen_fd; }; struct mdp_async_blit_req_list { @@ -989,19 +991,11 @@ struct mdp_async_blit_req_list { }; #define MDP_DISPLAY_COMMIT_OVERLAY 1 -struct mdp_buf_fence { - uint32_t flags; - uint32_t acq_fen_fd_cnt; - int acq_fen_fd[MDP_MAX_FENCE_FD]; - int rel_fen_fd[MDP_MAX_FENCE_FD]; -}; - struct mdp_display_commit { uint32_t flags; uint32_t wait_for_finish; struct fb_var_screeninfo var; - struct mdp_buf_fence buf_fence; struct mdp_rect roi; }; -- cgit v1.2.3