i965/fs: Make compact_virtual_grfs an optimization pass
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 16 Sep 2014 20:14:09 +0000 (13:14 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Sep 2014 17:29:13 +0000 (10:29 -0700)
commit2af4b0aeaff53190b0e17a971119d1b77ddad25b
tree2e485d221462dbcf949a9dab5df91c296a6ad882
parenta25db10c1248d70cf7f4097833fa03fdccd98fe8
i965/fs: Make compact_virtual_grfs an optimization pass

Previously we disabled compact_virtual_grfs when dumping optimizations.
The idea here was to make it easier to diff the dumped shader because you
didn't have a sudden renaming.  However, sometimes a bug is affected by
compact_virtual_grfs and, when this happens, you want to keep dumping
instructions with compact_virtual_grfs enabled.  By turning it into an
optimization pass and dumping it along with the others, we retain the
ability to diff because you can just diff against the compact_virtual_grf
output.

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h