From c4104482c87c53c35d0dc61df3688416dc36f234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 28 Oct 2022 17:14:55 -0400 Subject: [PATCH] ac/llvm: remove unnecessary gfx11 condition for nir_intrinsic_store_buffer_amd ac_build_buffer_store_dword is responsible for this. Reviewed-by: Mihai Preda Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/amd/llvm/ac_nir_to_llvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/llvm/ac_nir_to_llvm.c b/src/amd/llvm/ac_nir_to_llvm.c index 6ad93886bbd..8541968f4e7 100644 --- a/src/amd/llvm/ac_nir_to_llvm.c +++ b/src/amd/llvm/ac_nir_to_llvm.c @@ -4254,7 +4254,7 @@ static bool visit_intrinsic(struct ac_nir_context *ctx, nir_intrinsic_instr *ins enum ac_image_cache_policy cache_policy = 0; if (swizzled) cache_policy |= ac_swizzled; - if (coherent && ctx->ac.gfx_level < GFX11) + if (coherent) cache_policy |= ac_glc; if (slc) cache_policy |= ac_slc;