Skip to content

Latest commit

 

History

History
executable file
·
13 lines (10 loc) · 510 Bytes

counts.sh

File metadata and controls

executable file
·
13 lines (10 loc) · 510 Bytes
 
Feb 12, 2009
Feb 12, 2009
3
4
5
6
7
8
9
10
11
# !!! FIXME: use this to correct our estimates some day.
for feh in shaders/??_?_?/*.bytecode ; do
DISASM=`echo $feh |perl -w -p -e 's/bytecode\Z/disasm/;'`
MINE=`./cmake-build/testparse glsl $feh |grep "INSTRUCTION COUNT: " |perl -w -p -e 's/\AINSTRUCTION COUNT: //;'`
THEIRS=`grep "instruction slots used" $DISASM |perl -w -p -e 's#\A// approximately (\d+) instruction slots used .*?\Z#$1#;'`
if [ "x$MINE" != "x$THEIRS" ]; then
echo "$feh $MINE vs. $THEIRS"
fi