backend-drm: Define potentially missing aspect-ratio bit definitions

The aspect ratio definitions for 64:27 and 256:135 have been added with
libdrm 2.4.95. However, Weston currently depends on libdrm 2.4.89 or
higher. Define the definitions in Weston to support libdrm older than
2.4.95.

Fixes: #332
Fixes: 6093772f45 ("backend-drm: Use aspect-ratio bit definitions from libdrm")
Signed-off-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
Stefan Agner 2019-12-09 13:06:36 +01:00 committed by Pekka Paalanen
parent 0bb9447653
commit 723c6a1266

View File

@ -114,6 +114,18 @@
#define MAX_CLONED_CONNECTORS 4
#ifndef DRM_MODE_PICTURE_ASPECT_64_27
#define DRM_MODE_PICTURE_ASPECT_64_27 3
#define DRM_MODE_FLAG_PIC_AR_64_27 \
(DRM_MODE_PICTURE_ASPECT_64_27<<19)
#endif
#ifndef DRM_MODE_PICTURE_ASPECT_256_135
#define DRM_MODE_PICTURE_ASPECT_256_135 4
#define DRM_MODE_FLAG_PIC_AR_256_135 \
(DRM_MODE_PICTURE_ASPECT_256_135<<19)
#endif
/**
* Represents the values of an enum-type KMS property
*/