glsl: Add linker support for explicit attribute locations

This commit is contained in:
Ian Romanick
2010-10-07 17:21:22 -07:00
parent eee68d3631
commit 68a4fc9d5a
3 changed files with 48 additions and 4 deletions
+1
View File
@@ -52,6 +52,7 @@ add_variable(const char *name, enum ir_variable_mode mode, int slot,
}
var->location = slot;
var->explicit_location = (slot >= 0);
/* Once the variable is created an initialized, add it to the symbol table
* and add the declaration to the IR stream.