diff options
author | Marek Olšák <[email protected]> | 2013-09-22 02:55:47 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-09-29 15:18:09 +0200 |
commit | 2814202ef4d6a429602c3524c2a1001e34d2068f (patch) | |
tree | 766e4b6d8ed65e0dc15a069dd775b13d160ed49b /src/gallium/drivers/radeon | |
parent | e9162672850548310bd29fa6f0f924e4e8767af1 (diff) |
r600g,radeonsi: share the async dma interface
r600_texture.c is one step closer to r600g.
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/r600_pipe_common.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.h b/src/gallium/drivers/radeon/r600_pipe_common.h index 63439655fd2..d83876df824 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.h +++ b/src/gallium/drivers/radeon/r600_pipe_common.h @@ -203,6 +203,16 @@ struct r600_common_context { /* Additional context states. */ unsigned flags; /* flush flags */ + + /* Copy one resource to another using async DMA. + * False is returned if the copy couldn't be done. */ + boolean (*dma_copy)(struct pipe_context *ctx, + struct pipe_resource *dst, + unsigned dst_level, + unsigned dst_x, unsigned dst_y, unsigned dst_z, + struct pipe_resource *src, + unsigned src_level, + const struct pipe_box *src_box); }; /* r600_common_pipe.c */ |