summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nouveau_buffer.h
diff options
context:
space:
mode:
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>2012-04-14 05:38:16 +0200
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2012-04-14 06:14:21 +0200
commit680f20351ec65fb22774dc08f63d26cf66b47c59 (patch)
tree3fe9dcf9a125b27d97743e9791fb6a915827d6d9 /src/gallium/drivers/nouveau/nouveau_buffer.h
parent36158c199448ce038d9fe913d972f29a655aecab (diff)
downloadexternal_mesa3d-680f20351ec65fb22774dc08f63d26cf66b47c59.zip
external_mesa3d-680f20351ec65fb22774dc08f63d26cf66b47c59.tar.gz
external_mesa3d-680f20351ec65fb22774dc08f63d26cf66b47c59.tar.bz2
nouveau: add new shared scratch buffers
Diffstat (limited to 'src/gallium/drivers/nouveau/nouveau_buffer.h')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_buffer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_buffer.h b/src/gallium/drivers/nouveau/nouveau_buffer.h
index 3d97ac3..19255a3 100644
--- a/src/gallium/drivers/nouveau/nouveau_buffer.h
+++ b/src/gallium/drivers/nouveau/nouveau_buffer.h
@@ -89,4 +89,11 @@ boolean
nouveau_user_buffer_upload(struct nouveau_context *, struct nv04_resource *,
unsigned base, unsigned size);
+/* Copy data to a scratch buffer, update buffer address.
+ * Returns the bo the data resides in, or NULL on failure.
+ */
+struct nouveau_bo *
+nouveau_scratch_data(struct nouveau_context *,
+ struct nv04_resource *, unsigned base, unsigned size);
+
#endif