aco: use nir_lower_idiv_precise
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 18 Sep 2019 19:45:05 +0000 (20:45 +0100)
committerRhys Perry <pendingchaos02@gmail.com>
Mon, 21 Oct 2019 18:49:46 +0000 (18:49 +0000)
v7: rename _nv50/_llvm to _fast/_precise

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
src/amd/compiler/aco_instruction_selection_setup.cpp

index fa457e2e246b03250d83bbb06c5de2e26c19fd5c..9727020a8a929e0c8e0b411c071de1f0579645d5 100644 (file)
@@ -1328,7 +1328,7 @@ setup_isel_context(Program* program,
                                                       nir_lower_iabs64));
 
       nir_opt_idiv_const(nir, 32);
-      nir_lower_idiv(nir, nir_lower_idiv_fast); // TODO: use the LLVM path once !1239 is merged
+      nir_lower_idiv(nir, nir_lower_idiv_precise);
 
       /* optimize the lowered ALU operations */
       nir_copy_prop(nir);