diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2009-02-20 09:32:47 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2009-02-20 09:43:24 +1000 |
commit | 63a3a3762c8e1a67666d36b35fdb0ada8e4b7d08 (patch) | |
tree | d44240582f82712c446a1116afcc15d47b30ef7a /src/gallium/winsys/drm/nouveau/common/nouveau_winsys_pipe.c | |
parent | 9c9fcc83c03c8f944236a892d96305e98f0bffdd (diff) |
nv50: rework for texture_transfer changes
Diffstat (limited to 'src/gallium/winsys/drm/nouveau/common/nouveau_winsys_pipe.c')
-rw-r--r-- | src/gallium/winsys/drm/nouveau/common/nouveau_winsys_pipe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/nouveau/common/nouveau_winsys_pipe.c b/src/gallium/winsys/drm/nouveau/common/nouveau_winsys_pipe.c index 881df98556..e3ee985afc 100644 --- a/src/gallium/winsys/drm/nouveau/common/nouveau_winsys_pipe.c +++ b/src/gallium/winsys/drm/nouveau/common/nouveau_winsys_pipe.c @@ -19,6 +19,9 @@ nouveau_flags_from_usage(struct nouveau_context *nv, unsigned usage) struct nouveau_device *dev = nv->nv_screen->device; uint32_t flags = NOUVEAU_BO_LOCAL; + if (usage & NOUVEAU_BUFFER_USAGE_TRANSFER) + flags |= NOUVEAU_BO_GART; + if (usage & PIPE_BUFFER_USAGE_PIXEL) { if (usage & NOUVEAU_BUFFER_USAGE_TEXTURE) flags |= NOUVEAU_BO_GART; |