Module: Mesa Branch: master Commit: aac81387447152b5bda99150414d636a003adc56 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=aac81387447152b5bda99150414d636a003adc56
Author: Marek Olšák <mar...@gmail.com> Date: Thu Feb 21 16:53:32 2013 +0100 r600g: fix random corruption with CP DMA in TF2 NOTE: This is a candidate for the 9.1 branch. --- 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 ebcd682..f6dc418 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) _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit