radv: Enable lowering fdiv in nir.

Results in faster code than the lowering by LLVM.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Bas Nieuwenhuizen
2017-04-23 01:31:05 +02:00
parent 0012a98c0e
commit 18947fde7a

View File

@@ -50,6 +50,7 @@ static const struct nir_shader_compiler_options nir_options = {
.lower_scmp = true, .lower_scmp = true,
.lower_flrp32 = true, .lower_flrp32 = true,
.lower_fsat = true, .lower_fsat = true,
.lower_fdiv = true,
.lower_pack_snorm_2x16 = true, .lower_pack_snorm_2x16 = true,
.lower_pack_snorm_4x8 = true, .lower_pack_snorm_4x8 = true,
.lower_pack_unorm_2x16 = true, .lower_pack_unorm_2x16 = true,