i965/vec4: Move perf_debug about register spilling into the visitor.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 29 Jun 2015 03:45:47 +0000 (20:45 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 10 Jul 2015 00:06:26 +0000 (17:06 -0700)
commitdc776ffb900b21421158ef8efbd675bdd47593bc
treee6c248ce1aef9b1db3b6ae927e7076472573c6fc
parent0163c99e8f6959b5d6c7a937a322127cfdf9315f
i965/vec4: Move perf_debug about register spilling into the visitor.

This patch makes us only issue the performance warning about register
spilling if we actually spilled registers.  We also use scratch space
for indirect addressing and the like.

This is basically commit c51163b0cf7aff0375b1a5ea4cb3da9d9e164044 for
the vec4 backend.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_gs.c
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vs.c