Commit 197d298a authored by Jun Zhao's avatar Jun Zhao Committed by Mark Thompson

hwcontext_vaapi: Fix build failure with old libdrm

Signed-off-by: 's avatarJun Zhao <jun.zhao@intel.com>
Signed-off-by: 's avatarMark Thompson <sw@jkqxz.net>
parent 46256818
...@@ -918,9 +918,11 @@ static const struct { ...@@ -918,9 +918,11 @@ static const struct {
int nb_layer_formats; int nb_layer_formats;
uint32_t layer_formats[AV_DRM_MAX_PLANES]; uint32_t layer_formats[AV_DRM_MAX_PLANES];
} vaapi_drm_format_map[] = { } vaapi_drm_format_map[] = {
#ifdef DRM_FORMAT_R8
DRM_MAP(NV12, 2, DRM_FORMAT_R8, DRM_FORMAT_RG88), DRM_MAP(NV12, 2, DRM_FORMAT_R8, DRM_FORMAT_RG88),
#endif
DRM_MAP(NV12, 1, DRM_FORMAT_NV12), DRM_MAP(NV12, 1, DRM_FORMAT_NV12),
#ifdef VA_FOURCC_P010 #if defined(VA_FOURCC_P010) && defined(DRM_FORMAT_R16)
DRM_MAP(P010, 2, DRM_FORMAT_R16, DRM_FORMAT_RG1616), DRM_MAP(P010, 2, DRM_FORMAT_R16, DRM_FORMAT_RG1616),
#endif #endif
DRM_MAP(BGRA, 1, DRM_FORMAT_BGRA8888), DRM_MAP(BGRA, 1, DRM_FORMAT_BGRA8888),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment