nouveau: explicitly request mappable buffers for the moment
authorBen Skeggs <bskeggs@redhat.com>
Thu, 28 May 2009 00:25:44 +0000 (10:25 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 28 May 2009 06:06:16 +0000 (16:06 +1000)
src/gallium/winsys/drm/nouveau/drm/nouveau_winsys_pipe.c

index 9e03a9f5dba3adbd1f1d5a3588912cf586646a24..2dca8cd3a904b0ff881fd1e0f440553a2cd5da4c 100644 (file)
@@ -74,6 +74,7 @@ nouveau_pipe_bo_create(struct pipe_winsys *ws, unsigned alignment,
        nvbuf->base.size = size;
 
        flags = nouveau_flags_from_usage(ws, usage);
+       flags |= NOUVEAU_BO_MAP;
        if (nouveau_bo_new(dev, flags, alignment, size, &nvbuf->bo)) {
                FREE(nvbuf);
                return NULL;