summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2017-08-02 11:51:42 +0200
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2017-08-14 14:43:13 +0200
commitdd0c75c1e5eeeee324005ad1ebfd5a5d24cef6fb (patch)
treed560ac458295c2f4e7812c81a30c12b7a6ef33fd /lib
parent3ee83cf3ae37fc7456abf37fa89623a9221de381 (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')
-rw-r--r--lib/igt_kms.c15
-rw-r--r--lib/igt_kms.h1
2 files changed, 0 insertions, 16 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;
}
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 96713c24..e5dc329b 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -324,7 +324,6 @@ typedef struct {
struct igt_pipe {
igt_display_t *display;
enum pipe pipe;
- bool enabled;
int n_planes;
int plane_cursor;