i965/fs: Split "find what MRFs were used" to a helper function.
authorEric Anholt <eric@anholt.net>
Tue, 29 Oct 2013 19:18:10 +0000 (12:18 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 31 Oct 2013 00:50:56 +0000 (17:50 -0700)
commitb3f6690406ed6c427d0bedfd1be481ea224418e4
treead60391e9ea3a7547139b40d20c5f908be9d55e9
parent32ac5634d6c830c93dad5349418ec8db85ec6bde
i965/fs: Split "find what MRFs were used" to a helper function.

I'm going to need to reuse this for fixing register spilling on SIMD16.
Note that BRW_MAX_MRF is 16, which is the same as BRW_MAX_GRF -
GEN7_MRF_HACK_START.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp