From: Alex Deucher <alexander.deuc...@amd.com>

Streamout buffers need to be synchronized on r6xx as
well.

v2: Add DEST flush as well.

Signed-off-by: Alex Deucher <alexander.deuc...@amd.com>
---
 src/gallium/drivers/r600/r600_hw_context.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_hw_context.c 
b/src/gallium/drivers/r600/r600_hw_context.c
index 0531c60..cf72549 100644
--- a/src/gallium/drivers/r600/r600_hw_context.c
+++ b/src/gallium/drivers/r600/r600_hw_context.c
@@ -686,12 +686,14 @@ void r600_flush_emit(struct r600_context *rctx)
                emit_flush = 1;
        }
 
-       if (rctx->family >= CHIP_RV770 && rctx->flags & 
R600_CONTEXT_STREAMOUT_FLUSH) {
+       if (rctx->flags & R600_CONTEXT_STREAMOUT_FLUSH) {
                cp_coher_cntl |= S_0085F0_SO0_DEST_BASE_ENA(1) |
                                S_0085F0_SO1_DEST_BASE_ENA(1) |
                                S_0085F0_SO2_DEST_BASE_ENA(1) |
                                S_0085F0_SO3_DEST_BASE_ENA(1) |
                                S_0085F0_SMX_ACTION_ENA(1);
+               if (rctx->chip_class == R600)
+                       cp_coher_cntl |= S_0085F0_DEST_BASE_0_ENA(1);
                emit_flush = 1;
        }
 
-- 
1.7.7.5

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to