summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_resource.h
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2015-04-06 01:39:14 -0400
committerIlia Mirkin <[email protected]>2015-04-27 20:17:07 -0400
commit0a4cb00c7765dbe26a4dbfad3bb87d6c6ce03919 (patch)
tree3915303cbebf29c76045926e40cf5dfef3109596 /src/gallium/drivers/freedreno/freedreno_resource.h
parentf5c110199675b7f4c50d4a7a64b6aac44c55d0a4 (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.h11
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)
{