From ab284b2571b6bd11de596ffd9e7c661280b2a41a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 11 Feb 2022 05:45:26 -0500 Subject: [PATCH] ac/llvm: don't set DLC on gfx11 because it means something else there Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/amd/llvm/ac_llvm_build.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/llvm/ac_llvm_build.c b/src/amd/llvm/ac_llvm_build.c index 2910658ea94..71fdc8a8925 100644 --- a/src/amd/llvm/ac_llvm_build.c +++ b/src/amd/llvm/ac_llvm_build.c @@ -1107,7 +1107,8 @@ LLVMValueRef ac_build_load_to_sgpr_uint_wraparound(struct ac_llvm_context *ctx, static unsigned get_load_cache_policy(struct ac_llvm_context *ctx, unsigned cache_policy) { - return cache_policy | (ctx->chip_class >= GFX10 && cache_policy & ac_glc ? ac_dlc : 0); + return cache_policy | + (ctx->chip_class >= GFX10 && ctx->chip_class < GFX11 && cache_policy & ac_glc ? ac_dlc : 0); } static void ac_build_buffer_store_common(struct ac_llvm_context *ctx, LLVMValueRef rsrc,