From 0d6f83cbf11237daf9e6839c50a6ba45eb1bb468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20=C5=9Alusarz?= Date: Thu, 28 Oct 2021 12:54:59 +0200 Subject: [PATCH] nir: remove invalid assert affecting per-view variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit per-view variables can have arbitrary (but > 0) number of array levels Reviewed-by: Caio Oliveira Acked-by: Timur Kristóf Part-of: --- src/compiler/nir/nir_gather_info.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/compiler/nir/nir_gather_info.c b/src/compiler/nir/nir_gather_info.c index 5463657cd31..4b19d5f256d 100644 --- a/src/compiler/nir/nir_gather_info.c +++ b/src/compiler/nir/nir_gather_info.c @@ -179,12 +179,6 @@ mark_whole_variable(nir_shader *shader, nir_variable *var, } if (var->data.per_view) { - /* TODO: Per view and Per Vertex are not currently used together. When - * they start to be used (e.g. when adding Primitive Replication for GS - * on Intel), verify that "peeling" the type twice is correct. This - * assert ensures we remember it. - */ - assert(!nir_is_arrayed_io(var, shader->info.stage)); assert(glsl_type_is_array(type)); type = glsl_get_array_element(type); }