glsl/nir: ftrunc for native_integers=false float to int cast
authorJonathan Marek <jonathan@marek.ca>
Mon, 12 Nov 2018 22:00:08 +0000 (17:00 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 11 Jan 2019 19:16:11 +0000 (19:16 +0000)
commitb27ad171158a89758662294072398745b2f5d623
tree52d3d1fb139a027e68667bfbeeb258f362bc96ca
parentd3b47e073e002a01261dacf11e04e37b812736e6
glsl/nir: ftrunc for native_integers=false float to int cast

out_type in the default cast case is always GLSL_TYPE_FLOAT, so we get a
mov otherwise.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/glsl/glsl_to_nir.cpp