diff options
author | Marek Olšák <[email protected]> | 2013-02-21 16:53:32 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-02-22 12:50:27 +0100 |
commit | deeb4b056f655465d26f02be1ea6b9042de88018 (patch) | |
tree | a92b44457ad7df7e162e8f8b1ee2dd12ab0d61b4 /src | |
parent | 8818d01d3319a4e460c8bc444d0b4f451a73be2f (diff) |
r600g: fix random corruption with CP DMA in TF2
NOTE: This is a candidate for the 9.1 branch.
(cherry picked from commit aac81387447152b5bda99150414d636a003adc56)
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r600/r600_hw_context.c | 3 |
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 a89f23069d3..44a9c82cd7a 100644 --- a/src/gallium/drivers/r600/r600_hw_context.c +++ b/src/gallium/drivers/r600/r600_hw_context.c @@ -1157,6 +1157,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) |