nir/builder: Allow tex helpers on image types
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24375>
This commit is contained in:
committed by
Marge Bot
parent
e690d88d69
commit
ee0942f7a6
@@ -221,7 +221,8 @@ nir_build_tex_deref_instr(nir_builder *build, nir_texop op,
|
||||
const nir_tex_src *extra_srcs)
|
||||
{
|
||||
assert(texture != NULL);
|
||||
assert(glsl_type_is_texture(texture->type) ||
|
||||
assert(glsl_type_is_image(texture->type) ||
|
||||
glsl_type_is_texture(texture->type) ||
|
||||
glsl_type_is_sampler(texture->type));
|
||||
|
||||
const unsigned num_srcs = 1 + (sampler != NULL) + num_extra_srcs;
|
||||
|
||||
Reference in New Issue
Block a user