i965/fs: Fix broken register spilling debug code.
authorEric Anholt <eric@anholt.net>
Wed, 16 Oct 2013 19:02:41 +0000 (12:02 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 31 Oct 2013 00:50:59 +0000 (17:50 -0700)
commit44ec2f1751ec4a9f0ba9035f2343ffe5e16e693c
treede9b03c48cd2f15759a31df79499261581a3d188
parentb3f6690406ed6c427d0bedfd1be481ea224418e4
i965/fs: Fix broken register spilling debug code.

Now that reg spilling generates new vgrfs, we were looping forever if you
ever turned it on.

Instead, move the debug code into the register allocator right near where
we'd be doing spilling anyway, which should more accurately reflect how
register spilling occurs in the wild.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp