nir: improvements to native_integers removal
authorJonathan Marek <jonathan@marek.ca>
Wed, 8 May 2019 20:22:45 +0000 (16:22 -0400)
committerJonathan Marek <jonathan@marek.ca>
Fri, 31 May 2019 21:35:26 +0000 (21:35 +0000)
commit6016df211fdd6f1846255ea55d272e1f36881357
tree1086ed217fb417828b6770e0900d0af108e7de41
parent32131a95680b5cb990e59b2512894a46bc7b0431
nir: improvements to native_integers removal

Improvements related to the patch that removed native_integers:
 * In glsl_to_nir, special cases for i2f,u2f,etc are no longer needed
 * In prog_to_nir, use sge/slt and let lower_scmp lower it if needed

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