Mesa (asm-shader-rework-1): ARB prog parser: Set NumAttributes based on the number of attribs read
Ian Romanick
idr at kemper.freedesktop.org
Wed Jul 29 16:49:05 UTC 2009
Module: Mesa
Branch: asm-shader-rework-1
Commit: 4c5879ff3185e03b3baf0ed2765e06a951b35e9e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c5879ff3185e03b3baf0ed2765e06a951b35e9e
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Wed Jul 29 09:47:14 2009 -0700
ARB prog parser: Set NumAttributes based on the number of attribs read
---
src/mesa/shader/program_parse.tab.c | 1 +
src/mesa/shader/program_parse.y | 1 +
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 dbe2fa2..5b807ce 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 6c50491..c7e3609 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
More information about the mesa-commit
mailing list