i965/fs: Move total_scratch calculation into fs_visitor::run().
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 14 May 2014 03:51:32 +0000 (20:51 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 May 2014 06:35:18 +0000 (23:35 -0700)
commit7e28bd797dbe1721e5d97916f041493d1f30220d
tree27ce489279574328cc8f41a0391951e942db05f1
parentc51163b0cf7aff0375b1a5ea4cb3da9d9e164044
i965/fs: Move total_scratch calculation into fs_visitor::run().

With this one use gone, c->last_scratch is now only used inside
fs_visitor.  The rest of the driver uses prog_data->total_scratch.

We already compute similar prog_data fields in fs_visitor, so this
seems reasonable.

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