summaryrefslogtreecommitdiff
path: root/src/nouveau_xv.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2009-02-02 08:52:18 +1000
committerBen Skeggs <skeggsb@gmail.com>2009-02-02 09:14:45 +1000
commit6c3f8da1bff3c94353748321b40a523add824327 (patch)
treec18e0f37df0a3a2bb1f85c205c29c6a56f9c4c4b /src/nouveau_xv.c
parent61791028ee9321748b635a85d4e53ed80d143df5 (diff)
nv50: make entire offscreen area tiled, use extra blits to scanout buffer
This fixes some pretty bad performance issues with window resize and desktop switching where ARGB windows are concerned. It also allows Xv to be used without a composite manager. The drawbacks are the use of a little more memory for the shadow scanout buffer, and a bit more GPU time is used for the extra blits. But it's worth it. If you want to get rid of this, figure out how to scanout tiled buffers :)
Diffstat (limited to 'src/nouveau_xv.c')
-rw-r--r--src/nouveau_xv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nouveau_xv.c b/src/nouveau_xv.c
index 5fb0517..a9c269f 100644
--- a/src/nouveau_xv.c
+++ b/src/nouveau_xv.c
@@ -349,7 +349,7 @@ nouveau_xv_bo_realloc(ScrnInfoPtr pScrn, unsigned flags, unsigned size,
}
if (pNv->Architecture >= NV_ARCH_50 && (flags & NOUVEAU_BO_VRAM))
- flags |= NOUVEAU_BO_TILE;
+ flags |= NOUVEAU_BO_TILED;
ret = nouveau_bo_new(pNv->dev, flags | NOUVEAU_BO_PIN, 0, size, pbo);
if (ret)