summaryrefslogtreecommitdiffstats
path: root/src/broadcom/compiler
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2019-10-28 10:29:15 +0100
committerIago Toral Quiroga <[email protected]>2019-12-16 08:42:37 +0100
commitf63750accf99ff0f8503f7196399ad4e0e11befa (patch)
tree613822ad1e359cd0b9fa290922f5f9120dfb5245 /src/broadcom/compiler
parent52cbef00393355008f2aeb05f9fbd266923abde1 (diff)
v3d: remove unused variable
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Diffstat (limited to 'src/broadcom/compiler')
-rw-r--r--src/broadcom/compiler/nir_to_vir.c5
1 files changed, 1 insertions, 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];