i965/vec4: Move total_scratch calculation into the visitor.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 29 Jun 2015 03:55:25 +0000 (20:55 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 10 Jul 2015 00:06:27 +0000 (17:06 -0700)
commit8524deb8c8fc37abc2cb2717be64a533746a92f9
tree117f1e3cd037b01d4f23fb97de7cdebae5bbc554
parentdc776ffb900b21421158ef8efbd675bdd47593bc
i965/vec4: Move total_scratch calculation into the visitor.

This is more consistent with how we do it in the FS backend, and reduces
a tiny bit of duplication.  It'll also allow for a bit more tidying.

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