diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-04-23 01:31:05 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-04-23 20:38:06 +0200 |
commit | 18947fde7ad60859ca1e843aaacf4f5db3c72b91 (patch) | |
tree | e4245bc1e34a98086e50131e0bb250f18579d4d3 /src/amd | |
parent | 0012a98c0eed9e9641bdb09908e914cf1ae25f8a (diff) |
radv: Enable lowering fdiv in nir.
Results in faster code than the lowering by LLVM.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 8e71d59fae7..5046c9f6b36 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -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, |