summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-09 19:04:28 -0600
committerBrian <[email protected]>2007-08-09 19:04:28 -0600
commitbe57c1aac46e6af2f1dd8ce1f10334d034ac7464 (patch)
tree4ddef581ff53e42d31f6070cfde512ba7b488a6e /src/mesa
parent3d31252d44fb5983a089b9f3488745757772adea (diff)
comments
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_cb_clear.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_clear.c b/src/mesa/state_tracker/st_cb_clear.c
index 4da3a2500d6..e3392101a8b 100644
--- a/src/mesa/state_tracker/st_cb_clear.c
+++ b/src/mesa/state_tracker/st_cb_clear.c
@@ -129,11 +129,13 @@ make_color_shader(struct st_context *st)
return NULL;
}
_mesa_init_instructions(p->Instructions, 2);
+ /* MOV result.color, fragment.color; */
p->Instructions[0].Opcode = OPCODE_MOV;
p->Instructions[0].DstReg.File = PROGRAM_OUTPUT;
- p->Instructions[0].DstReg.Index = 0;
+ p->Instructions[0].DstReg.Index = FRAG_RESULT_COLR;
p->Instructions[0].SrcReg[0].File = PROGRAM_INPUT;
p->Instructions[0].SrcReg[0].Index = FRAG_ATTRIB_COL0;
+ /* END; */
p->Instructions[1].Opcode = OPCODE_END;
p->InputsRead = FRAG_BIT_COL0;