summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Pieczul <Pawel.Pieczul@intel.com>2008-07-23 15:43:23 -0700
committerIan Romanick <ian.d.romanick@intel.com>2008-07-23 15:43:23 -0700
commit117533759fc6ee57f65a48e7115d4f564ed167f4 (patch)
tree5feaeb90171f3971944a553325772b32f42a7a4a
parent97988ccc46c0248177cd71937021ca8cc2a7452b (diff)
965: Fix partially transparent textures in Doom 3 engine games
Numbers of destination depth registers corrected (destination stencil register was sent as depth register).
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_emit.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_emit.c b/src/mesa/drivers/dri/i965/brw_wm_emit.c
index ba9168b6ef..9b919b9cfe 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_emit.c
@@ -948,15 +948,16 @@ static void emit_fb_write( struct brw_wm_compile *c,
GLuint off = c->key.dest_depth_reg % 2;
if (off != 0) {
- brw_push_insn_state(p);
- brw_set_compression_control(p, BRW_COMPRESSION_NONE);
- brw_MOV(p, brw_message_reg(nr), arg1[comp]);
- /* 2nd half? */
- brw_MOV(p, brw_message_reg(nr+1), offset(arg1[comp],1));
- brw_pop_insn_state(p);
+ brw_push_insn_state(p);
+ brw_set_compression_control(p, BRW_COMPRESSION_NONE);
+
+ brw_MOV(p, brw_message_reg(nr), offset(arg1[comp],1));
+ /* 2nd half? */
+ brw_MOV(p, brw_message_reg(nr+1), arg1[comp+1]);
+ brw_pop_insn_state(p);
}
else {
- brw_MOV(p, brw_message_reg(nr), arg1[comp]);
+ brw_MOV(p, brw_message_reg(nr), arg1[comp]);
}
nr += 2;
}