diff options
author | Dave Airlie <[email protected]> | 2017-05-03 08:59:56 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-05-03 09:03:43 +1000 |
commit | 2a2a21450bb8f552477c468ef91a59e40f881dae (patch) | |
tree | 43fcb45b7bde93d0c0d3f75b5aac18f5eb5a3850 /src/amd/vulkan | |
parent | 9e847eedd5e71fa102003326a3e04e485884fe24 (diff) |
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 <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-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 3a5ac427ec9..f3cba198e46 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, |