Mesa (master): r600g: flush the DB dest base as well.
Dave Airlie
airlied at kemper.freedesktop.org
Tue May 24 23:59:34 UTC 2011
Module: Mesa
Branch: master
Commit: ece871c03876221636166ebd3f091ebeb10afbf1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ece871c03876221636166ebd3f091ebeb10afbf1
Author: Dave Airlie <airlied at redhat.com>
Date: Wed May 25 09:37:33 2011 +1000
r600g: flush the DB dest base as well.
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 at redhat.com>
---
src/gallium/winsys/r600/drm/r600_hw_context.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c
index 7c3fd1a..1e29da2 100644
--- a/src/gallium/winsys/r600/drm/r600_hw_context.c
+++ b/src/gallium/winsys/r600/drm/r600_hw_context.c
@@ -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;
More information about the mesa-commit
mailing list