summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2017-09-19 14:04:20 -0500
committerTim Rowley <[email protected]>2017-09-22 11:38:57 -0500
commit066d1dc951d3a0833de6abd8e004bf467e6e50eb (patch)
tree0a96d40a479fd8fc29ceb5ea9ee8f62972384249 /src
parentd372683339ce3c6a1887902f917fe45d5fb7302c (diff)
swr/rast: remove llvm fence/atomics from generated files
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: [email protected] Tested-by: Laurent Carlier <[email protected]> Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/swr/rasterizer/codegen/gen_llvm_ir_macros.py8
1 files changed, 8 insertions, 0 deletions
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 025d38ab336..ce892a9abe8 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