diff options
author | Dave Airlie <airlied@redhat.com> | 2010-09-20 15:39:03 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-09-20 15:39:03 +1000 |
commit | f4020c66fd4ad28f27077238c7080c12bd5fa733 (patch) | |
tree | 13e4ed5f2e5d2c6e2e8e49404955dbe2c8a355c9 /src/gallium/winsys/r600/drm/r600_state.c | |
parent | 7e5173d065f0da450cf553e3e3084a0f774919a3 (diff) |
r600g: only flush for the correct colorbuffer, not all of them.
Diffstat (limited to 'src/gallium/winsys/r600/drm/r600_state.c')
-rw-r--r-- | src/gallium/winsys/r600/drm/r600_state.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/winsys/r600/drm/r600_state.c b/src/gallium/winsys/r600/drm/r600_state.c index 57fc12ccf1..a4739021c4 100644 --- a/src/gallium/winsys/r600/drm/r600_state.c +++ b/src/gallium/winsys/r600/drm/r600_state.c @@ -304,6 +304,7 @@ static int r600_state_pm4_generic(struct radeon_state *state) static void r600_state_pm4_with_flush(struct radeon_state *state, u32 flags, int bufs_are_cbs) { unsigned i, j, add, size; + uint32_t flags_cb; state->nreloc = 0; for (i = 0; i < state->nbo; i++) { @@ -318,11 +319,12 @@ static void r600_state_pm4_with_flush(struct radeon_state *state, u32 flags, int } } for (i = 0; i < state->nreloc; i++) { + flags_cb = flags; size = (radeon_ws_bo_get_size(state->bo[state->reloc_bo_id[i]]) + 255) >> 8; state->pm4[state->cpm4++] = PKT3(PKT3_SURFACE_SYNC, 3); if (bufs_are_cbs) - flags |= S_0085F0_CB0_DEST_BASE_ENA(1 << i); - state->pm4[state->cpm4++] = flags; + flags_cb |= S_0085F0_CB0_DEST_BASE_ENA(1 << i); + state->pm4[state->cpm4++] = flags_cb; state->pm4[state->cpm4++] = size; state->pm4[state->cpm4++] = 0x00000000; state->pm4[state->cpm4++] = 0x0000000A; |