mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
965: Fix partially transparent textures in Doom 3 engine games
Numbers of destination depth registers corrected (destination stencil register was sent as depth register).
This commit is contained in:
parent
97988ccc46
commit
117533759f
1 changed files with 8 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue