diff options
Diffstat (limited to '0001-clover-llvm13-use-FixedVectorType.patch')
-rw-r--r-- | 0001-clover-llvm13-use-FixedVectorType.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/0001-clover-llvm13-use-FixedVectorType.patch b/0001-clover-llvm13-use-FixedVectorType.patch new file mode 100644 index 000000000000..78c4dda78a81 --- /dev/null +++ b/0001-clover-llvm13-use-FixedVectorType.patch @@ -0,0 +1,16 @@ +diff --unified --recursive --text mesa.orig/src/gallium/frontends/clover/llvm/metadata.hpp mesa.new/src/gallium/frontends/clover/llvm/metadata.hpp +--- mesa.orig/src/gallium/frontends/clover/llvm/metadata.hpp 2021-02-14 13:15:16.994404651 +0100 ++++ mesa.new/src/gallium/frontends/clover/llvm/metadata.hpp 2021-02-14 13:19:11.096855317 +0100 +@@ -129,7 +129,11 @@ + break; + } + if (type->isVectorTy()) +- data += std::to_string(((::llvm::VectorType*)type)->getNumElements()); ++#if LLVM_VERSION_MAJOR >= 13 ++ data += std::to_string(((::llvm::FixedVectorType*)type)->getNumElements()); ++#else ++ data += std::to_string(((::llvm::VectorType*)type)->getNumElements()) ++#endif + + } else { + ::llvm::raw_string_ostream os { data }; |