glsl/ast: Add 64-bit integer support to conversion functions
authorDave Airlie <airlied@redhat.com>
Thu, 9 Jun 2016 00:01:00 +0000 (10:01 +1000)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 20 Jan 2017 23:41:23 +0000 (15:41 -0800)
commit78cc44280e3faeded8eea7face614e13d28481f0
tree184345721e2f88812069fcf94801250b6a214b05
parent85faf5082f06ed5828c6d97bb11dd2292ad0f86a
glsl/ast: Add 64-bit integer support to conversion functions

This adds support to call the new operations on conversions.

v2 (idr): Delete an unnecessary break-statement.  Noticed by Matt.  Add
a missing blank line.  Noticed by Ian.

v3 (idr): "cut them down later" => Remove ir_unop_b2u64 and
ir_unop_u642b.  Handle these with extra i2u or u2i casts just like
uint(bool) and bool(uint) conversion is done.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> [v1]
Reviewed-by: Matt Turner <mattst88@gmail.com> [v2]
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/compiler/glsl/ast_function.cpp
src/compiler/glsl/ast_to_hir.cpp