OSDN Git Service

i965/fs: Statically allocate the reg_sets at context initialization.
authorEric Anholt <eric@anholt.net>
Wed, 3 Oct 2012 02:07:20 +0000 (19:07 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 17 Oct 2012 20:02:16 +0000 (13:02 -0700)
commitbe4c0a243e3314b8d8d24107494e2537a6d198ad
tree59765ecc66ea7601e44b2b99549882da0c302d28
parent8757fa65b8f1680147e046895770b1be829c2a3a
i965/fs: Statically allocate the reg_sets at context initialization.

Now that we've replaced all the variable settings other than reg_width, it's
easy to hang on to this (the expensive part of setting up the allocator).

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