i965/fs: Add empirically-determined instruction latencies for gen7.
authorEric Anholt <eric@anholt.net>
Thu, 6 Dec 2012 00:19:43 +0000 (16:19 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 14 Dec 2012 23:18:22 +0000 (15:18 -0800)
commit2cae9f2d4a57dc9cca934b489df43f0ec4eb98bc
tree5408b3b63efbde631a21025816275833f8d2aaab
parent4df1e18864dc6b7830bb3c7998889883fe8dae2b
i965/fs: Add empirically-determined instruction latencies for gen7.

v2: Actually switch on the other math instructions mentioned in the
    comment.
v3: Add timing data for textureSize(), and clean up some long comment
    lines.

Testing shader_time of fs16 shaders on a few frames of various apps:
nexuiz improved by 2.9% +/- 1.5% (n=10)
no difference on GLB2.5 (n=36, outliers removed)
no difference on GLB2.7 (n=25)
etqw improved by 2.6% +/- 2.2% (n=25)
no difference on lightsmark (n=25)

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