i965: Implement nir_intrinsic_shader_clock
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 7 Oct 2015 10:50:01 +0000 (11:50 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 30 Oct 2015 17:22:40 +0000 (17:22 +0000)
commit4379ca22f18f5731248ee794ab651db721ba38b2
tree368f0c50f265603b973292c2c87203d3fc0f350d
parent6a15517242214c739bfdd8b6a480ecca81e776d6
i965: Implement nir_intrinsic_shader_clock

v2:
 - Add a few const qualifiers for good measure.
 - Drop unneeded retype()s (Matt)
 - Convert timestamp to SIMD8/16, as fs_visitor::get_timestamp() returns
SIMD4 (Connor)

v3:
 - Remove unneeded temporary + MOV (Connor)

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp