diff options
author | Samuel Pitoiset <[email protected]> | 2019-03-12 11:18:34 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-03-20 22:19:08 +0100 |
commit | 30c2aca67f5a1e1e2a17b79aa402ca5f75ab7cc5 (patch) | |
tree | cc1e243bb88e84018b2b15cfde21b9b10db35e3e | |
parent | da46dbb1befec57ebd386267a9765929a078f390 (diff) |
ac: use new LLVM 8 intrinsics in ac_build_buffer_load()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/amd/common/ac_llvm_build.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); |