1 diff -ur drm-2.4.26/nouveau/nouveau_bo.c libdrm/nouveau/nouveau_bo.c
2 --- drm-2.4.26/nouveau/nouveau_bo.c 2011-06-04 05:01:50.000000000 +0200
3 +++ libdrm/nouveau/nouveau_bo.c 2011-09-01 17:11:21.000000000 +0200
8 +#if !defined(__AROS__)
12 #include "nouveau_private.h"
18 +#if !defined(__AROS__)
19 munmap(nvbo->map, nvbo->size);
21 + drmMUnmap(nvdev->fd, nvbo->handle);
27 if (!nvbo->map_handle)
30 +#if !defined(__AROS__)
31 nvbo->map = mmap(0, nvbo->size, PROT_READ | PROT_WRITE,
32 MAP_SHARED, nvdev->fd, nvbo->map_handle);
33 if (nvbo->map == MAP_FAILED) {
39 + nvbo->map = drmMMap(nvdev->fd, nvbo->handle);
40 + if (nvbo->map == NULL)
47 req.flags |= NOUVEAU_GEM_CPU_PREP_WRITE;
49 req.flags |= NOUVEAU_GEM_CPU_PREP_NOWAIT;
51 - req.flags |= NOUVEAU_GEM_CPU_PREP_NOBLOCK;
54 ret = drmCommandWrite(nvdev->fd, DRM_NOUVEAU_GEM_CPU_PREP,
55 diff -ur drm-2.4.26/nouveau/nouveau_drmif.h libdrm/nouveau/nouveau_drmif.h
56 --- drm-2.4.26/nouveau/nouveau_drmif.h 2011-06-04 05:01:50.000000000 +0200
57 +++ libdrm/nouveau/nouveau_drmif.h 2011-09-01 17:11:21.000000000 +0200
59 #define __NOUVEAU_DRMIF_H__
65 #include "nouveau_device.h"
67 diff -ur drm-2.4.26/nouveau/nouveau_private.h libdrm/nouveau/nouveau_private.h
68 --- drm-2.4.26/nouveau/nouveau_private.h 2011-06-04 05:01:50.000000000 +0200
69 +++ libdrm/nouveau/nouveau_private.h 2011-09-01 17:11:21.000000000 +0200
71 #define __NOUVEAU_PRIVATE_H__
76 #include <nouveau_drm.h>
78 #include "nouveau_drmif.h"