i965: Scale shader_time to compensate for resets.
authorEric Anholt <eric@anholt.net>
Mon, 10 Dec 2012 17:44:19 +0000 (09:44 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 14 Dec 2012 23:05:10 +0000 (15:05 -0800)
commitf74560f3fb516971e6a7b03a2382db2f58699f59
tree45c28d454046d7d7dc9ec50f29ca39b47a95ba5a
parent338b5f887d462bbe7ef58a233cd00619e43415f0
i965: Scale shader_time to compensate for resets.

Some shaders experience resets more than others, which skews the numbers
reported.  Attempt to correct for this by linearly scaling according to
the number of resets that happen.

Note that will not be accurate if invocations of shaders have varying
times and longer invocations are more likely to reset.  However, this
should at least be better than the previous situation.
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/i965/brw_vec4.cpp