i965/fs: Make emit_shader_time_write return rather than emit.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 27 Feb 2015 06:49:04 +0000 (22:49 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Mar 2015 23:07:04 +0000 (16:07 -0700)
commitbea854c7f33cc10b8292f931f114afc4f88a8dd4
tree5860e988b370c8352a25191a744f00e9acc3195d
parentf1adc45dbe649cdd4538fb96f6d2a27328bbfba1
i965/fs: Make emit_shader_time_write return rather than emit.

Instead of emit_shader_time_write, we now do emit(SHADER_TIME_ADD(...)).
The advantage is that we can also insert a shader time write at an
arbitrary location in the instruction stream, rather than being
restricted to emitting at the end.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h