From 76898a806297c7e7ac2ed4b4729cb89ea3909e93 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Mon, 27 May 2019 16:16:39 +0200 Subject: [PATCH] amd/common/gfx10: set DLC for llvm.amdgcn.s.buffer.load Acked-by: Bas Nieuwenhuizen --- src/amd/common/ac_llvm_build.c | 4 +--- 1 file changed, 1 insertion(+), 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, -- 2.30.2