summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2008-06-02 07:18:21 +1000
committerDave Airlie <[email protected]>2008-06-02 07:18:21 +1000
commit7ead1c5d061b86027cb5e821fdcaa9cdce1d9537 (patch)
tree201a313c8f52a31f00a26221df9a1fc3c3a52a50 /src/mesa
parent915e49e0fd61d7b8eee304d756813455612e98d9 (diff)
r500: add missing brackets around depth testing
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/r300/r500_fragprog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r500_fragprog.c b/src/mesa/drivers/dri/r300/r500_fragprog.c
index d5ae4a5f749..b967aa2d737 100644
--- a/src/mesa/drivers/dri/r300/r500_fragprog.c
+++ b/src/mesa/drivers/dri/r300/r500_fragprog.c
@@ -364,10 +364,11 @@ static void emit_alu(struct r500_fragment_program *fp, int counter, struct prog_
if (fpi->DstReg.Index == FRAG_RESULT_COLR)
fp->inst[counter].inst0 |= (fpi->DstReg.WriteMask << 15);
- if (fpi->DstReg.Index == FRAG_RESULT_DEPR)
+ if (fpi->DstReg.Index == FRAG_RESULT_DEPR) {
fp->inst[counter].inst4 |= R500_ALPHA_W_OMASK;
/* Notify the state emission! */
fp->writes_depth = GL_TRUE;
+ }
} else {
fp->inst[counter].inst0 = R500_INST_TYPE_ALU
/* pixel_mask */