i965/fs: Make the register allocation class_sizes[] choice static.
authorEric Anholt <eric@anholt.net>
Mon, 1 Oct 2012 23:39:54 +0000 (16:39 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 17 Oct 2012 20:01:37 +0000 (13:01 -0700)
commit5d90b988791e51cfb6413109271ad102fd7a304c
tree3ca5f56fcd9ea056dcb05ebfc978804402ffae94
parent20ebebac5153affcbd44350332678a2fb04d4c96
i965/fs: Make the register allocation class_sizes[] choice static.

Based on split_virtual_grfs(), we choose the same set every time, so set it in
stone.  This will help us avoid regenerating the somewhat expensive
class/register set setup every compile.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp