compiler: Add lowering support for 64-bit saturate operations to software
authorAnuj Phogat <anuj.phogat@gmail.com>
Fri, 10 May 2019 20:22:31 +0000 (13:22 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Wed, 15 May 2019 23:30:30 +0000 (23:30 +0000)
commita42163cbbc1abe02b7db4ade74b569f455942d1a
treee7e2f6eb4ab9094a8985314f1d2d42772ab446d4
parentd305409db51b998f99330ebd27044758ef207abf
compiler: Add lowering support for 64-bit saturate operations to software

Fixes 7 Khronos GL CTS tests:
KHR-GL45.gpu_shader_fp64.builtin.smoothstep_dvec{double, 2, 3, 4}
KHR-GL45.gpu_shader_fp64.builtin.smoothstep_against_scalar_dvec{2, 3, 4}

Suggested-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/glsl/float64.glsl
src/compiler/nir/nir_lower_double_ops.c