aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/native/make-drm_gbm_egl_test01.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-11-28 02:06:09 +0100
committerSven Gothel <[email protected]>2019-11-28 02:06:09 +0100
commitd7469d4fcbc6d92a696b90b52a75a233d4a30e5c (patch)
treeb3873f1daf7e24b20290f76bdb6d22a1124e3336 /src/newt/native/make-drm_gbm_egl_test01.sh
parent3e19c2267500c0c459e7dce8d2087387a56f3296 (diff)
Bug 1402: Standalone native test attempting to reproduce issue
Mesa 18.3.6 issues mixing EGL_DEFAULT_DISPLAY and GBM device on EGL_PLATFORM_GBM_KHR Interestingly, the issue is no more reproducible. Weird. However, it is advised to use a real GBM device handle for EGL display creation under EGL_PLATFORM_GBM_KHR.
Diffstat (limited to 'src/newt/native/make-drm_gbm_egl_test01.sh')
-rw-r--r--src/newt/native/make-drm_gbm_egl_test01.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/newt/native/make-drm_gbm_egl_test01.sh b/src/newt/native/make-drm_gbm_egl_test01.sh
new file mode 100644
index 000000000..3669ff970
--- /dev/null
+++ b/src/newt/native/make-drm_gbm_egl_test01.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+rm -f drm_gbm_egl_test01
+
+# if defined(USE_EGL_DEFAULT_DISPLAY) && !defined(USE_SURFACELESS) -> ERROR
+# -DUSE_SURFACELESS \
+# -DUSE_EGL_DEFAULT_DISPLAY \
+#
+
+gcc \
+ -DUSE_SURFACELESS \
+ -I/usr/lib/jvm/java-11-openjdk-amd64/include/ \
+ -I/usr/lib/jvm/java-11-openjdk-amd64/include/linux/ \
+ -o drm_gbm_egl_test01 \
+ drm_gbm_egl_test01.c \
+ `pkg-config --cflags --libs libdrm` -lgbm -lEGL -lGLESv2
+