r600g: flush the DB dest base as well.
authorDave Airlie <airlied@redhat.com>
Tue, 24 May 2011 23:37:33 +0000 (09:37 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 24 May 2011 23:37:33 +0000 (09:37 +1000)
If we do this for CB bases then we should do it for DB bases.

noticed while adding cayman support.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/winsys/r600/drm/r600_hw_context.c

index 7c3fd1aa2069f2fe3e6e4959b8be007def4a9ef9..1e29da2cf099cb6a2297adb9a4c72dfa6d1c761d 100644 (file)
@@ -1229,7 +1229,7 @@ void r600_context_flush_dest_caches(struct r600_context *ctx)
                                        0, cb[i]);
        }
        if (db) {
-               r600_context_bo_flush(ctx, S_0085F0_DB_ACTION_ENA(1), 0, db);
+               r600_context_bo_flush(ctx, S_0085F0_DB_ACTION_ENA(1) | S_0085F0_DB_DEST_BASE_ENA(1), 0, db);
        }
        ctx->flags &= ~R600_CONTEXT_CHECK_EVENT_FLUSH;
        ctx->flags &= ~R600_CONTEXT_DST_CACHES_DIRTY;