From 30c2aca67f5a1e1e2a17b79aa402ca5f75ab7cc5 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 12 Mar 2019 11:18:34 +0100 Subject: [PATCH] ac: use new LLVM 8 intrinsics in ac_build_buffer_load() Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/common/ac_llvm_build.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- 2.30.2