clover/nir: Don't remove texture variables

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13389>
This commit is contained in:
Jason Ekstrand 2021-10-15 16:55:46 -05:00 committed by Marge Bot
parent 3c398139e1
commit 99cda38c81

View file

@ -421,7 +421,9 @@ nir_shader *clover::nir::load_libclc_nir(const device &dev, std::string &r_log)
static bool
can_remove_var(nir_variable *var, void *data)
{
return !(var->type->is_sampler() || var->type->is_image());
return !(var->type->is_sampler() ||
var->type->is_texture() ||
var->type->is_image());
}
binary clover::nir::spirv_to_nir(const binary &mod, const device &dev,