lima/ppir: lower ffma in ppir
authorAndreas Baierl <ichgeh@imkreisrum.de>
Mon, 17 Jun 2019 15:16:24 +0000 (17:16 +0200)
committerQiang Yu <yuq825@gmail.com>
Mon, 24 Jun 2019 11:57:57 +0000 (11:57 +0000)
Since we cannot handle ffma in ppir, lower it on nir level already.

Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
src/gallium/drivers/lima/lima_program.c

index 3247892c77340cc48acfe791922b59a69cf7ab2c..7adc3ba0a71b60025823d2be8d7584d445a62b42 100644 (file)
@@ -55,6 +55,7 @@ static const nir_shader_compiler_options vs_nir_options = {
 };
 
 static const nir_shader_compiler_options fs_nir_options = {
+   .lower_ffma = true,
    .lower_fpow = true,
    .lower_fdiv = true,
    .lower_fmod = true,