CHROMIUM: drm_fourcc.h: Add back VENDOR_NV name
Upstream libdrm commit ab5aaf6c8eb93462c15007e9b54f4447c1ea8148 renames
DRM_FORMAT_MOD_VENDOR_NV to DRM_FORMAT_MOD_VENDOR_NVIDIA. The old name
is used in downstream packages like minigbm, so add it back as an alias
for the new name.
BUG=b:80474314
TEST=build_packages --board=nyan_big
Change-Id: I5892b6485a87837ba221a9087d5caba44cee8b62
Signed-off-by: Benjamin Gordon <bmgordon@chromium.org>
diff --git a/include/drm/drm_fourcc.h b/include/drm/drm_fourcc.h
index 4b146d7..5a3f0c7 100644
--- a/include/drm/drm_fourcc.h
+++ b/include/drm/drm_fourcc.h
@@ -187,6 +187,9 @@
#define DRM_FORMAT_MOD_VENDOR_BROADCOM 0x07
/* add more to the end as needed */
+/* For backwards compatibility prior to 2.4.92. */
+#define DRM_FORMAT_MOD_VENDOR_NV DRM_FORMAT_MOD_VENDOR_NVIDIA
+
#define DRM_FORMAT_RESERVED ((1ULL << 56) - 1)
/* Vendor ID for downstream, interim ChromeOS specific modifiers. */