i965/fs: Move payload register info from brw_wm_compile to fs_visitor.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 14 May 2014 04:52:51 +0000 (21:52 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 May 2014 06:35:19 +0000 (23:35 -0700)
commit8ef78828fadb0f35b07be93492b3d7c297bb9ffd
tree1b6dc593a60db2a95f819038b36c8973659a99bd
parentc76e6db05f9256711a226de8562124a5f14aae2d
i965/fs: Move payload register info from brw_wm_compile to fs_visitor.

This data is created by fs_visitor and only used when emitting code,
so keeping it in fs_visitor makes sense.  I decided it would be
reasonable to group these all together in a struct, since they're
highly related.

v2: s/nr_payload_regs/payload.num_regs/ in some comments (chrisf).

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_fs.h
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_wm.h
src/mesa/drivers/dri/i965/brw_wm_iz.cpp