From 09b1062628f2cbddb3ebae20e7b3b8a0a93acebf Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Tue, 28 Sep 2010 22:45:27 +0200 Subject: nouveau: Let the user choose the push buffer size. Signed-off-by: Francisco Jerez Acked-by: Ben Skeggs --- nouveau/nouveau_channel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nouveau/nouveau_channel.c') diff --git a/nouveau/nouveau_channel.c b/nouveau/nouveau_channel.c index 40a0b344..ded54241 100644 --- a/nouveau/nouveau_channel.c +++ b/nouveau/nouveau_channel.c @@ -28,7 +28,8 @@ int nouveau_channel_alloc(struct nouveau_device *dev, uint32_t fb_ctxdma, - uint32_t tt_ctxdma, struct nouveau_channel **chan) + uint32_t tt_ctxdma, int pushbuf_size, + struct nouveau_channel **chan) { struct nouveau_device_priv *nvdev = nouveau_device(dev); struct nouveau_channel_priv *nvchan; @@ -90,7 +91,7 @@ nouveau_channel_alloc(struct nouveau_device *dev, uint32_t fb_ctxdma, return ret; } - ret = nouveau_pushbuf_init(&nvchan->base); + ret = nouveau_pushbuf_init(&nvchan->base, pushbuf_size); if (ret) { nouveau_channel_free((void *)&nvchan); return ret; -- cgit v1.2.3