i965/fs: Make get_timestamp() pass back the MOV rather than emitting it.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 27 Feb 2015 07:51:27 +0000 (23:51 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Mar 2015 23:07:04 +0000 (16:07 -0700)
commite43af8d09f919d02b5ac0810c1c0f1783cbef6ef
tree566c2a30a1a300eb3deac2d2aac141ce639243b0
parentbea854c7f33cc10b8292f931f114afc4f88a8dd4
i965/fs: Make get_timestamp() pass back the MOV rather than emitting it.

This makes another part of the INTEL_DEBUG=shader_time code emittable
at arbitrary locations, rather than just at the end of the instruction
stream.

v2: Don't lose smear!  Caught by Topi Pohjolainen.
v3: Don't set smear on the destination of the MOV.  Thanks Topi!

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
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