i965/fs: Factor out the register allocator setup to a separate function.
authorEric Anholt <eric@anholt.net>
Mon, 9 May 2011 16:56:18 +0000 (09:56 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 10 Aug 2011 18:03:48 +0000 (11:03 -0700)
commitb1f0bffd399f377a19b0541e1d834afad8b9dad0
tree283ec5a042ed36a61f5e7e0dc1cb783f73924a12
parent4e10d5825b31d2c58c0af3e29b7fc2eacb2b4709
i965/fs: Factor out the register allocator setup to a separate function.

Besides separating out a logical step of the giant register allocator
function, this now communicates a bunch of the allocator information
through entries in brw_context, which will make this code partially
reusable for caching the expensive allocator setup.
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp