aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2019-05-27 16:16:39 +0200
committerMarek Olšák <[email protected]>2019-07-03 15:51:13 -0400
commit76898a806297c7e7ac2ed4b4729cb89ea3909e93 (patch)
tree3c94450a9571536d6cec02995674d2a535af9e7c /src/amd
parent7f715790641fef2c54d979dd84e92d8236bddebb (diff)
amd/common/gfx10: set DLC for llvm.amdgcn.s.buffer.load
Acked-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/common/ac_llvm_build.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c
index 5089463e2db..eb71a69eebd 100644
--- a/src/amd/common/ac_llvm_build.c
+++ b/src/amd/common/ac_llvm_build.c
@@ -1413,12 +1413,10 @@ ac_build_buffer_load(struct ac_llvm_context *ctx,
HAVE_LLVM >= 0x0800 ? "llvm.amdgcn.s.buffer.load.f32"
: "llvm.SI.load.const.v4i32";
unsigned num_args = HAVE_LLVM >= 0x0800 ? 3 : 2;
- /* TODO: set glc+dlc on GFX10 (LLVM support is missing) */
- assert(!glc || ctx->chip_class < GFX10);
LLVMValueRef args[3] = {
rsrc,
offset,
- glc ? ctx->i32_1 : ctx->i32_0,
+ get_cache_policy(ctx, true, glc, false),
};
result[i] = ac_build_intrinsic(ctx, intrname,
ctx->f32, args, num_args,