v3d: Sync indirect draws on the last rendering.
[mesa.git] / src / egl / main / egldefines.h
index 4c9e014fcea911f5062843690cc2f48bf0180d50..c925e0ca55338f73dbec613b0eff25bed0b1b296 100644 (file)
 #ifndef EGLDEFINES_INCLUDED
 #define EGLDEFINES_INCLUDED
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #define _EGL_MAX_EXTENSIONS_LEN 1000
 
-#define _EGL_VENDOR_STRING "Mesa Project"
+/* Hardcoded, conservative default for EGL_LARGEST_PBUFFER,
+ * this is used to implement EGL_LARGEST_PBUFFER.
+ */
+#define _EGL_MAX_PBUFFER_WIDTH 4096
+#define _EGL_MAX_PBUFFER_HEIGHT 4096
 
-#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
+#define _EGL_VENDOR_STRING "Mesa Project"
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* EGLDEFINES_INCLUDED */