summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_miptree.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-08-30 13:08:27 +0200
committerChristoph Bumiller <[email protected]>2011-08-30 13:55:07 +0200
commit0a3f0ff2645d03d5f572cc26932595b8df400505 (patch)
treee85f772a412a0b2b73f84f39023a4c52c0d22c62 /src/gallium/drivers/nv50/nv50_miptree.c
parent55bab45a7c6c8e659e31b398b4ccd6e790c2738b (diff)
nv50: add support for linear textures and render targets
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_miptree.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_miptree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_miptree.c b/src/gallium/drivers/nv50/nv50_miptree.c
index 3537681d4d7..239be19d604 100644
--- a/src/gallium/drivers/nv50/nv50_miptree.c
+++ b/src/gallium/drivers/nv50/nv50_miptree.c
@@ -107,6 +107,9 @@ nv50_mt_choose_storage_type(struct nv50_miptree *mt, boolean compressed)
if (!compressed)
tile_flags &= ~0x30000;
+ if (unlikely(mt->base.base.flags & NOUVEAU_RESOURCE_FLAG_LINEAR))
+ tile_flags &= ~0x3ff00;
+
return tile_flags;
}