summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-02-21 16:53:32 +0100
committerMarek Olšák <[email protected]>2013-02-22 12:49:15 +0100
commitaac81387447152b5bda99150414d636a003adc56 (patch)
tree7469835033c0d9520454e5bf26d173e1a0f96d88
parent3447cc48565efb8a0acbe60cb648cc34c5dfd172 (diff)
r600g: fix random corruption with CP DMA in TF2
NOTE: This is a candidate for the 9.1 branch.
-rw-r--r--src/gallium/drivers/r600/r600_hw_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_hw_context.c b/src/gallium/drivers/r600/r600_hw_context.c
index ebcd682bc81..f6dc418746d 100644
--- a/src/gallium/drivers/r600/r600_hw_context.c
+++ b/src/gallium/drivers/r600/r600_hw_context.c
@@ -1159,6 +1159,9 @@ void r600_cp_dma_copy_buffer(struct r600_context *rctx,
src_offset += byte_count;
dst_offset += byte_count;
}
+
+ /* Invalidate the read caches. */
+ rctx->flags |= R600_CONTEXT_INVAL_READ_CACHES;
}
void r600_need_dma_space(struct r600_context *ctx, unsigned num_dw)