blob: cb7500911e42e334b0f4982bf22dd99b29000719 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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}
|