From: Samuel Pitoiset Date: Wed, 4 Mar 2020 08:06:45 +0000 (+0100) Subject: nir/lower_input_attachments: remove bogus assert in try_lower_input_texop() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=913d2dcd231ed9c744970875883c185090389ea7;p=mesa.git nir/lower_input_attachments: remove bogus assert in try_lower_input_texop() It can be a sampler too. Fixes: 84b08971fbd ("nir/lower_input_attachments: lower nir_texop_fragment_{mask}_fetch") Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2558 Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Tested-by: Marge Bot Part-of: --- diff --git a/src/compiler/nir/nir_lower_input_attachments.c b/src/compiler/nir/nir_lower_input_attachments.c index 72dd7afc33a..16c7509f5f1 100644 --- a/src/compiler/nir/nir_lower_input_attachments.c +++ b/src/compiler/nir/nir_lower_input_attachments.c @@ -131,7 +131,6 @@ try_lower_input_texop(nir_function_impl *impl, nir_tex_instr *tex, bool use_fragcoord_sysval) { nir_deref_instr *deref = nir_src_as_deref(tex->src[0].src); - assert(glsl_type_is_image(deref->type)); if (glsl_get_sampler_dim(deref->type) != GLSL_SAMPLER_DIM_SUBPASS_MS) return false;