parser: Set NumParameters
diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y
index 6881562..81b06ac 100644
--- a/src/mesa/shader/program_parse.y
+++ b/src/mesa/shader/program_parse.y
@@ -2175,6 +2175,8 @@
    }
    state->prog->NumInstructions++;
 
+   state->prog->NumParameters = state->prog->Parameters->NumParameters;
+
    /*
     * Initialize native counts to logical counts.  The device driver may
     * change them if program is translated into a hardware program.