i965/fs: Improve performance of copy/constant propagation.
authorEric Anholt <eric@anholt.net>
Fri, 21 Sep 2012 14:06:17 +0000 (16:06 +0200)
committerEric Anholt <eric@anholt.net>
Mon, 8 Oct 2012 15:50:38 +0000 (08:50 -0700)
commit6a514494fa4c45e921bd6af7f3187a67c1e8d9d2
treec3d344de6a37dab2d8e74847d8d4629687c4b087
parentfb5bf03a2092159166229eacf57c71587f762c57
i965/fs: Improve performance of copy/constant propagation.

Use a simple chaining hash table for the ACP.  This is not really very good,
because we still do a full walk of the tree per destination write, but it
still reduces fp-long-alu runtime from 5.3 to 3.9s.

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