diff options
Diffstat (limited to 'lib/igt_kms.c')
-rw-r--r-- | lib/igt_kms.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 218d3bedb..ba4de9c70 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -2916,7 +2916,8 @@ static int igt_plane_commit(igt_plane_t *plane, if (plane->type == DRM_PLANE_TYPE_CURSOR && s == COMMIT_LEGACY) { return igt_cursor_commit_legacy(plane, pipe, fail_on_error); - } else if (plane->type == DRM_PLANE_TYPE_PRIMARY && s == COMMIT_LEGACY) { + } else if (plane->type == DRM_PLANE_TYPE_PRIMARY && s == COMMIT_LEGACY && + plane == igt_pipe_get_plane_type(plane->pipe, DRM_PLANE_TYPE_PRIMARY)) { return igt_primary_plane_commit_legacy(plane, pipe, fail_on_error); } else { |