summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2007-03-21 17:55:38 +1100
committerBen Skeggs <skeggsb@gmail.com>2007-03-21 17:55:38 +1100
commit23fdec37c580c3b5de263dfd48bd80fa9f21bc19 (patch)
treef170925c527f908a946e67b1ff1e5b3d36a4c623
parent1fddcfe6680148ed2edd8017217734a1f812298c (diff)
downloadxorg-driver-xf86-video-nouveau-23fdec37c580c3b5de263dfd48bd80fa9f21bc19.tar.gz
nouveau: bump for drm interface changes (v0.0.5)
-rw-r--r--src/nv_dma.c18
-rw-r--r--src/nv_dri.c2
2 files changed, 11 insertions, 9 deletions
diff --git a/src/nv_dma.c b/src/nv_dma.c
index 04d7233..a612c9b 100644
--- a/src/nv_dma.c
+++ b/src/nv_dma.c
@@ -198,12 +198,13 @@ Bool NVDmaCreateDMAObject(NVPtr pNv, uint32_t handle, int class,
drm_nouveau_dma_object_init_t dma;
int ret;
- dma.handle = handle;
- dma.class = class;
- dma.access = access;
- dma.target = target;
- dma.size = size;
- dma.offset = offset;
+ dma.channel = pNv->fifo.channel;
+ dma.handle = handle;
+ dma.class = class;
+ dma.access = access;
+ dma.target = target;
+ dma.size = size;
+ dma.offset = offset;
ret = drmCommandWrite(pNv->drm_fd, DRM_NOUVEAU_DMA_OBJECT_INIT,
&dma, sizeof(dma));
@@ -323,8 +324,9 @@ Bool NVDmaCreateContextObject(NVPtr pNv, int handle, int class)
drm_nouveau_object_init_t cto;
int ret;
- cto.handle = handle;
- cto.class = class;
+ cto.channel = pNv->fifo.channel;
+ cto.handle = handle;
+ cto.class = class;
ret = drmCommandWrite(pNv->drm_fd, DRM_NOUVEAU_OBJECT_INIT,
&cto, sizeof(cto));
return ret == 0;
diff --git a/src/nv_dri.c b/src/nv_dri.c
index ec9f129..1eaf4b9 100644
--- a/src/nv_dri.c
+++ b/src/nv_dri.c
@@ -244,7 +244,7 @@ Bool NVDRIGetVersion(ScrnInfoPtr pScrn)
}
/* temporary lock step versioning */
-#if NOUVEAU_DRM_HEADER_PATCHLEVEL != 4
+#if NOUVEAU_DRM_HEADER_PATCHLEVEL != 5
#error nouveau_drm.h doesn't match expected patchlevel, update libdrm.
#endif
if (pNv->pKernelDRMVersion->version_patchlevel !=