[Mesa-dev] [PATCH] swr/rast: remove llvm fence/atomics from generated files

Laurent Carlier lordheavym at gmail.com
Wed Sep 20 13:13:51 UTC 2017


Le mardi 19 septembre 2017, 21:25:42 CEST Tim Rowley a écrit :
> We currently don't use these instructions, and since their API
> changed in llvm-5.0 having them in the autogen files broke the mesa
> release tarballs which ship with generated autogen files.
> 
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102847
> CC: mesa-stable at lists.freedesktop.org
> ---

Tested-by: Laurent Carlier <lordheavym at gmail.com>

>  src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py | 8
> ++++++++ 1 file changed, 8 insertions(+)
> 
> diff --git
> a/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py
> b/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py index
> 025d38a..ce892a9 100644
> --- a/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py
> +++ b/src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py
> @@ -140,6 +140,14 @@ def parse_ir_builder(input_file):
> 
>                      ignore = False
> 
> +                    # The following functions need to be ignored in
> openswr. +                    # API change in llvm-5.0 breaks baked autogen
> files +                    if (
> +                        (func_name == 'CreateFence' or
> +                         func_name == 'CreateAtomicCmpXchg' or
> +                         func_name == 'CreateAtomicRMW')):
> +                        ignore = True
> +
>                      # The following functions need to be ignored.
>                      if (func_name == 'CreateInsertNUWNSWBinOp' or
>                          func_name == 'CreateMaskedIntrinsic' or


-- 
Laurent Carlier
http://www.archlinux.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170920/68a63c13/attachment.sig>


More information about the mesa-dev mailing list