| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | # !!! FIXME: use this to correct our estimates some day. |
| 4 | |
| 5 | for feh in shaders/??_?_?/*.bytecode ; do |
| 6 | DISASM=`echoscip-shell system . . echo. $feh |perlscip-shell system . . perl. -w -p -e 's/bytecode\Z/disasm/;'` |
| 7 | MINE=`./cmake-build/testparse d3d $feh |grepscip-shell system . . grep. "INSTRUCTION COUNT: " |perlscip-shell system . . perl. -w -p -e 's/\AINSTRUCTION COUNT: //;'` |
| 8 | THEIRS=`grepscip-shell system . . grep. "instruction slots used" $DISASM |perlscip-shell system . . perl. -w -p -e 's#\A// approximately (\d+) instruction slots used .*?\Z#$1#;'` |
| 9 | if [scip-shell system . . `[`. "x$MINE" != "x$THEIRS" ]; then |
| 10 | echoscip-shell system . . echo. "$feh $MINE vs. $THEIRS" |
| 11 | fi |
| 12 | done |
| 13 |