i965: Allow FS constants to be used as immediates instead of push/pull.
authorEric Anholt <eric@anholt.net>
Fri, 19 Mar 2010 19:34:53 +0000 (12:34 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 22 Mar 2010 22:04:46 +0000 (15:04 -0700)
commit4fc57322258a750c0a9cabc77372b5ccde1fa877
tree4847b7cc15466645b5b71c8f4e7fe3ffbf45da51
parent864f2bd61d2bad31b49a680a168fc6d7c04d1de1
i965: Allow FS constants to be used as immediates instead of push/pull.

The hope is to later take advantage of the reduced constant usage to
free up regs.  This only covers the GLSL path at the moment, because
the brw_wm_emit path doesn't get the information as to whether a float
value is a constant or a uniform.
src/mesa/drivers/dri/i965/brw_wm.h
src/mesa/drivers/dri/i965/brw_wm_emit.c
src/mesa/drivers/dri/i965/brw_wm_glsl.c