vc4: Tell NIR to lower fdiv instructions
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 13 Jul 2018 17:12:02 +0000 (10:12 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 13 Jul 2018 21:02:18 +0000 (14:02 -0700)
This should allow us to use them in nir_lower_tex

Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/vc4/vc4_program.c

index 367613130bb68e7134d612ec854510b37f23faa8..13c3b7678b2ae2888c974691b2662d352bc89e7c 100644 (file)
@@ -2214,6 +2214,7 @@ static const nir_shader_compiler_options nir_options = {
         .lower_all_io_to_temps = true,
         .lower_extract_byte = true,
         .lower_extract_word = true,
+        .lower_fdiv = true,
         .lower_ffma = true,
         .lower_flrp32 = true,
         .lower_fpow = true,