compositor-drm: Add an environmental variable to force RENDER-only mode of compositing

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2019-01-25 12:56:24 +02:00
parent c91cf30154
commit be57857af6
1 changed files with 1 additions and 1 deletions

View File

@ -4127,7 +4127,7 @@ init_kms_caps(struct drm_backend *b)
* to a fraction. For cursors, it's not so bad, so they are
* enabled.
*/
if (!b->atomic_modeset)
if (!b->atomic_modeset || getenv("WESTON_FORCE_RENDERER"))
b->sprites_are_broken = 1;
ret = drmSetClientCap(b->drm.fd, DRM_CLIENT_CAP_ASPECT_RATIO, 1);