nouveau: translate PIPE_BUFFER_USAGE_UNSYNCHRONIZED
authorBen Skeggs <bskeggs@redhat.com>
Wed, 10 Mar 2010 05:22:53 +0000 (15:22 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 10 Mar 2010 06:30:03 +0000 (16:30 +1000)
src/gallium/drivers/nouveau/nouveau_screen.c

index f7d10a591f62324230ec4a9654f495d482e66150..b1ad686022a0905f838cca62dfb3804f3e2046c8 100644 (file)
@@ -124,7 +124,7 @@ nouveau_screen_map_flags(unsigned pipe)
        if (pipe & PIPE_BUFFER_USAGE_DONTBLOCK)
                flags |= NOUVEAU_BO_NOWAIT;
        else
-       if (pipe & 0 /*PIPE_BUFFER_USAGE_UNSYNCHRONIZED*/)
+       if (pipe & PIPE_BUFFER_USAGE_UNSYNCHRONIZED)
                flags |= NOUVEAU_BO_NOSYNC;
 
        return flags;