i965/vs: Move base_reg_count computation to brw_alloc_reg_set().
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 22 Aug 2013 05:06:15 +0000 (22:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 26 Aug 2013 18:21:10 +0000 (11:21 -0700)
commita149f744d9dfc116860c04ce30256f7bed96e323
tree206384ba9848681d0880e4cf63feea6c6f458737
parent7aaaa8bc8fb851a4783292a5e1ffdfeda2451dae
i965/vs: Move base_reg_count computation to brw_alloc_reg_set().

We're soon going to be calling brw_alloc_reg_set() from outside of the
visitor, where we don't have the precomputed "max_grf" variable handy.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp