summaryrefslogtreecommitdiff
path: root/glxinfo-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'glxinfo-wrapper')
-rwxr-xr-xglxinfo-wrapper33
1 files changed, 33 insertions, 0 deletions
diff --git a/glxinfo-wrapper b/glxinfo-wrapper
new file mode 100755
index 0000000..cb75009
--- /dev/null
+++ b/glxinfo-wrapper
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+LOG=/tmp/glxinfo.log
+echo >${LOG}
+
+glxinfo >/tmp/glxinfo-direct.log 2>&1
+LIBGL_ALWAYS_INDIRECT=1 glxinfo >/tmp/glxinfo-indirect.log 2>&1
+
+echo ================== >>${LOG}
+echo Direct GLX summary >>${LOG}
+echo ================== >>${LOG}
+
+grep -E "OpenGL [[:alpha:]]* string" /tmp/glxinfo-direct.log >>${LOG}
+grep -E "direct" /tmp/glxinfo-direct.log >>${LOG}
+
+echo ================== >>${LOG}
+echo Indirect GLX summary >>${LOG}
+echo ================== >>${LOG}
+
+grep -E "OpenGL [[:alpha:]]* string" /tmp/glxinfo-indirect.log >>${LOG}
+grep -E "direct" /tmp/glxinfo-indirect.log >>${LOG}
+
+echo ================== >>${LOG}
+echo Direct GLX details >>${LOG}
+echo ================== >>${LOG}
+
+cat /tmp/glxinfo-direct.log >>${LOG}
+
+echo ================== >>${LOG}
+echo Indirect GLX details >>${LOG}
+echo ================== >>${LOG}
+
+cat /tmp/glxinfo-indirect.log >>${LOG}