summaryrefslogtreecommitdiff
path: root/src/mesa/shader/program_parse.y
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-07-28 21:56:42 -0700
committerIan Romanick <ian.d.romanick@intel.com>2009-07-28 21:56:42 -0700
commit86b33b5649710f351d241ce6890200ac1f38f724 (patch)
tree0df16ed67f85003b0d5550cb58290037d9190a77 /src/mesa/shader/program_parse.y
parentaafd5762593aa01f2d612f4d769d1af383422c1c (diff)
ARB prog parser: Set correct register file for OUTPUT variables
Diffstat (limited to 'src/mesa/shader/program_parse.y')
-rw-r--r--src/mesa/shader/program_parse.y11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y
index 9e7c9e444d..225dc0d5b9 100644
--- a/src/mesa/shader/program_parse.y
+++ b/src/mesa/shader/program_parse.y
@@ -683,12 +683,19 @@ dstReg: resultBinding
}
init_dst_reg(& $$);
- if (s->type == at_temp) {
+ switch (s->type) {
+ case at_temp:
$$.File = PROGRAM_TEMPORARY;
$$.Index = s->temp_binding;
- } else {
+ break;
+ case at_output:
+ $$.File = PROGRAM_OUTPUT;
+ $$.Index = s->output_binding;
+ break;
+ default:
$$.File = s->param_binding_type;
$$.Index = s->param_binding_begin;
+ break;
}
}
;