summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/drm
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2009-01-12 13:25:28 +1000
committerBen Skeggs <skeggsb@gmail.com>2009-01-12 16:59:33 +1000
commit7b6fb34e9d1da73cc92fc63fa1d52082df5904ee (patch)
tree4ebe3a8de1b68cf61984a2d1d16852ab2d108ab4 /src/gallium/winsys/drm
parent516dd9b36163259ee5a8d356e59a2eadb6a6bdb1 (diff)
nouveau: use usage, not uninitialised flags value...
Diffstat (limited to 'src/gallium/winsys/drm')
-rw-r--r--src/gallium/winsys/drm/nouveau/common/nouveau_winsys_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/drm/nouveau/common/nouveau_winsys_pipe.c b/src/gallium/winsys/drm/nouveau/common/nouveau_winsys_pipe.c
index 6895137506..c8f26d5fad 100644
--- a/src/gallium/winsys/drm/nouveau/common/nouveau_winsys_pipe.c
+++ b/src/gallium/winsys/drm/nouveau/common/nouveau_winsys_pipe.c
@@ -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);