[Mesa-dev] [PATCH 01/11] ac/radv: split the non-common init_once code from the common target code.

Marek Olšák maraeo at gmail.com
Sat Jun 30 03:16:44 UTC 2018


On Tue, Jun 26, 2018 at 11:58 PM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This just splits out the non-shared code and reuses ac_get_llvm_target in radv.
> ---
>  src/amd/common/ac_llvm_util.c          |  6 ++++--
>  src/amd/common/ac_llvm_util.h          |  2 ++
>  src/amd/vulkan/radv_shader.c           | 20 ++++----------------
>  src/gallium/drivers/radeonsi/si_pipe.c |  1 +
>  4 files changed, 11 insertions(+), 18 deletions(-)
>
> diff --git a/src/amd/common/ac_llvm_util.c b/src/amd/common/ac_llvm_util.c
> index be2d92b4c08..f33691dcc92 100644
> --- a/src/amd/common/ac_llvm_util.c
> +++ b/src/amd/common/ac_llvm_util.c
> @@ -57,13 +57,15 @@ static void ac_init_llvm_target()
>
>  static once_flag ac_init_llvm_target_once_flag = ONCE_FLAG_INIT;
>
> +void ac_init_llvm_once(void) {

LLVM-ism ({ not on the next line)

Marek


More information about the mesa-dev mailing list