projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e33edaf
)
glsl: update program->InputsRead when referencing input attributes
author
Brian Paul
<brianp@vmware.com>
Mon, 2 Feb 2009 23:29:08 +0000
(16:29 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 2 Feb 2009 23:51:45 +0000
(16:51 -0700)
This info will be used in the linker for allocating generic vertex attribs.
src/mesa/shader/slang/slang_emit.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_emit.c
b/src/mesa/shader/slang/slang_emit.c
index ea446fa5d49bc689025abcc74778c33a62e10e10..2dd122c9a54ad514567fc42df0eee73515a5fa39 100644
(file)
--- a/
src/mesa/shader/slang/slang_emit.c
+++ b/
src/mesa/shader/slang/slang_emit.c
@@
-2120,6
+2120,10
@@
emit_var_ref(slang_emit_info *emitInfo, slang_ir_node *n)
/* mark var as used */
_mesa_use_uniform(emitInfo->prog->Parameters, (char *) n->Var->a_name);
}
+ else if (n->Store->File == PROGRAM_INPUT) {
+ assert(n->Store->Index >= 0);
+ emitInfo->prog->InputsRead |= (1 << n->Store->Index);
+ }
if (n->Store->Index < 0) {
/* probably ran out of registers */