summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-09-21 11:34:28 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-09-21 11:34:28 -0600
commita3a8887e5742bc18476deafcf45f220de89c1c1d (patch)
tree4b3f947dac178001f47a032ab2cc644fc94938ba
parent1ce50d8bd9a3bc64552c55a235a947de9e6f776c (diff)
comments
-rw-r--r--src/mesa/state_tracker/st_atom_fs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_fs.c b/src/mesa/state_tracker/st_atom_fs.c
index 20042fc6dc..1e7886a469 100644
--- a/src/mesa/state_tracker/st_atom_fs.c
+++ b/src/mesa/state_tracker/st_atom_fs.c
@@ -71,6 +71,9 @@ st_translate_fragment_shader(struct st_context *st,
memset(&fs, 0, sizeof(fs));
+ /*
+ * Convert Mesa program inputs to TGSI input register semantics.
+ */
for (attr = 0; attr < FRAG_ATTRIB_MAX; attr++) {
if (inputsRead & (1 << attr)) {
inputMapping[attr] = fs.num_inputs;
@@ -119,7 +122,7 @@ st_translate_fragment_shader(struct st_context *st,
}
/*
- * Outputs
+ * Semantics for outputs
*/
for (attr = 0; attr < FRAG_RESULT_MAX; attr++) {
if (stfp->Base.Base.OutputsWritten & (1 << attr)) {