[Mesa-dev] [PATCH 16/17] ac: enable the AMDGPU asm parser
Marek Olšák
maraeo at gmail.com
Tue Jun 13 23:29:26 UTC 2017
For patches 10-16:
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Sat, Jun 10, 2017 at 1:50 AM, Connor Abbott
<connora at valvesoftware.com> wrote:
> From: Connor Abbott <cwabbott0 at gmail.com>
>
> Ported from radeonsi. Needed for emitting optimization barriers, which
> contain inline asm.
>
> Signed-off-by: Connor Abbott <cwabbott0 at gmail.com>
> ---
> src/amd/common/ac_llvm_util.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/amd/common/ac_llvm_util.c b/src/amd/common/ac_llvm_util.c
> index e20456e..0b795ef 100644
> --- a/src/amd/common/ac_llvm_util.c
> +++ b/src/amd/common/ac_llvm_util.c
> @@ -40,6 +40,10 @@ static void ac_init_llvm_target()
> LLVMInitializeAMDGPUTargetMC();
> LLVMInitializeAMDGPUAsmPrinter();
>
> +
> + /* For inline assembly. */
> + LLVMInitializeAMDGPUAsmParser();
> +
> /*
> * Workaround for bug in llvm 4.0 that causes image intrinsics
> * to disappear.
> --
> 2.9.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list