summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv40/nv40_miptree.c
diff options
context:
space:
mode:
authorYounes Manton <[email protected]>2009-11-01 18:25:59 -0500
committerYounes Manton <[email protected]>2009-11-01 18:27:47 -0500
commit87d7c1aa15a944d64e43b217e18553256f9fb681 (patch)
tree508716da3dbde457c3af606d6c45bc79b17cc882 /src/gallium/drivers/nv40/nv40_miptree.c
parent1f630fa0167ed799556a764178772c096a3ddeba (diff)
nouveau: Assume all texture blankets are linear for now.
Diffstat (limited to 'src/gallium/drivers/nv40/nv40_miptree.c')
-rw-r--r--src/gallium/drivers/nv40/nv40_miptree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv40/nv40_miptree.c b/src/gallium/drivers/nv40/nv40_miptree.c
index 5a201ccf458..465dd3b0693 100644
--- a/src/gallium/drivers/nv40/nv40_miptree.c
+++ b/src/gallium/drivers/nv40/nv40_miptree.c
@@ -141,6 +141,9 @@ nv40_miptree_blanket(struct pipe_screen *pscreen, const struct pipe_texture *pt,
mt->level[0].pitch = stride[0];
mt->level[0].image_offset = CALLOC(1, sizeof(unsigned));
+ /* Assume whoever created this buffer expects it to be linear for now */
+ mt->base.tex_usage |= NOUVEAU_TEXTURE_USAGE_LINEAR;
+
pipe_buffer_reference(&mt->buffer, pb);
return &mt->base;
}