nir: add support for 64-bit in SmoothStep function
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Thu, 8 Jun 2017 11:03:42 +0000 (11:03 +0000)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Tue, 27 Jun 2017 10:01:11 +0000 (12:01 +0200)
commitb5ae17fe59b5f303f2aa42608474ad37ffdf3971
tree6b034f0fd9128449892a7effc915b24eb6f48be6
parent4195a9450bde927256063da47488aafbd86bfffe
nir: add support for 64-bit in SmoothStep function

According to GLSL.std.450 spec, SmoothStep expects input to be a
floating-point type, but it does not restrict the bitsize.

Current implementation relies on inputs to be 32-bit.

This commit extends the support to 64-bit size inputs.

Reviewed by: Elie Tournier <elie.tournier@collabora.com>
src/compiler/spirv/vtn_glsl450.c