i965: rework GLSL/WM register allocation
authorBrian Paul <brianp@vmware.com>
Fri, 24 Apr 2009 22:33:46 +0000 (16:33 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 24 Apr 2009 22:33:46 +0000 (16:33 -0600)
commitb58b3a786aa38dcc9d72144c2cc691151e46e3d5
treed328be09724ef0d95a0aa408f68a3ddcc16bbe05
parent7da3f9403b235394a5c7e9456e34a0c9dad7dd15
i965: rework GLSL/WM register allocation

Use a bitvector of used/free flags.

If we run out of temps, examine the live intervals of the temp regs in
the program and free those which are no longer alive.

Also, enable the new WM const buffer code.
src/mesa/drivers/dri/i965/brw_wm.h
src/mesa/drivers/dri/i965/brw_wm_glsl.c