From: Ben Skeggs Date: Mon, 12 Jan 2009 03:25:28 +0000 (+1000) Subject: nouveau: use usage, not uninitialised flags value... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b6fb34e9d1da73cc92fc63fa1d52082df5904ee;p=mesa.git nouveau: use usage, not uninitialised flags value... --- 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 68951375066..c8f26d5fad8 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);