nouveau: use usage, not uninitialised flags value...
authorBen Skeggs <skeggsb@gmail.com>
Mon, 12 Jan 2009 03:25:28 +0000 (13:25 +1000)
committerBen Skeggs <skeggsb@gmail.com>
Mon, 12 Jan 2009 06:59:33 +0000 (16:59 +1000)
src/gallium/winsys/drm/nouveau/common/nouveau_winsys_pipe.c

index 68951375066f68a969474515b4166247c6cdbe93..c8f26d5fad810a5bcd5486959350b62aa4b5ff94 100644 (file)
@@ -69,7 +69,7 @@ nouveau_pipe_bo_create(struct pipe_winsys *pws, unsigned alignment,
        nvbuf->base.usage = usage;
        nvbuf->base.size = size;
 
-       flags = nouveau_flags_from_usage(nv, flags);
+       flags = nouveau_flags_from_usage(nv, usage);
 
        if (nouveau_bo_new(dev, flags, alignment, size, &nvbuf->bo)) {
                FREE(nvbuf);