lima/gpir: enable lowering for ftrunc
authorVasily Khoruzhick <anarsoul@gmail.com>
Sat, 4 May 2019 14:51:27 +0000 (07:51 -0700)
committerQiang Yu <yuq825@gmail.com>
Tue, 7 May 2019 01:07:27 +0000 (01:07 +0000)
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/lima_program.c

index 21e64fb6aafcd3fed8b7a41ef0dd804c37a7cdc9..1c5057cc9f7bdc0dd7f5b6b4938f5428ef42f87f 100644 (file)
@@ -47,6 +47,7 @@ static const nir_shader_compiler_options vs_nir_options = {
    .lower_sub = true,
    .lower_flrp32 = true,
    .lower_flrp64 = true,
+   .lower_ftrunc = true,
    /* could be implemented by clamp */
    .lower_fsat = true,
    .native_integers = true,