summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2009-07-29 09:47:14 -0700
committerIan Romanick <[email protected]>2009-07-29 09:47:14 -0700
commit4c5879ff3185e03b3baf0ed2765e06a951b35e9e (patch)
tree9a6f640f0310ce69d78c0b557c8525e34fa94f80 /src
parent648dac4251de69d2949026af3dec0b0befee734b (diff)
ARB prog parser: Set NumAttributes based on the number of attribs read
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/program_parse.tab.c1
-rw-r--r--src/mesa/shader/program_parse.y1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/program_parse.tab.c b/src/mesa/shader/program_parse.tab.c
index dbe2fa229c1..5b807ce853b 100644
--- a/src/mesa/shader/program_parse.tab.c
+++ b/src/mesa/shader/program_parse.tab.c
@@ -5135,6 +5135,7 @@ _mesa_parse_arb_program(GLcontext *ctx, GLenum target, const GLubyte *str,
state->prog->NumInstructions++;
state->prog->NumParameters = state->prog->Parameters->NumParameters;
+ state->prog->NumAttributes = _mesa_bitcount(state->prog->InputsRead);
/*
* Initialize native counts to logical counts. The device driver may
diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y
index 6c50491ffc2..c7e36096e0b 100644
--- a/src/mesa/shader/program_parse.y
+++ b/src/mesa/shader/program_parse.y
@@ -2280,6 +2280,7 @@ _mesa_parse_arb_program(GLcontext *ctx, GLenum target, const GLubyte *str,
state->prog->NumInstructions++;
state->prog->NumParameters = state->prog->Parameters->NumParameters;
+ state->prog->NumAttributes = _mesa_bitcount(state->prog->InputsRead);
/*
* Initialize native counts to logical counts. The device driver may