Mesa (master): radv: enable lower_sub to fix loop unrolling.
Dave Airlie
airlied at kemper.freedesktop.org
Tue May 2 23:04:01 UTC 2017
Module: Mesa
Branch: master
Commit: 2a2a21450bb8f552477c468ef91a59e40f881dae
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2a2a21450bb8f552477c468ef91a59e40f881dae
Author: Dave Airlie <airlied at redhat.com>
Date: Wed May 3 08:59:56 2017 +1000
radv: enable lower_sub to fix loop unrolling.
Loop unroll asserts if it hits a sub, we don't really want
to lower subs as llvm handles these things, but do this for
now, until we can fix loop unroll to work with subs.
Fixes: 14ae0bfa5 (radv: Add NIR loop unrolling)
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Signed-off-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 3a5ac427ec..f3cba198e4 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -52,6 +52,7 @@ static const struct nir_shader_compiler_options nir_options = {
.lower_flrp32 = true,
.lower_fsat = true,
.lower_fdiv = true,
+ .lower_sub = true,
.lower_pack_snorm_2x16 = true,
.lower_pack_snorm_4x8 = true,
.lower_pack_unorm_2x16 = true,
More information about the mesa-commit
mailing list