diff options
author | Ben Skeggs <[email protected]> | 2008-04-04 12:39:45 +1000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2008-04-04 12:55:57 +1000 |
commit | fbb6cc7842ec8a59b60018233275babc4deb6765 (patch) | |
tree | 99ca4056f59f2e8b4366dd47650edb0fb17e5979 /src/gallium/drivers/nv40/nv40_miptree.c | |
parent | 0b57662fa6feb3d4571e4a3bc3a2243547595816 (diff) |
nouveau: in some cases don't create the buffer in local mem initially.
Diffstat (limited to 'src/gallium/drivers/nv40/nv40_miptree.c')
-rw-r--r-- | src/gallium/drivers/nv40/nv40_miptree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv40/nv40_miptree.c b/src/gallium/drivers/nv40/nv40_miptree.c index 502edc16298..1b192172232 100644 --- a/src/gallium/drivers/nv40/nv40_miptree.c +++ b/src/gallium/drivers/nv40/nv40_miptree.c @@ -68,7 +68,9 @@ nv40_miptree_create(struct pipe_screen *pscreen, const struct pipe_texture *pt) nv40_miptree_layout(mt); - mt->buffer = ws->buffer_create(ws, 256, PIPE_BUFFER_USAGE_PIXEL, + mt->buffer = ws->buffer_create(ws, 256, + PIPE_BUFFER_USAGE_PIXEL | + NOUVEAU_BUFFER_USAGE_TEXTURE, mt->total_size); if (!mt->buffer) { FREE(mt); |