ac: fix incorrect argument type for tbuffer.{load,store} with LLVM 7
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 21 Mar 2019 11:42:44 +0000 (12:42 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 21 Mar 2019 13:02:00 +0000 (14:02 +0100)
commit00327f827fcba59f52a6524d581bad6e257faa80
tree7a8cb41f00e469703deeb2557c5b8cb8a16ee222
parent20cac1f498964ddc02717cf0b340f4a090c1d354
ac: fix incorrect argument type for tbuffer.{load,store} with LLVM 7

GLC/SLC are boolean.

This fixes the following LLVM error when checkir is set:
Intrinsic has incorrect argument type!
void (i32, <4 x i32>, i32, i32, i32, i32, i32, i32, i32, i32)* @llvm.amdgcn.tbuffer.store.i32

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl
src/amd/common/ac_llvm_build.c