modesetting: Get supported formats/modifiers for scanout

Retrieve IN_FORMATS property from the plane. It gives the
allowed formats and modifiers for BO allocation.

Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Louis-Francis Ratté-Boulianne
2018-02-28 01:19:40 +00:00
committed by Adam Jackson
parent 9817c14f6a
commit ca1c390ec7
5 changed files with 128 additions and 4 deletions

View File

@@ -2107,6 +2107,10 @@ if test "x$GLAMOR" = xyes; then
PKG_CHECK_EXISTS(libdrm >= 2.4.74,
[AC_DEFINE(GLAMOR_HAS_DRM_NAME_FROM_FD_2, 1, [Have GLAMOR_HAS_DRM_NAME_FROM_FD_2])],
[])
PKG_CHECK_EXISTS(libdrm >= 2.4.83,
[AC_DEFINE(GLAMOR_HAS_DRM_MODIFIERS, 1, [Have GLAMOR_HAS_DRM_MODIFIERS])],
[])
fi
AM_CONDITIONAL([GLAMOR_EGL], [test "x$GBM" = xyes])