diff options
author | Ilia Mirkin <[email protected]> | 2015-04-06 01:39:14 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-04-27 20:17:07 -0400 |
commit | 0a4cb00c7765dbe26a4dbfad3bb87d6c6ce03919 (patch) | |
tree | 3915303cbebf29c76045926e40cf5dfef3109596 /src/gallium/drivers/freedreno/freedreno_resource.h | |
parent | f5c110199675b7f4c50d4a7a64b6aac44c55d0a4 (diff) |
freedreno: add fd_transfer to wrap around pipe_transfer
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_resource.h')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_resource.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.h b/src/gallium/drivers/freedreno/freedreno_resource.h index a2a540ce506..f80acb1e188 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.h +++ b/src/gallium/drivers/freedreno/freedreno_resource.h @@ -81,6 +81,17 @@ fd_resource(struct pipe_resource *ptex) return (struct fd_resource *)ptex; } +struct fd_transfer { + struct pipe_transfer base; + void *staging; +}; + +static INLINE struct fd_transfer * +fd_transfer(struct pipe_transfer *ptrans) +{ + return (struct fd_transfer *)ptrans; +} + static INLINE struct fd_resource_slice * fd_resource_slice(struct fd_resource *rsc, unsigned level) { |