ac,radeonsi: fix compilations issues with LLVM 11
[mesa.git] / src / amd / vulkan / radv_nir_to_llvm.c
index e707ba8c907174b5aec0a48ca5a6c19f4131ea17..a40467a3194c09f7dc529ee4e92d233d690f07ba 100644 (file)
@@ -1173,7 +1173,7 @@ radv_fixup_vertex_input_fetches(struct radv_shader_context *ctx,
        LLVMValueRef one = is_float ? ctx->ac.f32_1 : ctx->ac.i32_1;
        LLVMValueRef chan[4];
 
-       if (LLVMGetTypeKind(LLVMTypeOf(value)) == LLVMVectorTypeKind) {
+       if (LLVMGetTypeKind(LLVMTypeOf(value)) == LLVMFixedVectorTypeKind) {
                unsigned vec_size = LLVMGetVectorSize(LLVMTypeOf(value));
 
                if (num_channels == 4 && num_channels == vec_size)