From 1b553dd47f82a2ccd9fab8b866a59473d1eb6a6c Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 12 Mar 2019 11:27:13 +0100 Subject: [PATCH] ac: make use of ac_get_store_intr_attribs() where possible Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/common/ac_llvm_build.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index 9cf1c6f8792..d87bf098494 100644 --- a/src/amd/common/ac_llvm_build.c +++ b/src/amd/common/ac_llvm_build.c @@ -1150,9 +1150,7 @@ ac_build_buffer_store_dword(struct ac_llvm_context *ctx, ac_build_intrinsic(ctx, name, ctx->voidt, args, ARRAY_SIZE(args), - writeonly_memory ? - AC_FUNC_ATTR_INACCESSIBLE_MEM_ONLY : - AC_FUNC_ATTR_WRITEONLY); + ac_get_store_intr_attribs(writeonly_memory)); return; } @@ -1181,9 +1179,7 @@ ac_build_buffer_store_dword(struct ac_llvm_context *ctx, ac_build_intrinsic(ctx, name, ctx->voidt, args, ARRAY_SIZE(args), - writeonly_memory ? - AC_FUNC_ATTR_INACCESSIBLE_MEM_ONLY : - AC_FUNC_ATTR_WRITEONLY); + ac_get_store_intr_attribs(writeonly_memory)); } static LLVMValueRef -- 2.30.2