diff options
| author | Adrian Salido-Moreno <adrianm@codeaurora.org> | 2014-01-10 15:39:49 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:25:34 -0700 |
| commit | 7593d245112a12c991fd09cd2cd73afc70c5a6eb (patch) | |
| tree | 7a0b04c1e265f700bf6f97e4e9deb5bf1f07bac8 /include/uapi | |
| parent | 058a7810d171c17407d6f0e39d155ad9a115f9dd (diff) | |
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 <adrianm@codeaurora.org>
[cip@codeaurora.org: Update sw_sync.h include]
Signed-off-by: Clarence Ip <cip@codeaurora.org>
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/linux/msm_mdp.h | 10 |
1 files changed, 2 insertions, 8 deletions
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; }; |
