Update tokens for EGL_EXT_image_dma_buf_import_modifiers

Transition the DMA-BUF import modifier tokens to the officially allocated
enum range.

To ensure a smooth transition, we need a temporary fallback to the old enum
range when the driver rejects the new tokens. We can remove this once chrome
successfully uprevs and the corresponding driver updates are made.

Extension bug:
https://cvs.khronos.org/bugzilla/show_bug.cgi?id=16036

BUG=chrome-os-partner:58718
TEST=nyan_big works with both old (2016.07.20) and new (2016.10.13) drivers

Review-Url: https://chromiumcodereview.appspot.com/2439703003
Cr-Original-Commit-Position: refs/heads/master@{#426623}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 5b61910ab1bc2bb74e082e20b2ef6ad244cb22e1
diff --git a/EGL/eglext.h b/EGL/eglext.h
index 610c9ae..dc5ee67 100644
--- a/EGL/eglext.h
+++ b/EGL/eglext.h
@@ -576,6 +576,8 @@
 #define EGL_YUV_NARROW_RANGE_EXT		0x3283
 #define EGL_YUV_CHROMA_SITING_0_EXT		0x3284
 #define EGL_YUV_CHROMA_SITING_0_5_EXT		0x3285
+// TODO(hshi): remove the old EGL_LINUX_DRM_PLANE*_MODIFIERS* tokens
+// after chrome uprevs and corresponding driver updates are complete
 #define EGL_LINUX_DRM_PLANE0_MODIFIER0_EXT	0x3286
 #define EGL_LINUX_DRM_PLANE0_MODIFIER1_EXT	0x3287
 #define EGL_LINUX_DRM_PLANE1_MODIFIER0_EXT	0x3288
@@ -584,6 +586,21 @@
 #define EGL_LINUX_DRM_PLANE2_MODIFIER1_EXT	0x328b
 #endif
 
+#ifndef EGL_EXT_image_dma_buf_import_modifiers
+#define EGL_EXT_image_dma_buf_import_modifiers
+#define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT	0x3443
+#define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT	0x3444
+#define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT	0x3445
+#define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT	0x3446
+#define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT	0x3447
+#define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT	0x3448
+#define EGL_DMA_BUF_PLANE3_FD_EXT		0x3440
+#define EGL_DMA_BUF_PLANE3_OFFSET_EXT		0x3441
+#define EGL_DMA_BUF_PLANE3_PITCH_EXT		0x3442
+#define EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT	0x3449
+#define EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT	0x344A
+#endif /* EGL_EXT_image_dma_buf_import_modifiers */
+
 #ifndef EGL_ARM_implicit_external_sync
 #define EGL_ARM_implicit_external_sync 1
 #define EGL_SYNC_PRIOR_COMMANDS_IMPLICIT_EXTERNAL_ARM 0x328A