some forgotten cl test kernels
cffdump: script support

Add option to run a lua script for analysis of cmdstream dumps.  Main
use case was to assist in figuring out a4xx registers by comparing to
equivalent a3xx state.  Although it could probably be useful to write
script(s) to check for common errors in cmdstream for debugging, etc.

TODO: makefile-fu to make script support (and lua dependency) optional..
it is kinda getting to the point where it would make more sense to have
autotools for building stuff that doesn't need to run in android env
(ie. things other than test progs).
cffdump: cleanup quiet-level handling

We need to not bypass handling of register lastval's and tracking what
is written even if we are not dumping out, since script needs this.
Introduce printl() helper to help in simple cases.
cffdump: support multiple files

script and query mode are much more useful if they can be run against a
large collection of cmdstream dumps at once.
cffdump: add example/test script
cffdump: support reading compressed rd files

The cmdstream dump files tend to compress well (and otherwise take up a
lot of disk space).  It is much more convenient that cffdump can read
compressed files directly.

NOTE: limit to none and gzip compression.  Otherwise somehow it seems to
somehow mistakenly detect xz.
cffdump: split out rnnutil

Helper to deal w/ rnndec.. since we will need the same from script
environment.
cffdump: add script bindings for rnn

Might want to eventually expose a way to get at individual bitfields
too.
cffdump: add cffdump script

A bit of a work in progress, but it already helped spotting a bunch of
registers.

Probably would be useful to look for patterns at a sub-register level
(ie. look for possible bitfields).  And also maybe an option to show
(with some annotation?) registers which are a "superset match".
tests-3d: option to run tests in fresh context

Make it possible to run individual tests from new context (fresh process)..
cffdump: support multiple queries

it is useful..
cffdump: some robustness fixes

Don't run out of memory or fd's so quickly when processing large numbers
of cmdstream dumps.