diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2014-06-11 13:22:39 +0100 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2014-06-14 13:58:00 +0100 |
commit | 163738c1eccdb51a3e08c896853a080552a2f689 (patch) | |
tree | dfa5bbdb399c66b1a4ecaee735f5abfde91210ab |
Initial commit
-rwxr-xr-x | glxinfo-wrapper | 33 | ||||
-rwxr-xr-x | glxinfo.sh | 9 |
2 files changed, 42 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} diff --git a/glxinfo.sh b/glxinfo.sh new file mode 100755 index 0000000..4d6a408 --- /dev/null +++ b/glxinfo.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# start xserver and run glxinfo against it, capturing output to /tmp/glxinfo.log +echo >/tmp/glxinfo.log +xinit `pwd`/glxinfo-wrapper -- :99 -multiwindow -noclipboard >/tmp/xinit.log 2>&1 +cat /tmp/glxinfo.log + +# simple test that this worked as expected +#grep -q "direct rendering: Yes" /tmp/glxinfo.log && grep -q "direct rendering: No" /tmp/glxinfo.log |