diff options
author | Christoph Bumiller <[email protected]> | 2012-04-14 05:38:16 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-04-14 06:14:21 +0200 |
commit | 680f20351ec65fb22774dc08f63d26cf66b47c59 (patch) | |
tree | 3fe9dcf9a125b27d97743e9791fb6a915827d6d9 /src/gallium/drivers/nouveau/nouveau_buffer.h | |
parent | 36158c199448ce038d9fe913d972f29a655aecab (diff) |
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.h | 7 |
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 3d97ac33b7d..19255a3c0fd 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 |