nv50: rework for texture_transfer changes
[mesa.git] / src / gallium / winsys / drm / nouveau / common / nouveau_winsys_pipe.c
index 881df985563d7a661ef2bbdedbb0c0a827aebd2d..e3ee985afcd7f69a1c7839c17247493c4202706f 100644 (file)
@@ -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;