From: Samuel Pitoiset Date: Tue, 12 Mar 2019 10:18:34 +0000 (+0100) Subject: ac: use new LLVM 8 intrinsics in ac_build_buffer_load() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30c2aca67f5a1e1e2a17b79aa402ca5f75ab7cc5;p=mesa.git ac: use new LLVM 8 intrinsics in ac_build_buffer_load() Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index 2dacb67eede..98f016ad059 100644 --- a/src/amd/common/ac_llvm_build.c +++ b/src/amd/common/ac_llvm_build.c @@ -1412,6 +1412,14 @@ ac_build_buffer_load(struct ac_llvm_context *ctx, return ac_build_gather_values(ctx, result, num_channels); } + if (HAVE_LLVM >= 0x0800) { + return ac_build_llvm8_buffer_load_common(ctx, rsrc, vindex, + offset, ctx->i32_0, + num_channels, glc, slc, + can_speculate, false, + false); + } + return ac_build_buffer_load_common(ctx, rsrc, vindex, offset, num_channels, glc, slc, can_speculate, false);