Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated counts.sh to give only mismatched counts.
- Loading branch information
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|