[Mesa-dev] [PATCH] vc4: Tell NIR to lower fdiv instructions

Jason Ekstrand jason at jlekstrand.net
Fri Jul 13 17:12:02 UTC 2018


This should allow us to use them in nir_lower_tex

Cc: Eric Anholt <eric at anholt.net>
---
 src/gallium/drivers/vc4/vc4_program.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c
index 367613130bb..13c3b7678b2 100644
--- a/src/gallium/drivers/vc4/vc4_program.c
+++ b/src/gallium/drivers/vc4/vc4_program.c
@@ -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,
-- 
2.17.1



More information about the mesa-dev mailing list