}
bo_config.nv50.tile_mode = mt->level[0].tile_mode;
- bo_flags = NOUVEAU_BO_VRAM | NOUVEAU_BO_NOSNOOP;
+ if (!bo_config.nv50.memtype && (pt->bind & PIPE_BIND_SHARED))
+ mt->base.domain = NOUVEAU_BO_GART;
+ else
+ mt->base.domain = NOUVEAU_BO_VRAM;
+
+ bo_flags = mt->base.domain | NOUVEAU_BO_NOSNOOP;
if (mt->base.base.bind & (PIPE_BIND_CURSOR | PIPE_BIND_DISPLAY_TARGET))
bo_flags |= NOUVEAU_BO_CONTIG;
FREE(mt);
return NULL;
}
- mt->base.domain = NOUVEAU_BO_VRAM;
mt->base.address = mt->base.bo->offset;
return pt;