diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-08-02 11:51:42 +0200 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-08-14 14:43:13 +0200 |
commit | dd0c75c1e5eeeee324005ad1ebfd5a5d24cef6fb (patch) | |
tree | d560ac458295c2f4e7812c81a30c12b7a6ef33fd /lib/igt_kms.c | |
parent | 3ee83cf3ae37fc7456abf37fa89623a9221de381 (diff) |
lib/igt_kms: Remove vblank wait after plane update.
With the conversion to atomic, this is already handled in the core.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Diffstat (limited to 'lib/igt_kms.c')
-rw-r--r-- | lib/igt_kms.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 6390229f..14e2701c 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -2374,8 +2374,6 @@ static int igt_primary_plane_commit_legacy(igt_plane_t *primary, CHECK_RETURN(ret, fail_on_error); - primary->pipe->enabled = (fb_id != 0); - return 0; } @@ -2413,10 +2411,8 @@ static int igt_pipe_commit(igt_pipe_t *pipe, enum igt_commit_style s, bool fail_on_error) { - igt_display_t *display = pipe->display; int i; int ret; - bool need_wait_for_vblank = false; if (pipe->background_changed) { igt_crtc_set_property(pipe, pipe->background_property, @@ -2435,21 +2431,10 @@ static int igt_pipe_commit(igt_pipe_t *pipe, for (i = 0; i < pipe->n_planes; i++) { igt_plane_t *plane = &pipe->planes[i]; - if (plane->fb_changed || plane->position_changed || plane->size_changed) - need_wait_for_vblank = true; - ret = igt_plane_commit(plane, pipe, s, fail_on_error); CHECK_RETURN(ret, fail_on_error); } - /* - * If the crtc is enabled, wait until the next vblank before returning - * if we made changes to any of the planes. - */ - if (need_wait_for_vblank && pipe->enabled) { - igt_wait_for_vblank(display->drm_fd, pipe->pipe); - } - return 0; } |