backend-drm: allow to disable GBM modifiers
authorStefan Agner <stefan@agner.ch>
Wed, 17 Jun 2020 21:36:44 +0000 (23:36 +0200)
committerDaniel Stone <daniels@collabora.com>
Mon, 17 Aug 2020 10:17:30 +0000 (10:17 +0000)
commit465ab2cd928eea47d8aae6d2e0acb21a87f62009
treea194a5ed0b2f087624d9da656a2815b06f412e41
parent43ebb7e25aa05955c2eb5c55db615c1839a26aeb
backend-drm: allow to disable GBM modifiers

Allow to disable GBM modifiers at runtime using the environment variable
WESTON_DISABLE_GBM_MODIFIERS.

This can be useful for debugging or when modifiers cause issues, e.g. in
case modifiers use higher memory bandwidth and hence impose a lower
resolution limit as it is the case with Intel Kaby Lake graphics.

Related to: https://gitlab.freedesktop.org/wayland/weston/-/issues/404
Signed-off-by: Stefan Agner <stefan@agner.ch>
libweston/backend-drm/drm-internal.h
libweston/backend-drm/drm.c
libweston/backend-drm/kms.c