aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-12-08 10:17:24 -0800
committerEric Anholt <[email protected]>2010-12-08 10:51:04 -0800
commit39eaacff14ba2d529a072e737b8fe11f887011ea (patch)
tree3a05a0ebc024fd1c7e2be04602962c8da6c0da81 /src/mesa
parent4b4dc778b6289891d18ad62efdea86b060f07061 (diff)
i965: Set the render target index in gen6 fixed-function/ARB_fp path.
Fixes: fbo-drawbuffers2-blend fbo-drawbuffers2-colormask
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_emit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_emit.c b/src/mesa/drivers/dri/i965/brw_wm_emit.c
index 24e10632aa0..9822b2cf055 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_emit.c
@@ -1529,6 +1529,13 @@ void emit_fb_write(struct brw_wm_compile *c,
brw_set_mask_control(p, BRW_MASK_DISABLE);
brw_MOV(p, brw_message_reg(0), brw_vec8_grf(0, 0));
brw_pop_insn_state(p);
+
+ if (target != 0) {
+ brw_MOV(p, retype(brw_vec1_reg(BRW_MESSAGE_REGISTER_FILE,
+ 0,
+ 2), BRW_REGISTER_TYPE_UD),
+ brw_imm_ud(target));
+ }
}
if (!c->runtime_check_aads_emit) {