summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/g3dvl
diff options
context:
space:
mode:
authorYounes Manton <younes.m@gmail.com>2008-12-06 15:45:00 -0500
committerYounes Manton <younes.m@gmail.com>2009-01-10 13:52:05 -0500
commit7289c388f442fe532de52058f9167bc331920b1a (patch)
tree6a3a26cd688109725705ebe38abad50e59d59243 /src/gallium/winsys/g3dvl
parent0e1301ec8f7bc865b8a81214928e5267393cb8e7 (diff)
downloadexternal_mesa3d-7289c388f442fe532de52058f9167bc331920b1a.zip
external_mesa3d-7289c388f442fe532de52058f9167bc331920b1a.tar.gz
external_mesa3d-7289c388f442fe532de52058f9167bc331920b1a.tar.bz2
nouveau: Use PIPE_BUFFER_USAGE_CPU_* instead of custom.
Diffstat (limited to 'src/gallium/winsys/g3dvl')
-rw-r--r--src/gallium/winsys/g3dvl/nouveau/nouveau_winsys_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/g3dvl/nouveau/nouveau_winsys_pipe.c b/src/gallium/winsys/g3dvl/nouveau/nouveau_winsys_pipe.c
index 17c677d..d841eb4 100644
--- a/src/gallium/winsys/g3dvl/nouveau/nouveau_winsys_pipe.c
+++ b/src/gallium/winsys/g3dvl/nouveau/nouveau_winsys_pipe.c
@@ -112,7 +112,7 @@ nouveau_pipe_bo_create(struct pipe_winsys *pws, unsigned alignment,
if (usage & PIPE_BUFFER_USAGE_PIXEL) {
if (usage & NOUVEAU_BUFFER_USAGE_TEXTURE)
flags |= NOUVEAU_BO_GART;
- if (!(usage & NOUVEAU_BUFFER_USAGE_CPU))
+ if (!(usage & PIPE_BUFFER_USAGE_CPU_READ_WRITE))
flags |= NOUVEAU_BO_VRAM;
}