summaryrefslogtreecommitdiff
path: root/nouveau/nouveau_private.h
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-09-28 22:45:27 +0200
committerFrancisco Jerez <currojerez@riseup.net>2010-10-12 04:10:09 +0200
commit09b1062628f2cbddb3ebae20e7b3b8a0a93acebf (patch)
treefba939828713bc549be66aa2fb97feff65468a49 /nouveau/nouveau_private.h
parent1b9187c43a0c17600611edb9e299141748e87974 (diff)
nouveau: Let the user choose the push buffer size.
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Acked-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'nouveau/nouveau_private.h')
-rw-r--r--nouveau/nouveau_private.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/nouveau/nouveau_private.h b/nouveau/nouveau_private.h
index 5a952f73..4c535345 100644
--- a/nouveau/nouveau_private.h
+++ b/nouveau/nouveau_private.h
@@ -37,8 +37,8 @@
#include "nouveau_pushbuf.h"
#include "nouveau_reloc.h"
-#define CALPB_BUFFERS 4
-#define CALPB_BUFSZ 16384
+#define CALPB_BUFFERS 3
+
struct nouveau_pushbuf_priv {
uint32_t cal_suffix0;
uint32_t cal_suffix1;
@@ -64,7 +64,7 @@ struct nouveau_pushbuf_priv {
#define nouveau_pushbuf(n) ((struct nouveau_pushbuf_priv *)(n))
int
-nouveau_pushbuf_init(struct nouveau_channel *);
+nouveau_pushbuf_init(struct nouveau_channel *, int buf_size);
void
nouveau_pushbuf_fini(struct nouveau_channel *);