From f63750accf99ff0f8503f7196399ad4e0e11befa Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Mon, 28 Oct 2019 10:29:15 +0100 Subject: [PATCH] v3d: remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Alejandro Piñeiro --- src/broadcom/compiler/nir_to_vir.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/broadcom/compiler/nir_to_vir.c b/src/broadcom/compiler/nir_to_vir.c index 6c079bda6af..6b566c68e07 100644 --- a/src/broadcom/compiler/nir_to_vir.c +++ b/src/broadcom/compiler/nir_to_vir.c @@ -1568,11 +1568,8 @@ static void ntq_setup_fs_inputs(struct v3d_compile *c) { unsigned num_entries = 0; - unsigned num_components = 0; - nir_foreach_variable(var, &c->s->inputs) { + nir_foreach_variable(var, &c->s->inputs) num_entries++; - num_components += glsl_get_components(var->type); - } nir_variable *vars[num_entries]; -- 2.30.2