From: Samuel Pitoiset Date: Tue, 12 Mar 2019 10:27:13 +0000 (+0100) Subject: ac: make use of ac_get_store_intr_attribs() where possible X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b553dd47f82a2ccd9fab8b866a59473d1eb6a6c;p=mesa.git ac: make use of ac_get_store_intr_attribs() where possible Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- 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