nir: add shader_clock intrinsic
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 7 Oct 2015 10:59:26 +0000 (11:59 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 30 Oct 2015 17:22:32 +0000 (17:22 +0000)
commit7682844f34401f1d27c9c8f80eadbcb57286e7c4
tree00b4170ba368ba0e3c0311bf9900256ca7dfe2db
parentf1d98fc90ab6f1f424b26a5d3b3ead3b8614069a
nir: add shader_clock intrinsic

v2: Add flags and inline comment/description.
v3: None of the input/outputs are variables
v4: Drop clockARB reference, relate code motion barrier comment wrt
intrinsic flag.
v5: Drop the "thus we can eliminate..." comment (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/glsl/nir/glsl_to_nir.cpp
src/glsl/nir/nir_intrinsics.h