i965/vs: Allocate register set once at context creation.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 21 Aug 2013 23:27:11 +0000 (16:27 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 26 Aug 2013 18:21:10 +0000 (11:21 -0700)
commitd65e3c082a02bd2e838d34b2ee9b87d36f6a2d25
treeb8eb5bb53a120c4ec9f8f398997f248fa57402e8
parenta149f744d9dfc116860c04ce30256f7bed96e323
i965/vs: Allocate register set once at context creation.

Now that we use a fixed set of register classes, we can set up the
register set and conflict graphs once, at context creation, rather than
on every VS compile.  This is obviously less expensive, and also what
we already do in the FS backend.

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