From 479e4b1b9c174d039baf34bdde953ee1d1da2459 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 12 Feb 2009 18:55:05 -0500 Subject: [PATCH] Updated counts.sh to give only mismatched counts. --- counts.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/counts.sh b/counts.sh index f3343e2a..ba669933 100755 --- a/counts.sh +++ b/counts.sh @@ -1,9 +1,13 @@ #!/bin/sh -for feh in ??_?_?/*.bytecode ; do - echo -n "$feh " - echo -n `./testparse glsl $feh |grep "INSTRUCTION COUNT: " |perl -w -p -e 's/\AINSTRUCTION COUNT://;'` - echo -n " vs. " - grep "instruction slots used" `echo $feh |perl -w -p -e 's/bytecode\Z/disasm/;'` |perl -w -p -e 's#\A// approximately (\d+) instruction slots used .*?\Z#$1#;' +# !!! 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 done