diff options
author | Daniel Stone <daniels@collabora.com> | 2016-12-09 16:00:12 +0000 |
---|---|---|
committer | Daniel Stone <daniels@collabora.com> | 2017-02-07 19:16:34 +0000 |
commit | b43e92eee831f7cd90691119c8519fe9681c9cb5 (patch) | |
tree | be704dc697201c04a4ad35e6498fdfedb455b14e | |
parent | 4ecbe01f223a1c3e12b44e89887f248ef03ec0af (diff) |
compositor-drm: Enable planes for atomicstuff
Now that we can sensibly test proposed plane configurations with atomic,
sprites are not broken.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Differential Revision: https://phabricator.freedesktop.org/D1537
-rw-r--r-- | libweston/compositor-drm.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c index ff1c736e..091ac8d7 100644 --- a/libweston/compositor-drm.c +++ b/libweston/compositor-drm.c @@ -3086,6 +3086,17 @@ init_kms_caps(struct drm_backend *b) weston_log("DRM: %s atomic modesetting\n", b->atomic_modeset ? "supports" : "does not support"); + /* + * KMS support for hardware planes cannot properly synchronize + * without nuclear page flip. Without nuclear/atomic, hw plane + * and cursor plane updates would either tear or cause extra + * waits for vblanks which means dropping the compositor framerate + * to a fraction. For cursors, it's not so bad, so they are + * enabled. + */ + if (!b->atomic_modeset) + b->sprites_are_broken = 1; + return 0; } @@ -5020,17 +5031,6 @@ drm_backend_create(struct weston_compositor *compositor, if (b == NULL) return NULL; - /* - * KMS support for hardware planes cannot properly synchronize - * without nuclear page flip. Without nuclear/atomic, hw plane - * and cursor plane updates would either tear or cause extra - * waits for vblanks which means dropping the compositor framerate - * to a fraction. For cursors, it's not so bad, so they are - * enabled. - * - * These can be enabled again when nuclear/atomic support lands. - */ - b->sprites_are_broken = 1; b->compositor = compositor; b->use_pixman = config->use_pixman; |