glsl: Add interaction between ARB_gpu_shader_int64 and ARB_shader_clock
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 2 Sep 2016 15:54:48 +0000 (08:54 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 20 Jan 2017 23:41:23 +0000 (15:41 -0800)
commit0d14fec345025567546979160217bb5278836132
treef9d8d02991e128da80b431697e8eea2b7d75270b
parentbfc4080d38090e48253cc89ee09afbb602997114
glsl: Add interaction between ARB_gpu_shader_int64 and ARB_shader_clock

If ARB_gpu_shader_int64 is supported, ARB_shader_clock also adds
clockARB() that returns a uint64_t.  Rather than add new opcodes and
intrinsics for this, just wrap the existing intrinsic with a
packUint2x32.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/glsl/builtin_functions.cpp