ac,radeonsi: fix compilations issues with LLVM 11
[mesa.git] / src / gallium / drivers / radeonsi / si_shader_llvm.c
index 63c9c033ab479727a427e8b5df64e4322aec95ca..b510b6377880a0167a5b08eeb931ff313ff34ead 100644 (file)
@@ -526,7 +526,7 @@ void si_build_wrapper_function(struct si_shader_context *ctx, LLVMValueRef *part
       if (LLVMGetTypeKind(type) == LLVMPointerTypeKind) {
          type = LLVMGetElementType(type);
 
-         if (LLVMGetTypeKind(type) == LLVMVectorTypeKind) {
+         if (LLVMGetTypeKind(type) == LLVMFixedVectorTypeKind) {
             if (LLVMGetVectorSize(type) == 4)
                arg_type = AC_ARG_CONST_DESC_PTR;
             else if (LLVMGetVectorSize(type) == 8)