From 913d2dcd231ed9c744970875883c185090389ea7 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 4 Mar 2020 09:06:45 +0100 Subject: [PATCH] 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: --- src/compiler/nir/nir_lower_input_attachments.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.30.2