summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-01-21 14:58:37 +1000
committerBen Skeggs <bskeggs@redhat.com>2010-01-21 14:58:37 +1000
commit2d341f7e0a0dc70a28c6091ef6919fc6c0d60561 (patch)
treee67ffebb928d4f2e169087c5a99caade3555ca5d
parent2a76ff1106ee8c76bd2e16a4954b3c05714d1db3 (diff)
xv: use nouveau_bo_new_tile()
-rw-r--r--src/nouveau_xv.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nouveau_xv.c b/src/nouveau_xv.c
index 405362b..d1f87c3 100644
--- a/src/nouveau_xv.c
+++ b/src/nouveau_xv.c
@@ -239,6 +239,7 @@ nouveau_xv_bo_realloc(ScrnInfoPtr pScrn, unsigned flags, unsigned size,
struct nouveau_bo **pbo)
{
NVPtr pNv = NVPTR(pScrn);
+ uint32_t tile_flags;
int ret;
if (*pbo) {
@@ -247,10 +248,12 @@ nouveau_xv_bo_realloc(ScrnInfoPtr pScrn, unsigned flags, unsigned size,
nouveau_bo_ref(NULL, pbo);
}
+ tile_flags = 0;
if (pNv->Architecture >= NV_ARCH_50 && (flags & NOUVEAU_BO_VRAM))
- flags |= NOUVEAU_BO_TILED;
+ tile_flags = 0x7000;
- ret = nouveau_bo_new(pNv->dev, flags | NOUVEAU_BO_MAP, 0, size, pbo);
+ ret = nouveau_bo_new_tile(pNv->dev, flags | NOUVEAU_BO_MAP, 0,
+ size, 0, tile_flags, pbo);
if (ret)
return ret;