aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'nouveau/abi16.c')
-rw-r--r--nouveau/abi16.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/nouveau/abi16.c b/nouveau/abi16.c
index 69a0a9b3..a67fbc12 100644
--- a/nouveau/abi16.c
+++ b/nouveau/abi16.c
@@ -31,13 +31,10 @@ int
31abi16_chan_nv04(struct nouveau_object *obj) 31abi16_chan_nv04(struct nouveau_object *obj)
32{ 32{
33 struct nouveau_device *dev = (struct nouveau_device *)obj->parent; 33 struct nouveau_device *dev = (struct nouveau_device *)obj->parent;
34 struct drm_nouveau_channel_alloc req;
35 struct nv04_fifo *nv04 = obj->data; 34 struct nv04_fifo *nv04 = obj->data;
35 struct drm_nouveau_channel_alloc req = {nv04->vram, nv04->gart};
36 int ret; 36 int ret;
37 37
38 req.fb_ctxdma_handle = nv04->vram;
39 req.tt_ctxdma_handle = nv04->gart;
40
41 ret = drmCommandWriteRead(dev->fd, DRM_NOUVEAU_CHANNEL_ALLOC, 38 ret = drmCommandWriteRead(dev->fd, DRM_NOUVEAU_CHANNEL_ALLOC,
42 &req, sizeof(req)); 39 &req, sizeof(req));
43 if (ret) 40 if (ret)