Tested with Hellblade and LLVM 6, 7 and master, no hangs so far.
Maybe some NIR changes fixed the issue as a side effect.

This should reduce code size a little bit.

Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
---
 src/amd/vulkan/radv_shader.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index 3e3eb96a53..12019e96cd 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -520,9 +520,8 @@ static void radv_init_llvm_target()
         *
         * "mesa" is the prefix for error messages.
         */
-       const char *argv[3] = { "mesa", "-simplifycfg-sink-common=false",
-                               "-amdgpu-skip-threshold=1" };
-       LLVMParseCommandLineOptions(3, argv, NULL);
+       const char *argv[2] = { "mesa", "-simplifycfg-sink-common=false" };
+       LLVMParseCommandLineOptions(2, argv, NULL);
 }
 
 static once_flag radv_init_llvm_target_once_flag = ONCE_FLAG_INIT;
-- 
2.19.1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to