i965/fs: Move perf_debug about register spilling to a more obvious spot.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 14 May 2014 03:41:27 +0000 (20:41 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 May 2014 06:35:18 +0000 (23:35 -0700)
commitc51163b0cf7aff0375b1a5ea4cb3da9d9e164044
tree6de73c852cc9b63734a2a097c14e5228087be664
parentdb1449b7005af190d2ef1f2ad94f96c4b29943db
i965/fs: Move perf_debug about register spilling to a more obvious spot.

The if (!allocated_without_spills) block is an obvious spot for this
performance warning message.

In the Vec4 backend, scratch is also used for indirect access of
temporary arrays.  The FS backend doesn't implement that yet, but
if it did, this message would be inaccurate, since scratch access
wouldn't necessarily mean spilling.  Moving it preemptively fixes that.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_wm.c