llvmpipe: Disable the linear path when running vulkan

It doesn't implement vulkan style resources.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22828>
This commit is contained in:
Konstantin Seurer 2023-04-23 19:29:19 +02:00 committed by Marge Bot
parent 61d94f243c
commit d361a0be28

View file

@ -388,7 +388,7 @@ llvmpipe_nir_fn_is_linear_compat(const struct nir_shader *shader,
return false;
nir_load_const_instr *load =
nir_instr_as_load_const(intrin->src[0].ssa->parent_instr);
if (load->value[0].u32 != 0)
if (load->value[0].u32 != 0 || load->def.num_components > 1)
return false;
} else if (intrin->intrinsic == nir_intrinsic_store_deref) {
/*
@ -418,6 +418,9 @@ llvmpipe_nir_fn_is_linear_compat(const struct nir_shader *shader,
//debug nir_print_shader((nir_shader *) shader, stdout);
return false;
}
} else if (tex->src[i].src_type == nir_tex_src_texture_handle ||
tex->src[i].src_type == nir_tex_src_sampler_handle) {
return false;
}
}