diff options
author | Marek Olšák <[email protected]> | 2019-05-31 15:38:39 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-06-03 14:32:47 -0400 |
commit | 486bc1e17ecc975f98fb495bd2f8ae580eebbf6e (patch) | |
tree | d2d58d3caf48f05aa55a82145923980c0f8e6edb /src/amd/vulkan | |
parent | 4b11ed443b85e4fcddc5d0ef60dec096ecdb951e (diff) |
ac: use amdgpu-flat-work-group-size
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_nir_to_llvm.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index dca4bebcdd1..98a04e27b25 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -518,11 +518,8 @@ create_llvm_function(LLVMContextRef ctx, LLVMModuleRef module, options->address32_hi); } - if (max_workgroup_size) { - ac_llvm_add_target_dep_function_attr(main_function, - "amdgpu-max-work-group-size", - max_workgroup_size); - } + ac_llvm_set_workgroup_size(main_function, max_workgroup_size); + if (options->unsafe_math) { /* These were copied from some LLVM test. */ LLVMAddTargetDependentFunctionAttr(main_function, |