gen_state_llvm.h:54:99: error: invalid conversion from ‘int’ to ‘const llvm::VectorType*’ [-fpermissive]
This is a swr build error with llvm-12.
In file included from ../src/gallium/drivers/swr/swr_state.cpp:41:
src/gallium/drivers/swr/rasterizer/codegen/gen_state_llvm.h: In function ‘llvm::StructType* SwrJit::Gen_simdvertex(JitManager*)’:
src/gallium/drivers/swr/rasterizer/codegen/gen_state_llvm.h:54:99: error: invalid conversion from ‘int’ to ‘const llvm::VectorType*’ [-fpermissive]
54 | /* attrib */ ArrayType::get(ArrayType::get(VectorType::get(Type::getFloatTy(ctx), 8), 4), SWR_VTX_NUM_SLOTS),
| ^
| |
| int
In file included from llvm/IR/DataLayout.h:26,
from ../src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp:45,
from ../src/gallium/drivers/swr/rasterizer/jitter/JitManager.h:32,
from ../src/gallium/drivers/swr/swr_state.cpp:33:
llvm/IR/DerivedTypes.h:453:63: note: initializing argument 2 of ‘static llvm::VectorType* llvm::VectorType::get(llvm::Type*, const llvm::VectorType*)’
453 | static VectorType *get(Type *ElementType, const VectorType *Other) {
| ~~~~~~~~~~~~~~~~~~^~~~~