i965/fs: Allow copy-propagation on pull constant load values.
authorEric Anholt <eric@anholt.net>
Tue, 30 Oct 2012 21:38:41 +0000 (14:38 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 4 Nov 2012 19:15:44 +0000 (11:15 -0800)
commit545b59b62a65a9cf1121668bd407e3365bbfa296
tree653d0842f68e25f60ffb1d1761656cbbc6e06be8
parentcf26b4569a2effc59d072ffd2b2bf9b055faab43
i965/fs: Allow copy-propagation on pull constant load values.

Given that we handle similarly-regioned GRFs registers for our copy
propagation from our UNIFORM file, there's no reason not to allow it.

The shader-db impact is negligible -- +90 instructions total, 2 shaders helped
and 7 hurt (slightly increased register pressure increased spilling), but this
is to prevent regression in other shaders when fixing copy_propagation to
reduce register pressure in the shaders that are hurt here.

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