summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-07-13 10:12:02 -0700
committerEric Anholt <[email protected]>2018-07-13 14:02:18 -0700
commitb52d79514cad56c341235a903c689cf24d6bb95f (patch)
tree7f2f497dd6902ded0906018324dd69a8b579145d
parent53aca6687445c2cb1f3e738711b1353132359769 (diff)
vc4: Tell NIR to lower fdiv instructions
This should allow us to use them in nir_lower_tex Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r--src/gallium/drivers/vc4/vc4_program.c1
1 files changed, 1 insertions, 0 deletions
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,