summaryrefslogtreecommitdiff
path: root/glxinfo-wrapper
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2014-06-11 13:22:39 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2014-06-14 13:58:00 +0100
commit163738c1eccdb51a3e08c896853a080552a2f689 (patch)
treedfa5bbdb399c66b1a4ecaee735f5abfde91210ab /glxinfo-wrapper
Initial commit
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}