i965/fs: allow unit tests to dump the final patched assembly
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 11 Dec 2013 08:58:38 +0000 (10:58 +0200)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Thu, 23 Jan 2014 06:45:57 +0000 (08:45 +0200)
commit85fc724df5403ffb7d8eac071962824d9303d24f
treeb3b6683dbb39eddb93d659c5dc1e041dc06a298d
parent757b4cf011ac832895ad2ee470587d26f3e4c6d3
i965/fs: allow unit tests to dump the final patched assembly

Unit tests comparing generated blorp programs to known good need
to have the dump in designated file instead of in default
standard output. The comparison also expects the jump counters
of if-else-instructions to be correctly set and hence the dump
needs to be taken _after_ 'patch_IF_ELSE()' is run (the default
dump of the fs_generator does this before).

v2 (Paul): dropped the redundant 'dump_enabled' argument

Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_generator.cpp