summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/g3dvl/nouveau
diff options
context:
space:
mode:
authorYounes Manton <[email protected]>2008-12-05 02:26:07 -0500
committerYounes Manton <[email protected]>2009-01-10 13:52:05 -0500
commit34c0281879b589dc42d134a10349eac66c7b2f0d (patch)
tree3df11e418a0a72c5e3fbe3032820af85f71f51f3 /src/gallium/winsys/g3dvl/nouveau
parentfbf418d9dc0aa2965ca7673ae20f6e47c4a53c8a (diff)
nouveau: Put dynamic textures in GART for CPU access and don't swizzle.
Also flag shadows as dynamic since they're for CPU access as well.
Diffstat (limited to 'src/gallium/winsys/g3dvl/nouveau')
-rw-r--r--src/gallium/winsys/g3dvl/nouveau/nouveau_winsys_pipe.c3
1 files changed, 2 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 4f6ac9cad0b..17c677d83eb 100644
--- a/src/gallium/winsys/g3dvl/nouveau/nouveau_winsys_pipe.c
+++ b/src/gallium/winsys/g3dvl/nouveau/nouveau_winsys_pipe.c
@@ -112,7 +112,8 @@ 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;
- flags |= NOUVEAU_BO_VRAM;
+ if (!(usage & NOUVEAU_BUFFER_USAGE_CPU))
+ flags |= NOUVEAU_BO_VRAM;
}
if (usage & PIPE_BUFFER_USAGE_VERTEX) {