Module: Mesa
Branch: master
Commit: 12af7f97eec05b47d4e86a21f9199590839acfe2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=12af7f97eec05b47d4e86a21f9199590839acfe2

Author: Michel Zou <[email protected]>
Date:   Wed Mar 10 22:12:43 2021 +0100

swr: fix deprecated llvm 11 declaration warning

Reviewed-by: Jan Zielinski <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9502>

---

 src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp 
b/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp
index 3e7bc8b5df8..e54e23fc904 100644
--- a/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp
+++ b/src/gallium/drivers/swr/rasterizer/jitter/jit_pch.hpp
@@ -138,7 +138,7 @@ static inline llvm::AttributeSet 
GetFuncAttribSet(llvm::LLVMContext&       ctx,
 }
 #endif
 
-#if LLVM_VERSION_MAJOR >= 12
+#if LLVM_VERSION_MAJOR >= 11
 static inline llvm::VectorType* getVectorType(llvm::Type *ElementType, 
unsigned NumElements)
 {
     return llvm::VectorType::get(ElementType, NumElements, false);

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to