glsl: Add "built-in" functions to do 64/64 => 64 division
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 18 Oct 2016 00:54:40 +0000 (17:54 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 20 Jan 2017 23:41:23 +0000 (15:41 -0800)
commit012f2995c307a83212a88ff18e13bf7be006cd77
treec593bbbb7d840cf6c87d410ec9886c54902f6ecf
parent50d52df278c547ffd53505a3ebf98f13cba5bd56
glsl: Add "built-in" functions to do 64/64 => 64 division

These functions are directly available in shaders.  A #define is added
to detect the presence.  This allows these functions to be tested using
piglit regardless of whether the driver uses them for lowering.  The
GLSL spec says that functions and macros beginning with __ are reserved
for use by the implementation... hey, that's us!

v2: Use function inlining.

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