radv: Enable lowering fdiv in nir.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 22 Apr 2017 23:31:05 +0000 (01:31 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 23 Apr 2017 18:38:06 +0000 (20:38 +0200)
Results in faster code than the lowering by LLVM.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_pipeline.c

index 8e71d59fae7f2ed1f3a49e9c06490cd453b3cb66..5046c9f6b3613cadc60cacf9e3d40ce3717568df 100644 (file)
@@ -50,6 +50,7 @@ static const struct nir_shader_compiler_options nir_options = {
        .lower_scmp = true,
        .lower_flrp32 = true,
        .lower_fsat = true,
+       .lower_fdiv = true,
        .lower_pack_snorm_2x16 = true,
        .lower_pack_snorm_4x8 = true,
        .lower_pack_unorm_2x16 = true,