i965/fs: Improve live variables calculation performance.
authorEric Anholt <eric@anholt.net>
Tue, 19 Feb 2013 22:36:06 +0000 (14:36 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 11 Mar 2013 19:11:54 +0000 (12:11 -0700)
commitf179f419d1d0a03fad36c2b0a58e8b853bae6118
treeecbb1cd461996b93e37fc85c7e1bb35c37e3d266
parent4dc7e6dcbf0d9c360e257c704774c9b083511b47
i965/fs: Improve live variables calculation performance.

We can execute way fewer instructions by doing our boolean manipulation
on an "int" of bits at a time, while also reducing our working set size.

Reduces compile time of L4D2's slowest shader from 4s to 1.1s
(-72.4% +/- 0.2%, n=10)

v2: Remove redundant masking (noted by Ken)

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