From 171e4842ec8be269d3eb7c6ad741fac576b8e7dd Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 27 Nov 2013 12:43:40 +0100 Subject: r600g: use common interfaces in buffer_transfer_unmap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit i.e. dma_copy and resource_copy_region. Reviewed-by: Michel Dänzer --- src/gallium/drivers/r600/evergreen_state.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gallium/drivers/r600/evergreen_state.c') diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c index a4a4e3e9451..065ac6f7a7a 100644 --- a/src/gallium/drivers/r600/evergreen_state.c +++ b/src/gallium/drivers/r600/evergreen_state.c @@ -3769,6 +3769,12 @@ static boolean evergreen_dma_blit(struct pipe_context *ctx, if (rctx->b.rings.dma.cs == NULL) { return FALSE; } + + if (dst->target == PIPE_BUFFER && src->target == PIPE_BUFFER) { + evergreen_dma_copy(rctx, dst, src, dst_x, src_box->x, src_box->width); + return TRUE; + } + if (src->format != dst->format) { return FALSE; } -- cgit v1.2.3