summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/evergreen_state.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-11-27 12:43:40 +0100
committerMarek Olšák <[email protected]>2013-12-12 18:34:11 +0100
commit171e4842ec8be269d3eb7c6ad741fac576b8e7dd (patch)
tree70f5779d128dd741b8fae6dc38a8edd9c4a47518 /src/gallium/drivers/r600/evergreen_state.c
parent0aea43db9369a55de3d1e283b9d78f837ec53523 (diff)
r600g: use common interfaces in buffer_transfer_unmap
i.e. dma_copy and resource_copy_region. Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/evergreen_state.c')
-rw-r--r--src/gallium/drivers/r600/evergreen_state.c6
1 files changed, 6 insertions, 0 deletions
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;
}