Mesa (master): radv: Enable lowering fdiv in nir.

Bas Nieuwenhuizen bnieuwenhuizen at kemper.freedesktop.org
Sun Apr 23 18:40:26 UTC 2017


Module: Mesa
Branch: master
Commit: 18947fde7ad60859ca1e843aaacf4f5db3c72b91
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=18947fde7ad60859ca1e843aaacf4f5db3c72b91

Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date:   Sun Apr 23 01:31:05 2017 +0200

radv: Enable lowering fdiv in nir.

Results in faster code than the lowering by LLVM.

Signed-off-by: Bas Nieuwenhuizen <basni at google.com>
Reviewed-by: Dave Airlie <airlied at redhat.com>

---

 src/amd/vulkan/radv_pipeline.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 8e71d59fae..5046c9f6b3 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,




More information about the mesa-commit mailing list