mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
r600g: fix targetmask to work correctly.
At least this seems to fix the glean maskedClear test.
This commit is contained in:
parent
2b90364765
commit
b8de7788a4
1 changed files with 1 additions and 2 deletions
|
|
@ -1179,12 +1179,11 @@ static int r600_cb_cntl(struct r600_context *rctx, struct radeon_state *rstate)
|
|||
} else
|
||||
color_control |= (0xcc << 16);
|
||||
|
||||
target_mask |= (pbs->rt[0].colormask);
|
||||
for (i = 0; i < 8; i++) {
|
||||
if (pbs->rt[i].blend_enable) {
|
||||
color_control |= S_028808_TARGET_BLEND_ENABLE(1 << i);
|
||||
target_mask |= (pbs->rt[0].colormask << (4 * i));
|
||||
}
|
||||
target_mask |= (pbs->rt[i].colormask << (4 * i));
|
||||
}
|
||||
r = radeon_state_init(rstate, rscreen->rw, R600_CB_CNTL_TYPE, R600_CB_CNTL);
|
||||
if (r)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue